[Cppcms-users] cross-compiling CppCms
Brought to you by:
artyom-beilis
From: Troch, J. <Joh...@ba...> - 2010-10-20 11:07:07
|
Hi all, I recently got into some trouble while cross-compiling CppCms and therefore I have written some guidelines to make it work: How to cross-build cppcms 1/ download and cross-compile at least zlib and pcre-lib 2/ download cppcms tarball 3/ untar cppcms tarball 4/ cd cppcms 5/ untar cppcms_boost.tar.bz2 6/ patch CmakeLists.txt and /booster/CMakeLists.txt if(CMAKE_SYSTEM_NAME STREQUAL "SunOS") set(CXX_FLAGS "${CXX_FLAGS} -pthreads") else() set(CXX_FLAGS "${CXX_FLAGS} -lpthread -ldl") endif() (This patch results in some warnings during native compilation however) 7/ mkdir build cd build 8/ cmake -DCMAKE_TOOLCHAIN_FILE=ToolChain.cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DDISABLE_ICU_LOCALE=ON -DDISABLE_POSIX_LOCALE=ON -DDISABLE_SCGI=ON -DDISABLE_HTTP=ON -DCMAKE_INSTALL_PREFIX="/home/jtr/NetViz/BuildCppCms/libs" -DCMAKE_INCLUDE_PATH="/home/jtr/NetViz/BuildCppCms/libs/include" -DCMAKE_LIBRARY_PATH="/home/jtr/NetViz/BuildCppCms/libs/lib" -DZLIB_INCLUDE_DIR=/home/jtr/NetViz/BuildCppCms/zlib-1.2.5 -DZLIB=/home/jtr/NetViz/BuildCppCms/zlib-1.2.5/libz.so -DPCRE_LIB=/home/jtr/NetViz/BuildCppCms/pcre-8.10/.libs/libpcre.so -DPTHREAD_INC=/home/jtr/NetViz/BuildCppCms/libs/include .. (the important parts are in bold, without these, I did not succeed in any way. The paths need to be adapted of course) 9/ make 10/ make install Regards, John DISCLAIMER: Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you. |