Re: [Cppcms-users] Some compilation errors when trying to build cppCms
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2012-02-21 09:12:59
|
> >Thanks for your answer and help. >I could not solve the problem yet,so let me send you the errors I have: >$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ >The cmake command and options I used are: >cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release DCMAKE_INSTALL_PREFIX=c:\ >apps\extApps\cppcms -DPCRE_INCLUDE=C:/apps/extApps/pcre/include -DPCRE_LIB=C:/ap >ps/extApps/pcre/lib -DZLIB_INCLUDE_DIR=C:/apps/extApps/pcre/include -DZLIB=C:/ap >ps/extApps/zlib/lib -DPYTHON=C:/apps/extApps/Python27 .. > >$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ First of all you should specify: -DCMAKE_INCLUDE_PATH="C:/apps/extApps/pcre/include;C:/apps/extApps/pcre/include" -DCMAKE_LIBRARY_PATH="C:/apps/extApps/pcre/lib;C:/apps/extApps/zlib/lib" This were cmake would search the libraries. You also don't need to specify: -DPYTHON=C:/apps/extApps/Python27 But rather set environment variable PATH in cmd SET PATH=c:\apps\extapps\python27;%PATH% And let CMake find the libraries and executables. Also if you want to specify "PCRE_LIB" and ZLIB directly (which is not recommended) you need to specify a full path to the import library and not to the directory. Take a look on your warnings they tell everything. Regards, Artyom |