Thread: [Cppcms-users] Need help building cppcms on win xp
Brought to you by:
artyom-beilis
|
From: Szilágyi Z. <zol...@ya...> - 2013-06-27 17:40:02
|
Hi, I am new to cppcms. I tried to compile it on Debian 7 squeeze following the instructions. Everything working flawless. But on win xp I have really hard time, 3 days spent on it, without success.This is mostly because of the dependencies I guess. It is really hard to get the right binaries, even getting the right binaries there could be version number issue.And compiling from source code, all of the dependencies with the latest version available would be the right think to do, but it is huge pain in the ass to do that. Ok: I still don't get it to make the thinks working on win xp. Running nmake test I get: 31% tests passed, 58 tests failed out of 84 Total Test time (real) = 13.69 sec The following tests FAILED: 1 - base64_test (OTHER_FAULT) 2 - encryptor_test (OTHER_FAULT) 3 - storage_test (OTHER_FAULT) 4 - json_test (OTHER_FAULT) 5 - multipart_parser_test (OTHER_FAULT) 6 - content_type_parser_test (OTHER_FAULT) 7 - cache_backend_test (OTHER_FAULT) 8 - serialization_test (OTHER_FAULT) 9 - xss_test (OTHER_FAULT) 10 - rewrite_test (OTHER_FAULT) 11 - url_mapper_test (OTHER_FAULT) 12 - copy_filter_test (OTHER_FAULT) 13 - mount_point_test (OTHER_FAULT) 14 - tc_test (OTHER_FAULT) 15 - status_test (OTHER_FAULT) 16 - async_status_test (OTHER_FAULT) 17 - form_test (OTHER_FAULT) 18 - cookie_test (OTHER_FAULT) 19 - internal_forwarder_test (OTHER_FAULT) 20 - forwarder_test (OTHER_FAULT) 21 - jsonrpc_test (OTHER_FAULT) 22 - http_timeouts_test_read (OTHER_FAULT) 23 - http_timeouts_test_write (OTHER_FAULT) 24 - file_server_test (OTHER_FAULT) 25 - file_server_with_listing_test (OTHER_FAULT) 26 - disco_test_http (OTHER_FAULT) 27 - disco_test_fastcgi_tcp (OTHER_FAULT) 28 - disco_test_scgi_tcp (OTHER_FAULT) 29 - secure_post_test (OTHER_FAULT) 30 - gzip_test (OTHER_FAULT) 31 - cache_frontend_test (OTHER_FAULT) 32 - session_interface_test_client_renew (OTHER_FAULT) 33 - session_interface_test_client_browser (OTHER_FAULT) 34 - session_interface_test_client_fixed (OTHER_FAULT) 35 - session_interface_test_server_renew (OTHER_FAULT) 36 - session_interface_test_server_browser (OTHER_FAULT) 37 - session_interface_test_server_fixed (OTHER_FAULT) 38 - session_interface_test_both_renew (OTHER_FAULT) 39 - session_interface_test_both_browser (OTHER_FAULT) 40 - session_interface_test_both_fixed (OTHER_FAULT) 41 - proto_test_async_http (OTHER_FAULT) 42 - proto_test_async_scgi (OTHER_FAULT) 43 - proto_test_async_fastcgi (OTHER_FAULT) 44 - proto_test_sync_http (OTHER_FAULT) 45 - proto_test_sync_scgi (OTHER_FAULT) 46 - proto_test_sync_fastcgi (OTHER_FAULT) 47 - loadable_storage_pass (OTHER_FAULT) 48 - loadable_storage_fail (OTHER_FAULT) 66 - test_locale_codepage (Failed) 67 - test_locale_message (Failed) 70 - test_locale_date_time (Failed) 71 - test_locale_generator (Failed) 72 - test_locale_config (Failed) 74 - test_locale_collate (Failed) 75 - test_locale_convert (Failed) 76 - test_locale_boundary (Failed) 77 - test_locale_formatting (Failed) 78 - test_locale_icu_vs_os_timezone (Failed) Errors while running CTest NMAKE : fatal error U1077: 'echo' : return code '0x8' Stop. Strange thing that noticed on Linux there are 93 tests for the same cppcms-1.0.4 while on windows it seems to be 84.( I could be because of crash maybe during the tests.) Somebody could help me to install cppcms on windows xp? Or somebody could supplying the right dependencies ( or at least their version numbers). Mingw build would be a better option for windows xp vs MSVC? If anybody succeeded installing cppcms on win xp could share his experience with me? Btw it would not be a good idea to share the needed dependencies via install.exe for windows, or a zip file, copy -paste way, supposing that the dependencies don't change in a way that could affect cppcms builds? ( I made once a time application in qt and I made also Linux version. For the windows I have setup.exe. So I want to build setup also for Linux version but just could not find good alternative for setup exe style only deb, rpm... packages so I ended in writing a bash file for the setup in Linux.Windows and Linux differ so choosing a path that works fine one system it is very hard on the other so I guess for windows should exists something in windows style.At least dependencies via install.exe) Thank you, Zoltán |
|
From: Vizcayno <viz...@gm...> - 2013-06-28 04:31:49
|
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. |
|
From: Szilágyi Z. <zol...@ya...> - 2013-06-30 13:12:25
Attachments:
test.py
|
Linking CXX shared library cppcms.dll Creating library cppcms.lib and object cppcms.exp aes.cpp.obj : error LNK2019: unresolved external symbol _AES_cbc_encrypt referen ced in function "public: virtual void __thiscall cppcms::crypto::openssl_aes_enc ryptor::encrypt(void const *,void *,unsigned int)" (?encrypt@openssl_aes_encrypt or@crypto@cppcms@@UAEXPBXPAXI@Z) aes.cpp.obj : error LNK2019: unresolved external symbol _AES_set_encrypt_key ref erenced in function "public: virtual void __thiscall cppcms::crypto::openssl_aes _encryptor::encrypt(void const *,void *,unsigned int)" (?encrypt@openssl_aes_enc ryptor@crypto@cppcms@@UAEXPBXPAXI@Z) aes.cpp.obj : error LNK2019: unresolved external symbol _AES_set_decrypt_key ref erenced in function "public: virtual void __thiscall cppcms::crypto::openssl_aes _encryptor::decrypt(void const *,void *,unsigned int)" (?decrypt@openssl_aes_enc ryptor@crypto@cppcms@@UAEXPBXPAXI@Z) crypto.cpp.obj : error LNK2019: unresolved external symbol _SHA224_Init referenc ed in function "public: __thiscall cppcms::crypto::`anonymous namespace'::ssl_sh a224::ssl_sha224(void)" (??0ssl_sha224@?A0xd862601b@crypto@cppcms@@QAE@XZ) crypto.cpp.obj : error LNK2019: unresolved external symbol _SHA224_Update refere nced in function "public: virtual void __thiscall cppcms::crypto::`anonymous nam espace'::ssl_sha224::append(void const *,unsigned int)" (?append@ssl_sha224@?A0x d862601b@crypto@cppcms@@UAEXPBXI@Z) crypto.cpp.obj : error LNK2019: unresolved external symbol _SHA224_Final referen ced in function "public: virtual void __thiscall cppcms::crypto::`anonymous name space'::ssl_sha224::readout(void *)" (?readout@ssl_sha224@?A0xd862601b@crypto@cp pcms@@UAEXPAX@Z) crypto.cpp.obj : error LNK2019: unresolved external symbol _SHA256_Init referenc ed in function "public: __thiscall cppcms::crypto::`anonymous namespace'::ssl_sh a256::ssl_sha256(void)" (??0ssl_sha256@?A0xd862601b@crypto@cppcms@@QAE@XZ) crypto.cpp.obj : error LNK2019: unresolved external symbol _SHA256_Update refere nced in function "public: virtual void __thiscall cppcms::crypto::`anonymous nam espace'::ssl_sha256::append(void const *,unsigned int)" (?append@ssl_sha256@?A0x d862601b@crypto@cppcms@@UAEXPBXI@Z) crypto.cpp.obj : error LNK2019: unresolved external symbol _SHA256_Final referen ced in function "public: virtual void __thiscall cppcms::crypto::`anonymous name space'::ssl_sha256::readout(void *)" (?readout@ssl_sha256@?A0xd862601b@crypto@cp pcms@@UAEXPAX@Z) crypto.cpp.obj : error LNK2019: unresolved external symbol _SHA384_Init referenc ed in function "public: __thiscall cppcms::crypto::`anonymous namespace'::ssl_sh a384::ssl_sha384(void)" (??0ssl_sha384@?A0xd862601b@crypto@cppcms@@QAE@XZ) crypto.cpp.obj : error LNK2019: unresolved external symbol _SHA384_Update refere nced in function "public: virtual void __thiscall cppcms::crypto::`anonymous nam espace'::ssl_sha384::append(void const *,unsigned int)" (?append@ssl_sha384@?A0x d862601b@crypto@cppcms@@UAEXPBXI@Z) crypto.cpp.obj : error LNK2019: unresolved external symbol _SHA384_Final referen ced in function "public: virtual void __thiscall cppcms::crypto::`anonymous name space'::ssl_sha384::readout(void *)" (?readout@ssl_sha384@?A0xd862601b@crypto@cp pcms@@UAEXPAX@Z) crypto.cpp.obj : error LNK2019: unresolved external symbol _SHA512_Init referenc ed in function "public: __thiscall cppcms::crypto::`anonymous namespace'::ssl_sh a512::ssl_sha512(void)" (??0ssl_sha512@?A0xd862601b@crypto@cppcms@@QAE@XZ) crypto.cpp.obj : error LNK2019: unresolved external symbol _SHA512_Update refere nced in function "public: virtual void __thiscall cppcms::crypto::`anonymous nam espace'::ssl_sha512::append(void const *,unsigned int)" (?append@ssl_sha512@?A0x d862601b@crypto@cppcms@@UAEXPBXI@Z) crypto.cpp.obj : error LNK2019: unresolved external symbol _SHA512_Final referen ced in function "public: virtual void __thiscall cppcms::crypto::`anonymous name space'::ssl_sha512::readout(void *)" (?readout@ssl_sha512@?A0xd862601b@crypto@cp pcms@@UAEXPAX@Z) cppcms.dll : fatal error LNK1120: 15 unresolved externals LINK failed. with 1120 NMAKE : fatal error U1077: '"C:\Program Files\CMake 2.8\bin\cmake.exe"' : return code '0xffffffff' Stop. NMAKE : fatal error U1077: 'd:\visualstudio2008inst\VC\BIN\nmake.exe' : return c ode '0x2' Stop. NMAKE : fatal error U1077: 'd:\visualstudio2008inst\VC\BIN\nmake.exe' : return c ode '0x2' Stop. D:\cppcms\cppcms-1.0.4\build> |
|
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 > |
|
From: Szilágyi Z. <zol...@ya...> - 2013-06-29 16:35:24
|
installPrefix = "D:\\cppcms\\cppcms-1.0.4"
dependencyPath = "D:\\cppcms\\dependency"
dependencyPathInc = dependencyPath +"\\include"
dependencyPathLib = dependencyPath +"\\lib"
includePath0 = dependencyPathInc+"\\openssl;"+dependencyPathInc+"\\pcre;"+dependencyPathInc+"\\zlib"
libraryPath0 = dependencyPathLib+"\\openssl;"+dependencyPathLib+"\\pcre;"+dependencyPathLib+"\\zlib"
opensslIncludeDir = dependencyPathInc+"\\openssl"
opensslLibDir= dependencyPathLib+"\\openssl\\VC"
#include path and library with { ... }
includePath1 ='{'+dependencyPathInc+"\\openssl;"+dependencyPathInc+"\\pcre;"+dependencyPathInc+"\\zlib}"
libraryPath1 = '{'+dependencyPathLib+"\\openssl;"+dependencyPathLib+"\\pcre;"+dependencyPathLib+"\\zlib}"
command0 ='cmake -G \"NMake Makefiles\" ^\n\
-DCMAKE_BUILD_TYPE=Release ^\n\
-DCMAKE_INSTALL_PREFIX=\"{0}\" ^\n\
-DCMAKE_INCLUDE_PATH=\"{1}\" ^\n\
-DCMAKE_LIBRARY_PATH=\"{2}\" ^\n\
-DOPENSSL_INCLUDE_DIR=\"{3}\" ^\n\
-DLIB_OPENSSL=\"{4}\" ^\n\
..\n'.format(installPrefix, includePath0,libraryPath0,opensslIncludeDir,opensslLibDir)
command1 ='cmake -G \"NMake Makefiles\" ^\n\
-DCMAKE_BUILD_TYPE=Release ^\n\
-DCMAKE_INSTALL_PREFIX=\"{0}\" ^\n\
-DCMAKE_INCLUDE_PATH=\"{1}\" ^\n\
-DCMAKE_LIBRARY_PATH=\"{2}\" ^\n\
-DOPENSSL_INCLUDE_DIR=\"{3}\" ^\n\
-DLIB_OPENSSL=\"{4}\" ^\n\
..\n'.format(installPrefix, includePath1,libraryPath1,opensslIncludeDir,opensslLibDir)
command2 ='cmake -G \"NMake Makefiles\" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=\"{0}\" \
-DCMAKE_INCLUDE_PATH=\"{1}\" \
-DCMAKE_LIBRARY_PATH=\"{2}\" \
-DOPENSSL_INCLUDE_DIR=\"{3}\" \
-DLIB_OPENSSL=\"{4}\" \
..'.format(installPrefix, includePath0,libraryPath0,opensslIncludeDir,opensslLibDir)
command3 ='cmake -G \"NMake Makefiles\" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=\"{0}\" \
-DCMAKE_INCLUDE_PATH=\"{1}\" \
-DCMAKE_LIBRARY_PATH=\"{2}\" \
-DOPENSSL_INCLUDE_DIR=\"{3}\" \
-DLIB_OPENSSL=\"{4}\" \
..'.format(installPrefix, includePath1,libraryPath1,opensslIncludeDir,opensslLibDir)
f = open('c_0.bat','w');
f.write(command0);
f.close();
f = open('c_1.bat','w');
f.write(command1);
f.close();
f = open('c_2.bat','w');
f.write(command2);
f.close();
f = open('c_3.bat','w');
f.write(command3);
f.close(); |
|
From: Artyom B. <art...@ya...> - 2013-06-29 15:22:46
|
You are most likely hadn't configured proper PATH variables such that many tests fail to even start due to missing DLLs Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Szilágyi Zoltán <zol...@ya...> >To: cpps <cpp...@li...> >Sent: Thursday, June 27, 2013 8:39 PM >Subject: [Cppcms-users] Need help building cppcms on win xp > > > >Hi, > > >I am new to cppcms. I tried to compile it on Debian 7 squeeze following the instructions. Everything working flawless. >But on win xp I have really hard time, 3 days spent on it, without success.This is mostly because of the dependencies I guess. > > >It is really hard to get the right binaries, even getting the right binaries there could be version number issue.And compiling from source code, all of the dependencies with the latest version available would be the right think to do, but it is huge pain in the ass to do that. > > >Ok: I still don't get it to make the thinks working on win xp. Running nmake test I get: > >31% tests passed, 58 tests failed out of 84 > >Total Test time (real) = 13.69 sec > >The following tests FAILED: > 1 - base64_test (OTHER_FAULT) > 2 - encryptor_test (OTHER_FAULT) > 3 - storage_test (OTHER_FAULT) > 4 - json_test (OTHER_FAULT) > 5 - multipart_parser_test (OTHER_FAULT) > 6 - content_type_parser_test (OTHER_FAULT) > 7 - cache_backend_test (OTHER_FAULT) > 8 - serialization_test (OTHER_FAULT) > 9 - xss_test (OTHER_FAULT) > 10 - rewrite_test (OTHER_FAULT) > 11 - url_mapper_test (OTHER_FAULT) > 12 - copy_filter_test (OTHER_FAULT) > 13 - mount_point_test (OTHER_FAULT) > 14 - tc_test (OTHER_FAULT) > 15 - status_test (OTHER_FAULT) > 16 - async_status_test (OTHER_FAULT) > 17 - form_test (OTHER_FAULT) > 18 - cookie_test (OTHER_FAULT) > 19 - internal_forwarder_test (OTHER_FAULT) > 20 - forwarder_test (OTHER_FAULT) > 21 - jsonrpc_test (OTHER_FAULT) > 22 - http_timeouts_test_read (OTHER_FAULT) > 23 - http_timeouts_test_write (OTHER_FAULT) > 24 - file_server_test (OTHER_FAULT) > 25 - file_server_with_listing_test (OTHER_FAULT) > 26 - disco_test_http (OTHER_FAULT) > 27 - disco_test_fastcgi_tcp (OTHER_FAULT) > 28 - disco_test_scgi_tcp (OTHER_FAULT) > 29 - secure_post_test (OTHER_FAULT) > 30 - gzip_test (OTHER_FAULT) > 31 - cache_frontend_test (OTHER_FAULT) > 32 - session_interface_test_client_renew (OTHER_FAULT) > 33 - session_interface_test_client_browser (OTHER_FAULT) > 34 - session_interface_test_client_fixed (OTHER_FAULT) > 35 - session_interface_test_server_renew (OTHER_FAULT) > 36 - session_interface_test_server_browser (OTHER_FAULT) > 37 - session_interface_test_server_fixed (OTHER_FAULT) > 38 - session_interface_test_both_renew (OTHER_FAULT) > 39 - session_interface_test_both_browser (OTHER_FAULT) > 40 - session_interface_test_both_fixed (OTHER_FAULT) > 41 - proto_test_async_http (OTHER_FAULT) > 42 - proto_test_async_scgi (OTHER_FAULT) > 43 - proto_test_async_fastcgi (OTHER_FAULT) > 44 - proto_test_sync_http (OTHER_FAULT) > 45 - proto_test_sync_scgi (OTHER_FAULT) > 46 - proto_test_sync_fastcgi (OTHER_FAULT) > 47 - loadable_storage_pass (OTHER_FAULT) > 48 - loadable_storage_fail (OTHER_FAULT) > 66 - test_locale_codepage (Failed) > 67 - test_locale_message (Failed) > 70 - test_locale_date_time (Failed) > 71 - test_locale_generator (Failed) > 72 - test_locale_config (Failed) > 74 - test_locale_collate (Failed) > 75 - test_locale_convert (Failed) > 76 - test_locale_boundary (Failed) > 77 - test_locale_formatting (Failed) > 78 - test_locale_icu_vs_os_timezone (Failed) >Errors while running CTest >NMAKE : fatal error U1077: 'echo' : return code '0x8' >Stop. > > >Strange thing that noticed on Linux there are 93 tests for the same cppcms-1.0.4 while on windows it seems to be >84.( I could be because of crash maybe during the tests.) > > > >Somebody could help me to install cppcms on windows xp? Or somebody could supplying the right dependencies ( or at least their version numbers). > > > >Mingw build would be a better option for windows xp vs MSVC? > > >If anybody succeeded installing cppcms on win xp could share his experience with me? > > > >Btw it would not be a good idea to share the needed dependencies via install.exe for windows, or a zip file, copy -paste way, supposing that the dependencies don't change in a way that could affect cppcms builds? > > >( I made once a time application in qt and I made also Linux version. For the windows I have setup.exe. So I want to build setup also for Linux version but just could not find good alternative for setup exe style only deb, rpm... packages so I ended in writing a bash file for the setup in Linux.Windows and Linux differ so choosing a path that works fine one system it is very hard on the other so I guess for windows should exists something in windows style.At least dependencies via install.exe) > > > >Thank you, >Zoltán > > > > > > > > > > > > > > > > > >------------------------------------------------------------------------------ >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 > > > |
|
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 |