Take a look into Android ndk docs/ANDROID-MK.html file how to create one.Ĥ) Refresh (F5) directories in Package Explorer to see jni directory here. Also put here Android.mk file which is a makefile that tells Android build-system how to build your files. If you have another Eclipse release than Galileo choose the appropriate url.Ĭlick Next, Accept licences and finish the installation process.Ģ) In Eclipse create Android project to which you want to add C/C++ code (if you already don’t have one).įor this tutorial I’ve created simple MyAndroidProject.ģ) In file manager create jni/ directory in your project directory and place your C/C++ sources file here. Download it from and unpack it somewhere.ġ) Install CDT (C/C++ Development Tools) into Eclipse.Ĭhoose Help->Install New Software… from the main menu.Ĭhoose as the source site. You need to have Google ADT (Android Development Tools) installed. Programming in C/C++ on Android is just awesome! This tutorial shows how to setup Eclipse for using C/C++ together with Java in Android projects.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |