1.1) 配置全局环境
S1: 打开 Settings-> Compiler
S2: 选择 Selected complier -> GNU GCC Complier, 选择 Toolchain executables
S3: 设置android-ndk路径( Complier's installation directory ) ,如 /opt/android-on-linux/android-ndk-r10d/toolchains/x86-4.9/prebuilt/linux-x86/
S4: 设置Program Files各个编译程序(x86-4.9/prebuilt/linux-x86/bin/)
C complier: i686-linux-android-gcc
C++ compiler: i686-linux-android-g++
Linker for dynamic libs: i686-linux-android-g++
Linker for static libs: i686-linux-android-ar
S5: 打开 Settings-> debugger
Debugger: i686-linux-android-gdb
S6: 选择 Selected complier -> GNU GCC Complier, 选择 Toolchain executables, 设置Additional Paths, 增加(Add) : /opt/android-on-linux/android-ndk-r10d/toolchains/x86-4.9/prebuilt/linux-x86/i686-linux-android/bin
S7: 选择 Selected complier -> GNU GCC Complier, 选择 Search directories -> Compiler, 增加(Add) :
/opt/android-on-linux/android-ndk-r10d/toolchains/x86-4.9/prebuilt/linux-x86/include
/usr/include
S8: 选择 Selected complier -> GNU GCC Complier, 选择 Search directories -> Linker, 增加(Add) :
/opt/android-on-linux/android-ndk-r10d/toolchains/x86-4.9/prebuilt/linux-x86/lib
/opt/android-on-linux/android-ndk-r10d/toolchains/x86-4.9/prebuilt/linux-x86/lib/gcc/i686-linux-android/4.9
S9: 设置完成,点击确定
1.2) 配置项目的环境 //bOS
S1: 右击项目,选择Build options, Selected Complier选择刚才设置的那?? GUN GCC Compiler
S2: Compler settings -> Other options , 写入 -pie -fPIE
S3: 设置 Search directories -> Linker, Add :
/opt/android-on-linux/android-ndk-r10d/platforms/android-21/arch-x86/usr/lib
S4: 设置 Search directories -> Complier, Add
/opt/android-on-linux/android-ndk-r10d/platforms/android-21/arch-x86/usr/include
/opt/cBPM-android/criteria-lin/include/bOS
/opt/cBPM-android/criteria-lin/include/
/usr/include
//WorkflowEngine
S1: 右击项目,选择Build options, Selected Complier选择刚才设置的那?? GUN GCC Compiler
S2: Compler settings -> Other options , 写入 -pie -fPIE
S3: 设置 Search directories -> Linker, Add :
/opt/android-on-linux/android-ndk-r10d/platforms/android-21/arch-x86/usr/lib
S4: 设置 Search directories -> Complier, Add
/opt/android-on-linux/android-ndk-r10d/platforms/android-21/arch-x86/usr/include
/opt/cBPM-android/criteria-lin/include/WorkflowEngine
/opt/cBPM-android/criteria-lin/include/bOS
/opt/cBPM-android/criteria-lin/include/
/usr/include
//Executor
S1: 右击项目,选择Build options, Selected Complier选择刚才设置的那?? GUN GCC Compiler
S2: Compler settings -> Other options , 写入 -pie -fPIE
S3: 设置 Search directories -> Linker, Add :
/opt/android-on-linux/android-ndk-r10d/platforms/android-21/arch-x86/usr/lib
/usr/lib64/
/usr/lib64/mysql/
S4: 设置 Search directories -> Complier, Add
/opt/android-on-linux/android-ndk-r10d/platforms/android-21/arch-x86/usr/include
/opt/cBPM-android/criteria-lin/include/bOS
/opt/cBPM-android/criteria-lin/include/WorkflowEngine
/opt/cBPM-android/criteria-lin/include/
/usr/include
阅读(1338) | 评论(0) | 转发(0) |