Re: [Cppcms-users] Need help building cppcms on win xp
Brought to you by:
artyom-beilis
|
From: le ba <hma...@gm...> - 2013-06-29 14:42:15
|
Hi, I have used MinGW TDM-GCC Compiler Suite for Windows 4.7.1 Series in WP3 and I didn't have the problem like you have. It is very important to configure all path for all reuired library before build process. You can also deactivate the build of some feature which you will not need during the test(see CMakeLists.txt) . I have Qcreator which I use with Cmake with MinGW to build cppcms framework. Regards. 2013/6/28 Vizcayno <viz...@gm...> > 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 > |