编译cBPM-android—CodeBlocks(全局、局部)参数设置—CentOS 7— android-ndk
********---------------------------编译参数 设置********codeblocks 全局参数 设置:
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Compiler Settings】->【Other options】
空
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Compiler Settings】->【#defines】
空
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Linker Settings】->【Link libraries】
空
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Search directories】->【Compiler】
空
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Search directories】->【Linker】
空
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Toolchain executable】->【ompiler Installation directory】
/opt/android-on-linux/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/
arm-linux-androideabi-gcc
arm-linux-androideabi-g++
arm-linux-androideabi-g++
arm-linux-androideabi-ar
********---------------------------******** 全局参数 设置:权宜之计,实现 静态库的编译:
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Other Settings】->【Advanced options】->【Commands】->【Link object files to dynamic library】
将
$linker -shared $libdirs $link_objects $link_resobjects -o $exe_output $link_options $libs
修改为
$lib_linker -r -s $static_output $link_objects
********---------------------------******** 全局参数 设置:权宜之计,实现 链接对象顺序的正确,否则,编译Criteria.Tools.Executor出错
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Other Settings】->【Advanced options】->【Commands】->【Link object files to console executable】
将
$linker $libdirs -o $exe_output $link_objects $link_resobjects $link_options $libs
修改为
$linker $libdirs -o $exe_output /opt/android-on-linux/android-ndk-r10d/platforms/android-19/arch-arm/usr/lib/crtbegin_static.o $link_objects $link_resobjects $link_options $libs /opt/android-on-linux/android-ndk-r10d/platforms/android-19/arch-arm/usr/lib/crtend_android.o
主要是下面两个文件的位置:
/opt/android-on-linux/android-ndk-r10d/platforms/android-19/arch-arm/usr/lib/crtbegin_static.o
/opt/android-on-linux/android-ndk-r10d/platforms/android-19/arch-arm/usr/lib/crtend_android.o
********---------------------------********
codeblocks 局部参数 设置: Criteria.Libraries.bOS
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Compiler Settings】->【Other options】
-W
-O0
-g3
-c
-fmessage-length=0
-fexceptions
默认情况下,GNU工具链编译过程中,控制台输出的一行信息是不换行的,这样,当输出信息过长时(如编译错误时的信息),会导致你无法看到完整的输出信息,加入-fmessage-length=0后,输出信息会根据控制台的宽度自动换行,这样就能看全输出信息了。
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Compiler Settings】->【#defines】
_USE_SQLITE3_
SQLITE_OS_UNIX
WIN32
_DEBUG
_WINDOWS
_USRDLL
_CODEMANAGER_TRACE_ON_
BOS_EXPORTS
CODEMANAGER_EXPORTS
ANDROID
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Search directories】->【Compiler】
/opt/cBPM-android/criteria-lin/include/bOS/
/opt/android-on-linux/android-ndk-r10d/sources/cxx-stl/stlport/stlport
/opt/android-on-linux/android-ndk-r10d/platforms/android-19/arch-arm/usr/include
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Pre/post build steps】->【Post-build steps】
cp /opt/cBPM-android/criteria-lin/bin/Criteria/Debug/bOS/libLibraries.a /opt/cBPM-android/criteria-lin/lib/
右健单击【Criteria.Libraries.bOS】,选择【Properties】,设置见图。
********---------------------------********
codeblocks 局部参数 设置: Criteria.WorkflowEngine
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Compiler Settings】->【Other options】
-W
-O0
-g3
-c
-fmessage-length=0
-fexceptions
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Compiler Settings】->【#defines】
WIN32
_DEBUG
_WINDOWS
_USRDLL
ENGINE_EXPORTS
WAPI_EXPORTS
_CODEMANAGER_TRACE_ON_
_USE_SQLITE3_
BOS_EXPORTS
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Search directories】->【Compiler】
/opt/cBPM-android/criteria-lin/include/WorkflowEngine
/opt/cBPM-android/criteria-lin/include/bOS/
/opt/android-on-linux/android-ndk-r10d/sources/cxx-stl/stlport/stlport
/opt/android-on-linux/android-ndk-r10d/platforms/android-19/arch-arm/usr/include
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Pre/post build steps】->【Post-build steps】
cp /opt/cBPM-android/criteria-lin/bin/Criteria/Debug/WorkflowEngine/libWorkflowEngineD.a /opt/cBPM-android/criteria-lin/lib/
右健单击【Criteria.WorkflowEngine】,选择【Properties】,设置见图。
********---------------------------********
codeblocks 局部参数 设置: Criteria.Tools.Executor
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Compiler Settings】->【Other options】
-W
-O0
-g3
-c
-fmessage-length=0
-fexceptions
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Compiler Settings】->【#defines】
WIN32
_DEBUG
_CONSOLE
_CODEMANAGER_TRACE_ON_
BOS_EXPORTS
ENGINE_EXPORTS
顺序超级重要)》》》》》》》》》》(顺序超级重要)《《《《《《《《《《《《《
codeblocks 局部参数 设置: Criteria.Tools.Executor
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Linker Settings】->【Link libraries】
WorkflowEngineD
Libraries
sqlite
xerces-c
iconv
stlport_static
m
gcc
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Linker Settings】->【Other linker options】
-static
-nostdlib
-Wl,-dy -ldl -lc -Wl,-dn
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Search directories】->【Compiler】
/opt/cBPM-android/criteria-lin/include/bOS/
/opt/cBPM-android/criteria-lin/include/WorkflowEngine
/opt/android-on-linux/android-ndk-r10d/platforms/android-19/arch-arm/usr/include
/opt/android-on-linux/android-ndk-r10d/sources/cxx-stl/stlport/stlport
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Search directories】->【Linker】
/opt/cBPM-android/criteria-lin/lib
/opt/android-on-linux/android-ndk-r10d/sources/cxx-stl/stlport/libs/armeabi-v7a
/opt/android-on-linux/android-ndk-r10d/platforms/android-19/arch-arm/usr/lib/
/opt/android-on-linux/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9/armv7-a/ //libgcc.a
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Pre/post build steps】->【Post-build steps】
cp /opt/cBPM-android/criteria-lin/bin/Criteria/Debug/Tools.Executor/executer /opt/cBPM-android/criteria-lin/lib/
右健单击【Criteria.WorkflowEngine】,选择【Properties】,设置见图。
阅读(69) | 评论(0) | 转发(0) |
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Compiler Settings】->【Other options】
空
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Compiler Settings】->【#defines】
空
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Linker Settings】->【Link libraries】
空
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Search directories】->【Compiler】
空
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Search directories】->【Linker】
空
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Toolchain executable】->【ompiler Installation directory】
/opt/android-on-linux/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/
arm-linux-androideabi-gcc
arm-linux-androideabi-g++
arm-linux-androideabi-g++
arm-linux-androideabi-ar
********---------------------------******** 全局参数 设置:权宜之计,实现 静态库的编译:
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Other Settings】->【Advanced options】->【Commands】->【Link object files to dynamic library】
将
$linker -shared $libdirs $link_objects $link_resobjects -o $exe_output $link_options $libs
修改为
$lib_linker -r -s $static_output $link_objects
********---------------------------******** 全局参数 设置:权宜之计,实现 链接对象顺序的正确,否则,编译Criteria.Tools.Executor出错
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Other Settings】->【Advanced options】->【Commands】->【Link object files to console executable】
将
$linker $libdirs -o $exe_output $link_objects $link_resobjects $link_options $libs
修改为
$linker $libdirs -o $exe_output /opt/android-on-linux/android-ndk-r10d/platforms/android-19/arch-arm/usr/lib/crtbegin_static.o $link_objects $link_resobjects $link_options $libs /opt/android-on-linux/android-ndk-r10d/platforms/android-19/arch-arm/usr/lib/crtend_android.o
主要是下面两个文件的位置:
/opt/android-on-linux/android-ndk-r10d/platforms/android-19/arch-arm/usr/lib/crtbegin_static.o
/opt/android-on-linux/android-ndk-r10d/platforms/android-19/arch-arm/usr/lib/crtend_android.o
********---------------------------********
codeblocks 局部参数 设置: Criteria.Libraries.bOS
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Compiler Settings】->【Other options】
-W
-O0
-g3
-c
-fmessage-length=0
-fexceptions
默认情况下,GNU工具链编译过程中,控制台输出的一行信息是不换行的,这样,当输出信息过长时(如编译错误时的信息),会导致你无法看到完整的输出信息,加入-fmessage-length=0后,输出信息会根据控制台的宽度自动换行,这样就能看全输出信息了。
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Compiler Settings】->【#defines】
_USE_SQLITE3_
SQLITE_OS_UNIX
WIN32
_DEBUG
_WINDOWS
_USRDLL
_CODEMANAGER_TRACE_ON_
BOS_EXPORTS
CODEMANAGER_EXPORTS
ANDROID
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Search directories】->【Compiler】
/opt/cBPM-android/criteria-lin/include/bOS/
/opt/android-on-linux/android-ndk-r10d/sources/cxx-stl/stlport/stlport
/opt/android-on-linux/android-ndk-r10d/platforms/android-19/arch-arm/usr/include
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Pre/post build steps】->【Post-build steps】
cp /opt/cBPM-android/criteria-lin/bin/Criteria/Debug/bOS/libLibraries.a /opt/cBPM-android/criteria-lin/lib/
右健单击【Criteria.Libraries.bOS】,选择【Properties】,设置见图。
********---------------------------********
codeblocks 局部参数 设置: Criteria.WorkflowEngine
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Compiler Settings】->【Other options】
-W
-O0
-g3
-c
-fmessage-length=0
-fexceptions
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Compiler Settings】->【#defines】
WIN32
_DEBUG
_WINDOWS
_USRDLL
ENGINE_EXPORTS
WAPI_EXPORTS
_CODEMANAGER_TRACE_ON_
_USE_SQLITE3_
BOS_EXPORTS
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Search directories】->【Compiler】
/opt/cBPM-android/criteria-lin/include/WorkflowEngine
/opt/cBPM-android/criteria-lin/include/bOS/
/opt/android-on-linux/android-ndk-r10d/sources/cxx-stl/stlport/stlport
/opt/android-on-linux/android-ndk-r10d/platforms/android-19/arch-arm/usr/include
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Pre/post build steps】->【Post-build steps】
cp /opt/cBPM-android/criteria-lin/bin/Criteria/Debug/WorkflowEngine/libWorkflowEngineD.a /opt/cBPM-android/criteria-lin/lib/
右健单击【Criteria.WorkflowEngine】,选择【Properties】,设置见图。
********---------------------------********
codeblocks 局部参数 设置: Criteria.Tools.Executor
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Compiler Settings】->【Other options】
-W
-O0
-g3
-c
-fmessage-length=0
-fexceptions
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Compiler Settings】->【#defines】
WIN32
_DEBUG
_CONSOLE
_CODEMANAGER_TRACE_ON_
BOS_EXPORTS
ENGINE_EXPORTS
顺序超级重要)》》》》》》》》》》(顺序超级重要)《《《《《《《《《《《《《
codeblocks 局部参数 设置: Criteria.Tools.Executor
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Linker Settings】->【Link libraries】
WorkflowEngineD
Libraries
sqlite
xerces-c
iconv
stlport_static
m
gcc
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Linker Settings】->【Other linker options】
-static
-nostdlib
-Wl,-dy -ldl -lc -Wl,-dn
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Search directories】->【Compiler】
/opt/cBPM-android/criteria-lin/include/bOS/
/opt/cBPM-android/criteria-lin/include/WorkflowEngine
/opt/android-on-linux/android-ndk-r10d/platforms/android-19/arch-arm/usr/include
/opt/android-on-linux/android-ndk-r10d/sources/cxx-stl/stlport/stlport
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Search directories】->【Linker】
/opt/cBPM-android/criteria-lin/lib
/opt/android-on-linux/android-ndk-r10d/sources/cxx-stl/stlport/libs/armeabi-v7a
/opt/android-on-linux/android-ndk-r10d/platforms/android-19/arch-arm/usr/lib/
/opt/android-on-linux/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9/armv7-a/ //libgcc.a
【Settings】->【Compiler】->【GNU ARM GCC Compiler For Android】->【Pre/post build steps】->【Post-build steps】
cp /opt/cBPM-android/criteria-lin/bin/Criteria/Debug/Tools.Executor/executer /opt/cBPM-android/criteria-lin/lib/
右健单击【Criteria.WorkflowEngine】,选择【Properties】,设置见图。
上一篇:error: undefined reference to '__aeabi_uidiv'
下一篇:undefined reference to __aeabi_unwind_cpp_pr1, __cxa_end_cleanup
相关热门文章
给主人留下些什么吧!~~
评论热议