Re: [Cppcms-users] Some compilation errors when trying to build cppCms
Brought to you by:
artyom-beilis
From: Vizcayno <viz...@gm...> - 2012-02-21 13:13:38
|
Artyom Beilis <artyomtnk@...> writes: > > > > > >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 > > ----------------------------------------------------------------------------- - > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > Artyom, Again, thanks for your help. It looks much better now as you can see below. However, the error about the program reactor.cpp (at the end) remains, I am not including all the objects indicated in the "recommended dependencies" and "suggested" because I understand they are optional, is that right?: Thanks. cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release DCMAKE_INSTALL_PREFIX=c:\ apps\extApps\cppcms - DCMAKE_INCLUDE_PATH="C:/apps/extApps/pcre/include;C:/apps/e xtApps/zlib/include" - DCMAKE_LIBRARY_PATH="C:/apps/extApps/pcre/lib;C:/apps/extA pps/zlib/lib" .. -- The C compiler identification is MSVC -- The CXX compiler identification is MSVC -- Check for CL compiler version -- Check for CL compiler version - 1600 -- Check if this is a free VC compiler -- Check if this is a free VC compiler - no -- Check for working C compiler: c:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/cl.exe -- Check for working C compiler: c:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/cl.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: c:/Program Files (x86)/Microsoft Visual Studi o 10.0/VC/bin/cl.exe -- Check for working CXX compiler: c:/Program Files (x86)/Microsoft Visual Studi o 10.0/VC/bin/cl.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Looking for ICU libraries -- ICU not found, disabling ICU localization backend -- Performing Test BOOSTER_HAS_GCC_SYNC -- Performing Test BOOSTER_HAS_GCC_SYNC - Failed -- Performing Test BOOSTER_HAVE_GCC_BITS_EXCHANGE_AND_ADD -- Performing Test BOOSTER_HAVE_GCC_BITS_EXCHANGE_AND_ADD - Failed -- Performing Test BOOSTER_HAVE_GCC_EXT_EXCHANGE_AND_ADD -- Performing Test BOOSTER_HAVE_GCC_EXT_EXCHANGE_AND_ADD - Failed -- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC -- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC - Failed -- Performing Test BOOSTER_HAVE_EXECINFO -- Performing Test BOOSTER_HAVE_EXECINFO - Failed -- Performing Test BOOSTER_HAVE_SOLARIS_ATOMIC -- Performing Test BOOSTER_HAVE_SOLARIS_ATOMIC - Failed -- Performing Test BOOSTER_HAVE_MAC_OS_X_ATOMIC -- Performing Test BOOSTER_HAVE_MAC_OS_X_ATOMIC - Failed -- Performing Test BOOSTER_HAVE_STDINT_H -- Performing Test BOOSTER_HAVE_STDINT_H - Success -- Performing Test BOOSTER_HAVE_INTTYPES_H -- Performing Test BOOSTER_HAVE_INTTYPES_H - Failed -- Performing Test BOOSTER_AIO_HAVE_PF_INET6 -- Performing Test BOOSTER_AIO_HAVE_PF_INET6 - Failed -- Performing Test CPPCMS_HAVE_STDINT_H -- Performing Test CPPCMS_HAVE_STDINT_H - Success -- Performing Test CPPCMS_HAVE_INTTYPES_H -- Performing Test CPPCMS_HAVE_INTTYPES_H - Failed -- Looking for atoll -- Looking for atoll - not found -- Looking for _atoi64 -- Looking for _atoi64 - found -- Looking for snprintf -- Looking for snprintf - not found -- Looking for stat -- Looking for stat - found -- Looking for _stat -- Looking for _stat - found -- Performing Test CPPCMS_HAVE_STD_WSTRING -- Performing Test CPPCMS_HAVE_STD_WSTRING - Success -- Performing Test CPPCMS_HAVE_BSD_TM -- Performing Test CPPCMS_HAVE_BSD_TM - Failed -- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING -- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING - Success -- Performing Test CPPCMS_HAVE_CPP_0X_AUTO -- Performing Test CPPCMS_HAVE_CPP_0X_AUTO - Success -- Performing Test CPPCMS_HAVE_CPP_0X_DECLTYPE -- Performing Test CPPCMS_HAVE_CPP_0X_DECLTYPE - Success -- Performing Test CPPCMS_HAVE_GCC_TYPEOF -- Performing Test CPPCMS_HAVE_GCC_TYPEOF - Failed -- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF -- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF - Failed -- Looking for canonicalize_file_name -- Looking for canonicalize_file_name - not found GNU-TLS Gcrypt or OpenSSL librarys are not found, disabling AES encryption suppo rt -- Configuring done -- Generating done -- Build files have been written to: C:/apps/instApps/cppcms/build :nmake Microsoft (R) Program Maintenance Utility Version 10.00.40219.01 Copyright (C) Microsoft Corporation. All rights reserved. Scanning dependencies of target booster [ 0%] Building CXX object booster/CMakeFiles/booster.dir/lib/ptime/src/posix_ti me.cpp.obj posix_time.cpp [ 1%] Building CXX object booster/CMakeFiles/booster.dir/lib/ptime/src/ctime.cp p.obj ctime.cpp [ 1%] Building CXX object booster/CMakeFiles/booster.dir/lib/regex/src/pcre_reg ex.cpp.obj pcre_regex.cpp [ 1%] Building CXX object booster/CMakeFiles/booster.dir/lib/system/src/posix_e rror.cpp.obj posix_error.cpp [ 2%] Building CXX object booster/CMakeFiles/booster.dir/lib/system/src/windows _error.cpp.obj windows_error.cpp [ 2%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/aio_catego ry.cpp.obj aio_category.cpp [ 2%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/deadline_t imer.cpp.obj deadline_timer.cpp [ 3%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/endpoint.c pp.obj endpoint.cpp [ 3%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/io_service .cpp.obj io_service.cpp [ 3%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/reactor.cp p.obj reactor.cpp c:\apps\instapps\cppcms\booster\lib\aio\src\reactor.cpp(710) : fatal error C1001 : An internal error has occurred in the compiler. (compiler file 'f:\dd\vctools\compiler\utc\src\p2\main.c [0x6CC138D3:0x00000008]' , line 183) To work around this problem, try simplifying or changing the program near the l ocations listed above. Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for more information Internal Compiler Error in c:\PROGRA~2\MICROS~2.0\VC\bin\cl.exe. You will be pr ompted to send an error report to Microsoft later. NMAKE : fatal error U1077: 'c:\PROGRA~2\MICROS~2.0\VC\bin\cl.exe' : return code '0x1' Stop. NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0 \VC\BIN\nmake.exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0 \VC\BIN\nmake.exe"' : return code '0x2' Stop. |