Home » » C4droid (C/C++ compiler & IDE)

C4droid (C/C++ compiler & IDE)

Written By Blog PageRank 2 on Saturday, November 9, 2013 | 7:11 PM

C4droid (C/C++ compiler & IDE)
C4droid is a user-friendly (but strong) C/C++ IDE + C/C++ compiler for Android with GNU Makefile, SDL and Qt support. C4droid supports devices with ARM processors only (not devices with Intel x86 or MIPS processor).
You can generate your own applications on Android device and run them even without having Web access: compiler is offline. Outcome can be exported to an executable (for terminal apps) or APK (for apps with GUI).
This app uses TCC and uClibc (or GCC + Bionic with a plugin), so it has full help of ANSI C and ISO C99 (and full C++ help with GCC).

C4droid supports syntax highlighting, code completion and source code formatting, so it is a quite handy tool for education and programming on the go.
C4droid will ask you to install C++ help at initial startup and will configure itself in semi-automatic mode.
If you want to do that manually, you require:
) Enough internal memory OR root rights. C4droid does not demand root rights for devices with much more than 50MB of free internal memory.
1) Set up GCC plugin (C4droid will ask you to install it).
two) Choose G++ compiler in C4droid preferences.
three*) Use iostream, not iostream.h
4*) Add "employing namespace std" to your plan (just before int primary)
C4droid consists of a Terminal Emulator with BusyBox, so you can use Makefiles without having any adjustments, shell commands syntax is the very same as on Linux Computer.
To compile Makefile projects, open any file in the very same folder with Makefile and long-click "Compile" to configure current directory (C4droid will create .c4droid configuration file when you will press Ok). After configuring folder, you can press compile button and C4droid will construct your project.
Do not forget to enter executable name and pick compilation mode (and press ok also, else changes will be discarded)
You can also construct and install open-source libraries the identical way. At the moment tested libraries are gmp(internal memory only),mpfr,mpc,libxml2,neon,sqlite,SDL_gfx(--disable-mmx required).
C4droid supports SDL, NativeActivity and Qt for GUI now, install SDL plugin for C4droid to use it (only GCC/G++ compiler is supported, so you need to have GCC plugin also).
(SDL is detected with #include "SDL.h", NativeActivity is detected with #include "android_native_app_glue.h", Qt is detected with #consist of "QtGui").
Qt support limitations:
1) If you are compiling a single-file Qt app, you must add #contain "yoursourcefilenamewithcpp.moc" to the end of file. If you are making use of .pro file for compilation, you do not need to have to do that.
Swift manual:
If you have identified a bug or app is not functioning, e-mail me.
Lengthy click actions:
Save button: save as.
Open button: current files.
Run button: run with arguments.
Compile button: configure present directory.
Tab: close tab.
Outcome of compilation (binary or APK) can be exported making use of menu->export.
If you have "Illegal instruction" error making use of internal c compiler (TCC), set up GCC plugin, GCC supports softfloat by default.
C4droid will check license by means of the World wide web.
Report bugs at n0n3m4@gmail.com.


Title: C4droid (C/C++ compiler & IDE)
Rating: 910109 Votes
Posted by: Admin Updated at: 7:11 PM


Post a Comment

Note: Only a member of this blog may post a comment.