Re: [Cppcms-users] Need help building cppcms on win xp
Brought to you by:
artyom-beilis
|
From: Szilágyi Z. <zol...@ya...> - 2013-07-07 19:00:30
|
Hi Solved, there are several versions of icu for vs2003,vs2005,vs2008,vs2009,vs2010 ICU 51 is for visual studio 2010 ICU 4.2 Visual Studio 9 ICU 4.0 visual studio 8 (<-) ICU 3.8 visual studio 5 ICU 3.6 visual studio 3 and I had to add -DICU_INCLUDE_DIR="D:\cppcms\dependency\include\icu" ^ my experience building cppcms for xp, visual studio is summarized in https://dl.dropboxusercontent.com/u/50117838/howToXpVs2008.txt ( dependencys https://dl.dropboxusercontent.com/u/50117838/dependency.zip) Regards Zoltán ________________________________ From: Szilágyi Zoltán <zol...@ya...> To: "cpp...@li..." <cpp...@li...> Sent: Thursday, July 4, 2013 7:06 AM Subject: Re: [Cppcms-users] Need help building cppcms on win xp Hi, Good news. I succeed compiling cppcms.Linker error was due not including -DLIB_OPENSSL lib files used by visual studio. Now test.py generates: set PATH=D:\cppcms\dependency\lib\zlib;%PATH% set PATH=D:\cppcms\dependency\lib\pcre;%PATH% set PATH=D:\cppcms\dependency\lib\openssl;%PATH% set PATH=D:\cppcms\dependency\lib\icu;%PATH% set PATH=D:\cppcms\cppcms-1.0.4\build\booster;%PATH% set PATH=D:\cppcms\release\bin;%PATH% cmake -G "NMake Makefiles" ^ -DCMAKE_BUILD_TYPE=Release ^ -DCMAKE_INSTALL_PREFIX="D:\cppcms\release" ^ -DCMAKE_INCLUDE_PATH="D:\cppcms\dependency\include;D:\cppcms\dependency\include\openssl;D:\cppcms\dependency\include\pcre;D:\cppcms\dependency\include\zlib;D:\cppcms\dependency\include\icu\layout;D:\cppcms\dependency\include\icu\unicode" ^ -DCMAKE_LIBRARY_PATH="D:\cppcms\dependency\lib\openssl;D:\cppcms\dependency\lib\pcre;D:\cppcms\dependency\lib\zlib;D:\cppcms\dependency\lib\icu" ^ -DOPENSSL_ROOT_DIR="C:\OpenSSL-Win32" ^ -DOPENSSL_INCLUDE_DIR="C:\OpenSSL-Win32\include" ^ -DLIB_OPENSSL="C:\OpenSSL-Win32\lib\VC\libeay32MD.lib;C:\OpenSSL-Win32\lib\VC\libeay32MT.lib;C:\OpenSSL-Win32\lib\VC\ssleay32MD.lib;C:\OpenSSL-Win32\lib\VC\ssleay32MT.lib" ^ -DDISABLE_STATIC=ON ^ -DDISABLE_SHARED=OFF ^ -DDISABLE_GCRYPT=ON ^ .. Only one thing still dont understand, why doesn't find the icu libraries in the configuration stage? I get: -- Looking for ICU libraries -- ICU not found, disabling ICU localization backendnmake Somebody could point me in the right direction? Regards, Zoltán ________________________________ From: Szilágyi Zoltán <zol...@ya...> To: "cpp...@li..." <cpp...@li...> Sent: Sunday, June 30, 2013 4:12 PM Subject: Re: [Cppcms-users] Need help building cppcms on win xp Hi, I have the following folder structure: D:\cppcms D:\cppcms\cppcms-1.0.4 D:\cppcms\cppcms-1.0.4\build D:\cppcms\dependency with the folder structure like in the zip file: https://dl.dropboxusercontent.com/u/50117838/dependency.zip C:\OpenSSL-Win32 C:\OpenSSL-Win32\include C:\OpenSSL-Win32\include\openssl C:\OpenSSL-Win32\lib C:\OpenSSL-Win32\lib\VC D:\cppcms\release D:\cppcms\release\bin What should I have to have in the bin directory?Now I have the followings: https://dl.dropboxusercontent.com/u/50117838/release.zip It seems if I dont have in the D:\cppcms\release\bin pcre dll, and D:\cppcms\release\bin is not added to the path variable,then it remain stuck at the configure step. I also enhanced test.py witch now generate: set PATH=D:\cppcms\dependency\lib\zlib;%PATH% set PATH=D:\cppcms\dependency\lib\pcre;%PATH% set PATH=D:\cppcms\dependency\lib\openssl;%PATH% set PATH=D:\cppcms\dependency\lib\icu;%PATH% set PATH=D:\cppcms\cppcms-1.0.4\build\booster;%PATH% set PATH=D:\cppcms\release\bin;%PATH% cmake -G "NMake Makefiles" ^ -DCMAKE_BUILD_TYPE=Release ^ -DCMAKE_INSTALL_PREFIX="D:\cppcms\release" ^ -DCMAKE_INCLUDE_PATH="D:\cppcms\dependency\include;D:\cppcms\dependency\include\openssl;D:\cppcms\dependency\include\pcre;D:\cppcms\dependency\include\zlib;D:\cppcms\dependency\include\icu\layout;D:\cppcms\dependency\include\icu\unicode" ^ -DCMAKE_LIBRARY_PATH="D:\cppcms\dependency\lib\openssl;D:\cppcms\dependency\lib\pcre;D:\cppcms\dependency\lib\zlib;D:\cppcms\dependency\lib\icu" ^ -DOPENSSL_ROOT_DIR="C:\OpenSSL-Win32" ^ -DOPENSSL_INCLUDE_DIR="C:\OpenSSL-Win32\include" ^ -DLIB_OPENSSL="C:\OpenSSL-Win32\lib;C:\OpenSSL-Win32\lib\VC" ^ -DDISABLE_STATIC=ON ^ -DDISABLE_SHARED=OFF ^ .. I am still not able to compile ( see in error.txt), I think that openssl library is not linked or found. Also now I have icu library added but I get at the configure level: -- Looking for ICU libraries -- ICU not found, disabling ICU localization backendnmake I think ICU should be added like openssl style? (-DICU_INCLUDE_DIR? etc) Regards, Zoltán ________________________________ From: Vizcayno <viz...@gm...> To: cpp...@li... Sent: Friday, June 28, 2013 7:30 AM Subject: Re: [Cppcms-users] Need help building cppcms on win xp Hello, Please read carefully all the indications about installation of cppCms in the corresponding links for Windows. It is important that you can download all the necessary software indicated as requisites. ==>ZLIB: Download zlib128-dll.zip (compiled DLL) from http://zlib.net, unzip and follow the indications contained in file USAGE.txt inside .zip file. ==>PCRE: Download pcre-8.33.zip from www.pcre.org because the precompiled version offered in this site corresponds to version 7. The zip file contains source code so, you need to build the .lib and .dll files. Assuming you downloaded to c:\pcre, follow next steps in the DOS cmd: - Cd c:\pcre - Unzip file - set path=%path%;{directory of cmake}\bin - cd C:\pcre\pcre-8.33 - md build - cd build - run cmake-gui, then fill next data on the screen: Where is the source code: c:/pcre/pcre-8.33 Where to build the binaries: c:/pcre/pcre-8.33/build - Then press configure button and wait some seconds - Change some parameters: BUILD_SHARED_LIBS -> X PCRE_SUPPORT_UTF -> X CMAKE_BUILD_TYPE -> Release (Create line if necessary) CMAKE_INSTALL_PREFIX -> C:/ pcre CMAKE_C_FLAGS_RELEASE -> /MD /EHsc /Ox /Ob2 /Oi /D NDEBUG - Then, press generate button selecting the compiler you have (I assume VC). After that, a .sln file is generated, which you can use to build the .dll files. If you have problems with .h files, it may be caused by the inclusion of the word .generic appended in the name, erase those characters from filename. - Once you have the .dll, you can test executing pcre_test.bat (in build folder). ==>OPENSSL: Download Openssl from http://slproweb.com/products/Win32OpenSSL.html. The object to download is Win32 OpenSSL v1.0.1e It is necessary to have installed the Visual C++ 2008 redistributable. That is all wil the dependent object. Now we go to cppCms build. Invoke the command prompt of VS.. with administrative privileges. ==>CPPCMS. Once you have all the dependencies resolved and you know where in your disk are the .lib, -h and .dll files created of PCRE, ZLIB an OPENSSL, you can build the cppCms which you must previously download (version 1.0.4). Assuming you downloaded in c:\cppcms: - cd c:\cppCms - create build folder inside. - cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release DCMAKE_INSTALL_PREFIX="c:/cppcms/cppcms" -DCMAKE_INCLUDE_PATH=”{list of folders where are include files of pcre,zlib and OpenSSL, separated by ;}" - DCMAKE_LIBRARY_PATH=”{ list of folders where are the -lib files of pcre,zlib and OpenSSL, separated by ;}" -DOPENSSL_INCLUDE_DIR="{path of include folder for OpenSSL}” -DLIB_OPENSSL="{folder where is the .lib of openSSL}/VC/libeay32MD.lib" .. - nmake - nmake test - (wait many minutes.....) - nmake install the executables of cppCms will be created into program files, you can then move to another particular folder. That is all. Hope it helps. If you ned more help, let me know. Regards. ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |