دانلود مستقیم
دانلود این اپلیکیشن روی دسکتاپ
C4droid is the most powerful C/C++ IDE + C/C++ compiler for Android.
Features:
• Offline C/C++ compiler: create your own applications on Android device and run them even without Internet access
• Qt, SDL, SDL2, Allegro, SFML, FLTK and NativeActivity support for graphics
• Export & share your programs as APK or binaries
• Debugger with breakpoints and watches
• CMake and Makefile support: use the same build scripts as on your PC (BusyBox is included)
• Source code editor with syntax highlighting, tabs, code completion, code formatting, file association and undo/redo
• No root required (but C4droid can use it for your programs if you want)
• Full ANSI C and ISO C99 support with TCC (Tiny C Compiler) + musl libc
• Fully-functional C++ compiler, complete C++11 support with GCC
• Git integration
• Customizable GUI, choose where to place tabs and buttons by yourself, themes are also supported
• Semi-automatic open-source library porting feature for enhanced programming & education
C4droid is designed to be user-friendy out-of-the-box, but nothing is perfect, so here are some answers for questions that can appear:
How to use Makefiles, multifile projects, etc?
Long-click compile button (or select "compilation settings" if buttons are hidden/moved) and configure current directory to use the mode you want.
Note that C4droid will create .c4droid configuration file when you press Ok. Some modes (like makefile) require to enter result executable file name, don't forget to do that.
After doing that all use compile and run buttons to build and run your app as regular.
How to use graphics libraries in single-file mode?
Just install SDL plugin and select G++ compiler in C4droid preferences.
Note that C4droid chooses app mode using a very simple source code analysis:
every graphics mode is detected with corresponding include string (e.g. SDL is detected with #include "SDL.h", check bundled examples for more info). Commenting out these lines will not have any effect.
If you are compiling a single-file Qt app, you should also add #include "yoursourcefilenamewithcpp.moc" to the end of source code file also.
How to install C++ support manually?
C4droid will ask you to install C++ support at first startup and will configure itself in semi-automatic mode.
If you want to do that manually, you need:
0) Enough (100MB+) internal memory
1) Install GCC plugin
2) Select G++ compiler in C4droid preferences
Note that if you want to use C4droid as a C compiler, it is better to select GCC, not G++.
How to build and install libraries?
Almost the same way as regular Makefile building except for that most probably some patching may be required.
Currently tested libraries are gmp, mpfr, mpc, libxml2, neon, sqlite, SDL_gfx (--disable-mmx required).
Which gestures/keyboard shortcuts does C4droid support?
Long-click gestures:
New button: delete current file.
Save button: save as.
Open button: recent files.
Run button: run with arguments.
Compile button: configure current directory.
Tab: close tab.
Keyboard shortcuts:
Ctrl-C, Ctrl-V, Ctrl-X for Copy, Paste and Cut
Ctrl-S, Ctrl-O for Save/Open
Ctrl-Z, Ctrl-Y for Undo/Redo.
Ctrl-L for "go to Line"
Ctrl-F for Find
Ctrl-A for select All
Ctrl-B for Build/compile
Ctrl-R for Run
Ctrl-Space/Ctrl-D for autocompletion (Ctrl-Space may be reserved by Android)
Report bugs at n0n3m4@gmail.com.
C4droid stands for "c for android" (or "c++ for android").
C4droid is not an online compiler, so it uses real binaries.
Some binaries in APK are licensed under (L)GPL, email me for the source code (Tiny C compiler, GCC, BusyBox, etc.)
Android is a trademark of Google Inc.
Qt is a registered trademark of Digia.
C4droid قویترین کامپایلر C / C ++ IDE + C / C ++ برای آندروید است.
ویژگی ها:
• کامپایلر آفلاین C / C ++: برنامه های خود را بر روی دستگاه Android ایجاد کنید و آنها را حتی بدون دسترسی به اینترنت اجرا کنید
• پشتیبانی از Qt، SDL، SDL2، Allegro، SFML، FLTK و NativeActivity برای گرافیک
• صادرات و به اشتراک گذاری برنامه های خود را به عنوان APK و یا دوچرخه
• اشکال زدایی با نقاط توقف و ساعت
• CMake و Makefile پشتیبانی: استفاده از اسکریپت ساخت همان بر روی کامپیوتر شما (BusyBox شامل)
• ویرایشگر کد منبع با برجسته کردن نحو، زبانه ها، تکمیل کد، قالب بندی کد، پیوند فایل و لغو / بازنگری
• بدون ریشه مورد نیاز (اما C4droid می توانید آن را برای برنامه های خود را اگر شما می خواهید استفاده کنید)
• پشتیبانی کامل ANSI C و ISO C99 با TCC (Compiler Tiny C) + musl libc
• کامپایلر C ++ کاملا کاربردی، پشتیبانی کامل از C ++ 11 با GCC
• ادغام GIT
• رابط گرافیکی قابل برنامه ریزی، انتخاب کنید که برای قرار دادن زبانه ها و دکمه ها توسط خودتان، تم ها نیز پشتیبانی می شوند
• قابلیت انتقال پویا کتابخانه باز با نیمه اتوماتیک برای برنامه نویسی و آموزش پیشرفته
C4droid طراحی شده است که کاربر دوست ندارد خارج از جعبه، اما هیچ چیز کامل است، بنابراین در اینجا برخی از پاسخ ها برای سوالات است که می تواند ظاهر می شود:
نحوه استفاده از Makefiles، پروژه های متنوع و غیره؟
دکمه کامپایل long-click (یا «تنظیمات کامپایل» را انتخاب کنید اگر دکمه ها پنهان یا حرکت کرده باشند) و دایرکتوری فعلی را برای استفاده از حالت مورد نظر پیکربندی کنید.
توجه داشته باشید که C4droid فایل پیکربندی .c4droid را هنگامی که Ok را فشار می دهید، ایجاد می کند. بعضی از حالت ها (مانند makefile) نیاز به وارد کردن نام فایل اجرایی نتیجه دارند، فراموش نکنید که این کار را انجام دهید.
پس از انجام این همه با استفاده از دکمه های compile و run برای ساخت و اجرا برنامه خود به طور منظم.
نحوه استفاده از کتابخانه های گرافیکی در حالت تک پرونده؟
فقط پلاگین SDL را نصب کنید و کامپایلر G ++ را در تنظیمات C4droid انتخاب کنید.
توجه داشته باشید که C4droid حالت برنامه را با استفاده از یک تجزیه و تحلیل کد بسیار ساده ساده انتخاب می کند:
هر حالت گرافیکی با رشته مربوط به آن مشخص می شود (به عنوان مثال SDL با #include "SDL.h" شناسایی شده است، نمونه های همراه را برای اطلاعات بیشتر بررسی کنید). اظهار نظر از این خطوط هیچ هیچ تأثیری ندارد.
اگر کامپایل یک برنامه Qt تک پرونده دارید، باید #include "yoursourcefilenamewithcpp.moc" را به انتهای فایل کد منبع اضافه کنید.
چگونه C ++ را به صورت دستی نصب کنیم؟
C4droid از شما می خواهد که در اولین بار راه اندازی C ++ را نصب کنید و خود را در حالت نیمه اتوماتیک پیکربندی کنید.
اگر می خواهید این کار را به صورت دستی انجام دهید، باید:
0) به اندازه کافی (100MB +) حافظه داخلی
1) نصب پلاگین GCC
2) کامپایلر G ++ را در تنظیمات C4droid انتخاب کنید
توجه داشته باشید که اگر شما مایل به استفاده از C4droid به عنوان یک کامپایلر C هستید، بهتر است GCC را انتخاب کنید نه G ++.
چگونه کتابخانه ها را بسازیم و نصب کنیم؟
تقریبا همانطور که ساخت منظم Makefile به استثنای آن، احتمالا ممکن است برخی از پچ ها لازم باشد.
کتابخانه های مورد آزمایش در حال حاضر عبارتند از gmp، mpfr، mpc، libxml2، neon، sqlite، SDL_gfx (-disable-mmx required).
کدام حرکات / کلید های میانبر پشتیبانی C4droid را انجام می دهد؟
حرکات طولانی مدت:
دکمه جدید: فایل فعلی را حذف کنید.
دکمه ذخیره: save as.
دکمه باز: فایل های اخیر.
دکمه اجرای: اجرا با استدلال
دکمه Compile: پیکربندی دایرکتوری فعلی.
تب: تب بسته.
میانبرهای صفحه کلید:
Ctrl-C، Ctrl-V، Ctrl-X برای کپی، چسباندن و برش
Ctrl-S، Ctrl-O برای ذخیره / باز کردن
Ctrl-Z، Ctrl-Y برای Undo / Redo.
Ctrl-L برای "رفتن به خط"
Ctrl-F برای پیدا کردن
Ctrl-A برای انتخاب همه
Ctrl-B برای ساخت / کامپایل
Ctrl-R برای اجرا
Ctrl-Space / Ctrl-D برای تکمیل خودکار (Ctrl-Space ممکن است توسط Android رزرو شود)
گزارش اشکالات در n0n3m4@gmail.com.
C4droid مخفف "C برای آندروید" (یا "C ++ برای آندروید").
C4droid کامپایلر آنلاین نیست، بنابراین از باینری های واقعی استفاده می کند.
برخی از فایلهای دوتایی در APK تحت (L) GPL مجوز دارند، برای کد منبع (کامپایلر کوچک C، GCC، BusyBox و غیره) به من ایمیل بزنند.
آندروید علامت تجاری گوگل است
Qt یک علامت تجاری ثبت شده Digia است.
دیدگاه ها برای C4droid - C/C++ compiler & IDE