DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Results 1 to 9 of 9

Thread: C++ Compiler for droid???

  1. Junior Droid
    ezbaiby's Avatar
    Member #
    18790
    Join Date
    Dec 2009
    Posts
    21
    Phone
    Droid 1
    #1

    C++ Compiler for droid???

    I'm not sure if this is the write place to ask this, but is there any way to get a C++ compiler/editor for the droid? I need to be able to write some pretty basic programs (just practice ones for class) and I'm going to be out of the country for a month with no access to a computer.
  2.  
     
     
     
  3. Senior Droid
    Jeremy556's Avatar
    Member #
    8966
    Join Date
    Nov 2009
    Location
    Atlanta, GA
    Posts
    139
    Phone
    Droid
    #2
    I doubt there are any. IIRC, Droid uses Java ME for applications. Any text editor will work for .cpp files, but you are going to need a regular computer for even the most basic learning of programming.

    #include stdio.h
    int main(){
    printf("Hello World.");
    return 0;
    }
    Last edited by Jeremy556; 12-23-2009 at 09:00 PM.
  4. Senior Droid
    phone's Avatar
    Member #
    14984
    Join Date
    Dec 2009
    Posts
    189
    Phone
    Motorola Droid
    #3
    Not C++ but you can code other scripting languages, Ruby, Perl, etc.

    android-scripting - Project Hosting on Google Code
    Kent
  5. Droid
    zasran's Avatar
    Member #
    3334
    Join Date
    Nov 2009
    Location
    San francisco, Ca
    Posts
    92
    Phone
    Motorola Droid
    #4
    Yes there is, just google for android C++ SDK and you get:

    Android 1.6 NDK, Release 1 | Android Developers

    Not sure why there is 1.6 version only, they say it works works with 1.5 and later versions of Android. They use GCC on Linux and Mac (they mention Cygwin for MS Windows).

    But: "Please note that the NDK does not enable you to develop native-only applications. Android's primary runtime remains the Dalvik virtual machine."

    ero
  6. xk1
    xk1 is offline
    Junior Droid
    xk1's Avatar
    Member #
    18876
    Join Date
    Dec 2009
    Posts
    5
    Phone
    Enter Current Phone Here
    #5
    You are going to need a computer for editing, especially learning. I am sure if you were experienced, you could actually pull off very basic editing (albeit painfully) in VI or whatever text editor you may find, and then compile it (more than likely slowly) on your android. But to learn, you're definitely going to need a computer.
  7. Senior Droid
    phone's Avatar
    Member #
    14984
    Join Date
    Dec 2009
    Posts
    189
    Phone
    Motorola Droid
    #6
    Quote Originally Posted by zasran View Post
    Yes there is, just google for android C++ SDK and you get:

    Android 1.6 NDK, Release 1 | Android Developers

    Not sure why there is 1.6 version only, they say it works works with 1.5 and later versions of Android. They use GCC on Linux and Mac (they mention Cygwin for MS Windows).

    But: "Please note that the NDK does not enable you to develop native-only applications. Android's primary runtime remains the Dalvik virtual machine."

    ero
    He's looking for a compiler to install on the phone. So he can use the phone to write and compile C++.
    Kent
  8. Master Droid
    mammlouk's Avatar
    Member #
    15042
    Join Date
    Dec 2009
    Posts
    316
    Phone
    Motorola Droid
    #7
    You could probably coerce gcc into running as a compiler on the droid, but that will probably take some work as far as satisfying dependencies, getting gcc compiled, etc.
  9. Droid
    camperdave's Avatar
    Member #
    18956
    Join Date
    Dec 2009
    Location
    St. Louis, MO, currently
    Posts
    35
    Phone
    Motorola Droid
    #8
    I actually looked into doing this a week or so ago. Your first challenge is going to be using the native cross compiler to get binutils running. Then, you'll probably need to cross-compile the GNU make system, and THEN do the GCC collection.

    Yeah, all those steps are why I stopped working on it, at least for now. Good luck to you...
  10. Junior Droid
    ezbaiby's Avatar
    Member #
    18790
    Join Date
    Dec 2009
    Posts
    21
    Phone
    Droid 1
    #9
    Thanks for all the info. I tried getting GCC to work with it, but I also figured it's just too much work for right now. Guess I need to get a netbook or something...

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search tags for this page

android c ide
,

android c+ compiler

,
android c+ ide
,
android gcc compiler
,

c compiler android

,

c compiler for android

,

c+ compiler android

,

c+ compiler for android

,
c+ ide for android
,
compilador c+ android
Click on a term to search our site for related topics.

Tags for this Thread

Find us on Google+