This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
android:setting_up_ndk_to_build_the_library [2011/07/23 00:47] mjallison created |
android:setting_up_ndk_to_build_the_library [2018/04/23 18:41] (current) mjallison |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | **THIS PAGE IS OBSOLETE, MODERN NDK BUILD IS DONE IN ANDROID STUDIO.** | ||
+ | |||
The AGTEK Lib project contains native code for the TriMesh. In order to compile and test the library you must add a native "builder" to your Eclipse project. | The AGTEK Lib project contains native code for the TriMesh. In order to compile and test the library you must add a native "builder" to your Eclipse project. | ||
Line 12: | Line 14: | ||
- Location - c:\cygwin\bin\bash.exe | - Location - c:\cygwin\bin\bash.exe | ||
- Working Directory - c:\cygwin\bin | - Working Directory - c:\cygwin\bin | ||
- | - Arguments(for NDK r4): | + | - Arguments(for NDK r4):\\ ----login -c "cd /cygdrive/c/<myapp_project_dir> && /cygdrive/c/Android_NDK/ndk-build"\\ Substitute the string "myapp_project_dir" and the location of the Android NDK appropriately. Make sure you have the two hyphens before login and the quotes after the hyphen-c |
- | ----login -c "cd /cygdrive/c/<myapp_project_dir> && /cygdrive/c/Android_NDK/ndk-build" | + | |
- | Substitute the string "myapp_project_dir" and the location of the Android NDK appropriately. Make sure you have the two hyphens before login and the quotes after the hyphen-c | + | |
- | | + | |
- Check "Refresh resources upon completion" | - Check "Refresh resources upon completion" | ||
- Select "Specific resources" | - Select "Specific resources" | ||
- Click on the "Specify resources" button and select your project's lib directory. | - Click on the "Specify resources" button and select your project's lib directory. | ||
- Check "Recursively include sub-folders" | - Check "Recursively include sub-folders" | ||
- | |||
- Now go to the build options tab | - Now go to the build options tab | ||
- Check "Allocate Console" | - Check "Allocate Console" |