Re: [Cppcms-users] cmake crosscompilation problems
Brought to you by:
artyom-beilis
From: Artyom <art...@ya...> - 2010-10-16 12:58:35
|
I've notices that when I build the CppCMS for ARM I confiure all search paths in CMAKE_FIND_ROOT_PATH in ToolChain.cmake file, try to use it instead of command line parameters. Also please post the file CMakeFiles/CMakeOutput.log to see if something suspicios there. Artyom P.S.: This is why I hate CMake sometimes :-) > >From: "Troch, John" <Joh...@ba...> >To: cpp...@li... >Sent: Fri, October 15, 2010 1:17:34 PM >Subject: [Cppcms-users] cmake crosscompilation problems > > >Hi all, > >I’m trying to cross-compile CppCms for an embedded platform. >I have first cross-compiled libz, libpcre and libpthread in a dedicated >directory: > >This is the content of my /libs/lib directory > >[jtr@bvwsrv06 ~/NetViz/BuildCppCms/libs/lib]$ ls -la total 21036 >drwxr-xr-x 3 jtr users 4096 2010-10-13 13:52 . >drwxr-xr-x 9 jtr users 4096 2010-10-09 19:44 .. >-rw-r--r-- 1 jtr users 134738 2010-10-09 20:10 libpcre.a >-rwxr-xr-x 1 jtr users 943 2010-10-09 20:10 libpcre.la >lrwxrwxrwx 1 jtr users 16 2010-10-09 20:10 libpcre.so ->libpcre.so.0.0.1 >lrwxrwxrwx 1 jtr users 16 2010-10-09 20:10 libpcre.so.0 -> libpcre.so.0.0.1 >-rwxr-xr-x 1 jtr users 108467 2010-10-09 20:10 libpcre.so.0.0.1 -rwxr-xr-x 1 >jtr users 129053 2010-10-13 13:49 libpthread-2.5.so >lrwxrwxrwx 1 jtr users 15 2010-10-13 13:52 libpthread.so -> libpthread.so.0 >lrwxrwxrwx 1 jtr users 17 2010-10-13 13:49 libpthread.so.0 -> >libpthread-2.5.so >-rw-r--r-- 1 jtr users 108678 2010-10-09 20:30 libz.a >lrwxrwxrwx 1 jtr users 13 2010-10-09 20:30 libz.so -> libz.so.1.2.5 >lrwxrwxrwx 1 jtr users 13 2010-10-09 20:30 libz.so.1 -> libz.so.1.2.5 >-rwxr-xr-x 1 jtr users 109533 2010-10-09 20:30 libz.so.1.2.5 > >This is the content of my /libs/include directory > >drwxr-xr-x 2 jtr users 4096 2010-10-13 13:58 . >drwxr-xr-x 9 jtr users 4096 2010-10-09 19:44 .. >-rw-r--r-- 1 jtr users 39517 2010-10-12 15:55 regex.h >... (a lot more files) >-rw-r--r-- 1 jtr users 13038 2010-10-12 15:55 pcre.h >-rw-r--r-- 1 jtr users 39423 2010-10-13 13:58 pthread.h >-rw-r--r-- 1 jtr users 79564 2010-10-13 13:47 zlib.h > >And I execute the following cmake command (with cross-compiler settings included >in Toolchain.cmake file): > >cmake -DCMAKE_TOOLCHAIN_FILE=ToolChain.cmake >-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" .. > >cmake complains as follows: > >******************************************************************************************************************************************************** > >CMake Error: The following variables are used in this project, but they are set >to NOTFOUND. >Please set them or make sure they are set and tested correctly in the CMake >files: >PCRE_LIB > linked by target "booster" in directory >/home/jtr/NetViz/BuildCppCms/cppcms/booster > linked by target "booster-static" in directory >/home/jtr/NetViz/BuildCppCms/cppcms/booster >PTHREAD_INC > used as include directory in directory >/home/jtr/NetViz/BuildCppCms/cppcms/booster >ZLIB_INCLUDE_DIR > used as include directory in directory /home/jtr/NetViz/BuildCppCms/cppcms > >When are these variables set and by whom? >What am I doing wrong? >How can I fix this? > >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. > |