[Cppcms-users] RES: RES: Run on Windows 7
Brought to you by:
artyom-beilis
From: Renato F. <re....@ay...> - 2011-03-23 16:08:33
|
Hi Artyom, Now work, but I need Chang name of zlib? (this zlibwapi.lib to zlib.lib) This ok? CMD: cmake -G "NMake Makefiles" -DUSE_WINDOWS6_API=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=C:\cppcms-0.99.6 -DCMAKE_INCLUDE_PATH=C:\pcre-8.12 -DCMAKE_LIBRARY_PATH=C:\pcre-8.12 -DCMAKE_INCLUDE_PATH=C:\zlib-1.2.5 -DCMAKE_LIBRARY_PATH=C:\zlib-1.2.5\contrib\vstudio\vc9\x86\ZlibDllDebug Now I have one error in make, if you can help-me again: Linking CXX shared library booster-d.dll Creating library booster-d.lib and object booster-d.exp pcre_regex.cpp.obj : error LNK2019: unresolved external symbol __imp__pcre_fulli nfo referenced in function "public: void __thiscall booster::regex::assign(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int)" (?assign@regex@booster@@QAEXABV?$basic_string@DU?$char_traits@D @std@@V?$allocator@D@2@@std@@H@Z) pcre_regex.cpp.obj : error LNK2019: unresolved external symbol __imp__pcre_compi le referenced in function "public: void __thiscall booster::regex::assign(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int)" (?assign@regex@booster@@QAEXABV?$basic_string@DU?$char_traits@D@ std@@V?$allocator@D@2@@std@@H@Z) pcre_regex.cpp.obj : error LNK2019: unresolved external symbol __imp__pcre_exec referenced in function "public: bool __thiscall booster::regex::search(char cons t *,char const *,int)const " (?search@regex@booster@@QBE_NPBD0H@Z) pcre_regex.cpp.obj : error LNK2001: unresolved external symbol __imp__pcre_mallo c pcre_regex.cpp.obj : error LNK2001: unresolved external symbol __imp__pcre_free booster-d.dll : fatal error LNK1120: 5 unresolved externals LINK Pass 1 failed. with 1120 NMAKE : fatal error U1077: '"C:\Program Files (x86)\CMake 2.8\bin\cmake.exe"' : return code '0xffffffff' Stop. NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 9.0\ VC\BIN\nmake.exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 9.0\ VC\BIN\nmake.exe"' : return code '0x2' Stop. C:\cppcms-0.99.6> Thanks Again -----Mensagem original----- De: Artyom [mailto:art...@ya...] Enviada em: quarta-feira, 23 de março de 2011 12:25 Para: cpp...@li... Assunto: Re: [Cppcms-users] RES: Run on Windows 7 Hi, If you have for example: c:\pcre\include\pcre.h c:\pcre\lib\pcre.lib c:\pcre\bin\pcre.dll Then you need to provide -DCMAKE_INCLUDE_PATH=c:\pcre\include -DCMAKE_LIBRARY_PATH=c:\pcre\lib Same for zlib. Artyom ----- Original Message ---- > From: Renato Forti <re....@ay...> > To: cpp...@li... > Sent: Wed, March 23, 2011 5:08:54 PM > Subject: [Cppcms-users] RES: Run on Windows 7 > > Hi Thanks for help, > > Like this: > > cmake -G "NMake Makefiles" -DUSE_WINDOWS6_API=ON > -DCMAKE_BUILD_TYPE=Release > -DCMAKE_INSTALL_PREFIX=C:\cppcms-0.99.6 > -CMAKE_INCLUDE_PATH=C:\pcre-8.12; > C:\zlib-1.2.5 -CMAKE_LIBRARY_PATH=C:\pcre-8.12; > C:\zlib-1.2.5\contrib\vstudio\vc9\x86\ZlibDllRelease > > don't work :( > > I must create a "include" and a "lib" in my "C:\"and copy all *.h and > *.lib *.dll of zlib-1.2.5 and pcre-8.12 in it? Is this? > > For sample: > > cmake -G "NMake Makefiles" -DUSE_WINDOWS6_API=ON > -DCMAKE_BUILD_TYPE=Release > -DCMAKE_INSTALL_PREFIX=C:\cppcms-0.99.6 > -CMAKE_INCLUDE_PATH=C:\include -CMAKE_LIBRARY_PATH=C:\lib > > > Thanks :) > > -----Mensagem original----- > De: Artyom [mailto:art...@ya...] Enviada em: quarta-feira, 23 > de março de 2011 11:54 > Para: cpp...@li... > Assunto: Re: [Cppcms-users] Run on Windows 7 > > You need to provide path to locations of zlib and pcre. as > CMAKE_INCLUDE_PATH and CMAKE_LIBRARY_PATH > > >PCRE_LIB > > linked by target "booster" in directory C:/cppcms-0.99.6/booster > > linked by target "booster-static" in directory > >C:/cppcms-0.99.6/booster ZLIB > > linked by target "cppcms" in directory C:/cppcms-0.99.6 > > linked by target "cppcms-static" in directory C:/cppcms-0.99.6 > >ZLIB_INCLUDE_DIR > > used as include directory in directory C:/cppcms-0.99.6 > > > >-- Configuring incomplete, errors occurred! > > > >C:\cppcms-0.99.6> > > > > > >WHAT IS THE PROBLEM? How to FIX? I have in my c:\ > > > >C:\zlib-1.2.5 > >C:\pcre-8.12 > > > >Thanks :) > > > > > > CMake does not know where to look for zlib and pcre, > > See examples: > http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_build#win32 > > I also can suggest to create something like > > c:\some_path\debug_libs > c:\some_path\release_libs > > And install PCRE and ZLIB in their debug and release configurations > there so you would not mess up with inconsistent versions of libraries. > > Artyom > > > > > > > > > > > > > ---------------------------------------------------------------------- > ------ > -- > Enable your software for Intel(R) Active Management Technology to > meet the growing manageability and security demands of your > customers. Businesses are taking advantage of Intel(R) vPro (TM) > technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! > http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > ---------------------------------------------------------------------- > -------- Enable your software for Intel(R) Active Management > Technology to meet the growing manageability and security demands of > your customers. Businesses are taking advantage of Intel(R) vPro (TM) > technology - will your software be a part of the solution? Download > the Intel(R) Manageability Checker today! > http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > ---------------------------------------------------------------------------- -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |