cppcms-users Mailing List for CppCMS C++ Web Framework (Page 51)
Brought to you by:
artyom-beilis
You can subscribe to this list here.
| 2009 |
Jan
|
Feb
(22) |
Mar
|
Apr
(3) |
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
(15) |
Nov
(16) |
Dec
(13) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2010 |
Jan
(4) |
Feb
|
Mar
(8) |
Apr
(8) |
May
(8) |
Jun
(36) |
Jul
(63) |
Aug
(126) |
Sep
(47) |
Oct
(66) |
Nov
(46) |
Dec
(42) |
| 2011 |
Jan
(87) |
Feb
(24) |
Mar
(54) |
Apr
(21) |
May
(22) |
Jun
(18) |
Jul
(22) |
Aug
(101) |
Sep
(57) |
Oct
(33) |
Nov
(34) |
Dec
(66) |
| 2012 |
Jan
(64) |
Feb
(76) |
Mar
(73) |
Apr
(105) |
May
(93) |
Jun
(83) |
Jul
(84) |
Aug
(88) |
Sep
(57) |
Oct
(59) |
Nov
(35) |
Dec
(49) |
| 2013 |
Jan
(67) |
Feb
(17) |
Mar
(49) |
Apr
(64) |
May
(87) |
Jun
(64) |
Jul
(93) |
Aug
(23) |
Sep
(15) |
Oct
(16) |
Nov
(62) |
Dec
(73) |
| 2014 |
Jan
(5) |
Feb
(23) |
Mar
(21) |
Apr
(11) |
May
(1) |
Jun
(19) |
Jul
(27) |
Aug
(16) |
Sep
(5) |
Oct
(37) |
Nov
(12) |
Dec
(9) |
| 2015 |
Jan
(7) |
Feb
(7) |
Mar
(44) |
Apr
(28) |
May
(5) |
Jun
(12) |
Jul
(8) |
Aug
|
Sep
(39) |
Oct
(34) |
Nov
(30) |
Dec
(34) |
| 2016 |
Jan
(66) |
Feb
(23) |
Mar
(33) |
Apr
(15) |
May
(11) |
Jun
(15) |
Jul
(26) |
Aug
(4) |
Sep
(1) |
Oct
(30) |
Nov
(10) |
Dec
|
| 2017 |
Jan
(52) |
Feb
(9) |
Mar
(24) |
Apr
(16) |
May
(9) |
Jun
(12) |
Jul
(33) |
Aug
(8) |
Sep
|
Oct
(1) |
Nov
(2) |
Dec
(6) |
| 2018 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
(14) |
Jun
(1) |
Jul
(9) |
Aug
(1) |
Sep
(13) |
Oct
(8) |
Nov
(2) |
Dec
(2) |
| 2019 |
Jan
(1) |
Feb
(1) |
Mar
(3) |
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(9) |
Jul
(6) |
Aug
(25) |
Sep
(10) |
Oct
(10) |
Nov
(6) |
Dec
|
| 2021 |
Jan
|
Feb
|
Mar
(7) |
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(9) |
Oct
(1) |
Nov
|
Dec
|
| 2022 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2025 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
|
From: Artyom B. <art...@ya...> - 2013-07-11 11:08:33
|
I'm not sure CppCMS is tested with libc++ and clang 4.3 So try to fix these issues inplace, or if you can use gcc/libstdc++. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Shiv Shankar Dayal <shi...@gm...> >To: cpp...@li... >Sent: Wednesday, July 10, 2013 9:18 PM >Subject: Re: [Cppcms-users] trouble building with maports > > > >You need to use template keyword before those two as the error says. > > > > >On Wed, Jul 10, 2013 at 11:42 PM, erik <wei...@gm...> wrote: > >I start off with the following: >> >>cmake -DCMAKE_INCLUDE_PATH=/opt/local/include >> -DCMAKE_LIBRARY_PATH=/opt/local/lib >> -DCMAKE_INSTALL_PREFIX=/Users/erik/Sites/mysite .. >> >>and get: >>-- The C compiler identification is Clang 4.2.0 >>-- The CXX compiler identification is Clang 4.2.0 >>-- Check for working C compiler: /usr/bin/cc >>-- Check for working C compiler: /usr/bin/cc -- works >>-- Detecting C compiler ABI info >>-- Detecting C compiler ABI info - done >>-- Check for working CXX compiler: /usr/bin/c++ >>-- Check for working CXX compiler: /usr/bin/c++ -- works >>-- Detecting CXX compiler ABI info >>-- Detecting CXX compiler ABI info - done >>CMake Warning at /opt/local/share/cmake-2.8/Modules/CPack.cmake:289 (message): >> CPack.cmake has already been included!! >>Call Stack (most recent call first): >> booster/CMakeLists.txt:14 (include) >> >> >>-- Looking for ICU libraries >>-- ICU Found, building booster locale >>-- Performing Test LIBC_ICONV >>-- Performing Test LIBC_ICONV - Failed >>-- Looking for dlopen >>-- Looking for dlopen - found >>-- Looking for socket >>-- Looking for socket - found >>-- Looking for gethostbyname >>-- Looking for gethostbyname - found >>-- Performing Test BOOSTER_HAS_GCC_SYNC >>-- Performing Test BOOSTER_HAS_GCC_SYNC - Success >>-- 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 - Success >>-- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC >>-- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC - Failed >>-- Performing Test BOOSTER_HAVE_EXECINFO >>-- Performing Test BOOSTER_HAVE_EXECINFO - Success >>-- 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 - Success >>-- 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 - Success >>-- Performing Test BOOSTER_AIO_HAVE_PF_INET6 >>-- Performing Test BOOSTER_AIO_HAVE_PF_INET6 - Success >>-- 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 - Success >>-- Looking for atoll >>-- Looking for atoll - found >>-- Looking for _atoi64 >>-- Looking for _atoi64 - not found >>-- Looking for snprintf >>-- Looking for snprintf - found >>-- Looking for stat >>-- Looking for stat - found >>-- Looking for _stat >>-- Looking for _stat - not 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 - Success >>-- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING >>-- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING - Failed >>-- 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 - Failed >>-- Performing Test CPPCMS_HAVE_GCC_TYPEOF >>-- Performing Test CPPCMS_HAVE_GCC_TYPEOF - Success >>-- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF >>-- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF - Success >>-- Looking for dlopen >>-- Looking for dlopen - found >>-- Looking for socket >>-- Looking for socket - found >>-- Looking for gethostbyname >>-- Looking for gethostbyname - found >>-- Looking for canonicalize_file_name >>-- Looking for canonicalize_file_name - not found >>-- Configuring done >>-- Generating done >>-- Build files have been written to: /Users/erik/Downloads/cppcms-1.0.4/build >> >>Then I try to make and get the following warnings and errors: >> >>[ 5%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/ >>stream_socket.cpp.o >>/Users/erik/Downloads/cppcms-1.0.4/booster/lib/aio/src/stream_socket.cpp:405:8: >>warning: private field 'via_poll' is not used [-Wunused-private-field] >> bool via_poll; >> ^ >>1 warning generated. >> >>In file included from /Users/erik/Downloads/cppcms-1.0.4/booster/lib/log/src/ >>log.cpp:9: >>/Users/erik/Downloads/cppcms-1.0.4/booster/./booster/log.h:301:11: >>warning: private field 'max_size_' is not used [-Wunused-private-field] >> size_t max_size_; >> ^ >>/Users/erik/Downloads/cppcms-1.0.4/booster/./booster/log.h:302:11: warning: >>private field 'current_size_' is not used [-Wunused-private-field] >> size_t current_size_; >> ^ >>2 warnings generated. >> >>[ 10%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/shared/ >>mo_lambda.cpp.o >>/Users/erik/Downloads/cppcms-1.0.4/booster/lib/locale/src/shared/ >>mo_lambda.cpp:220:16: warning: unused function 'un_factory' [-Wunused-function] >> plural_ptr un_factory(int value,plural_ptr op) >> ^ >>1 warning generated. >> >>In file included from /Users/erik/Downloads/cppcms-1.0.4/cppcms_boost/ >>cppcms_boost/iostreams/detail/adapter/non_blocking_adapter.hpp:15: >>/Users/erik/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/iostreams/ >>write.hpp:82:58: warning: unused parameter 'c' [-Wunused-parameter] >> static bool put(T& t, typename char_type_of<T>::type c) >> ^ >>1 warning generated. >> >>In file included from /Users/erik/Downloads/cppcms-1.0.4/src/http_cookie.cpp:9: >>/Users/erik/Downloads/cppcms-1.0.4/cppcms/http_cookie.h:145:11: warning: >>private field 'reserved_' is not used [-Wunused-private-field] >> uint32_t reserved_ : 29; >> ^ >>1 warning generated. >> >>/Users/erik/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/optional/ >>optional.hpp:840:27: warning: unused parameter 'x' [-Wunused-parameter] >>bool operator == ( none_t x, optional<T> const& y ) >> ^ >>/Users/erik/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/optional/ >>optional.hpp:845:26: warning: unused parameter 'x' [-Wunused-parameter] >>bool operator < ( none_t x, optional<T> const& y ) >> ^ >>2 warnings generated. >> >> >>/Users/erik/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/optional/ >>optional.hpp:840:27: warning: unused parameter 'x' [-Wunused-parameter] >>bool operator == ( none_t x, optional<T> const& y ) >> ^ >>/Users/erik/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/optional/ >>optional.hpp:845:26: warning: unused parameter 'x' [-Wunused-parameter] >>bool operator < ( none_t x, optional<T> const& y ) >> ^ >>In file included from /Users/erik/Downloads/cppcms-1.0.4/src/form.cpp:9: >>/Users/erik/Downloads/cppcms-1.0.4/cppcms/form.h:692:13: warning: >>private field 'reserverd_' is not used [-Wunused-private-field] >> uint32_t reserverd_ : 25; >> ^ >>/Users/erik/Downloads/cppcms-1.0.4/cppcms/form.h:1421:13: warning: >>private field 'reserverd' is not used [-Wunused-private-field] >> uint32_t reserverd : 32; >> ^ >>/Users/erik/Downloads/cppcms-1.0.4/cppcms/form.h:1463:13: warning: >>private field 'reserved_' is not used [-Wunused-private-field] >> uint32_t reserved_ : 31; >> ^ >>/Users/erik/Downloads/cppcms-1.0.4/cppcms/form.h:1562:13: warning: >>private field 'reserved_' is not used [-Wunused-private-field] >> uint32_t reserved_ : 30; >> ^ >>6 warnings generated. >> >>In file included from /Users/erik/Downloads/cppcms-1.0.4/src/ >>cache_interface.cpp:9: >>/Users/erik/Downloads/cppcms-1.0.4/cppcms/cache_interface.h:336:12: >>warning: private field 'reserved' is not used [-Wunused-private-field] >> uint32_t reserved : 31; >> ^ >>1 warning generated. >> >> >>/Users/erik/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/ >>detail/managed_memory_impl.hpp:676:26: error: use 'template' keyword to treat >> 'get_allocator' as a dependent template name >> { return mp_header->get_allocator<T>(); } >> ^ >>/Users/erik/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/ >>detail/managed_memory_impl.hpp:691:26: error: use 'template' keyword to treat >> 'get_deleter' as a dependent template name >> { return mp_header->get_deleter<T>(); } >> ^ >>In file included from /Users/erik/Downloads/cppcms-1.0.4/src/ >>cache_storage.cpp:24: >>/Users/erik/Downloads/cppcms-1.0.4/private/shmem_allocator.h:122:41: warning: >>unused parameter 'a' [-Wunused-parameter] >> bool operator!=(shmem_allocator const& a) const >> ^ >>1 warning and 2 errors generated. >>make[2]: *** [CMakeFiles/cppcms.dir/src/cache_storage.cpp.o] Error 1 >>make[1]: *** [CMakeFiles/cppcms.dir/all] Error 2 >>make: *** [all] Error 2 >> >> >>Should there be warnings at all? And why are there errors? >> >>uname -a >>Darwin Erik-W-MacBook-Pro.local 12.4.0 Darwin Kernel Version 12.4.0: >> Wed May 1 17:57:12 PDT 2013; root:xnu-2050.24.15~1/RELEASE_X86_64 x86_64 >> >>python -V >>Python 2.7.5 >> >>cmake --version >>cmake version 2.8.10.2 >> >>pcretest >>PCRE version 8.33 2013-05-28 >> >>gcc --version >>i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) >>(LLVM build 2336.11.00) >> >> >>------------------------------------------------------------------------------ >>See everything from the browser to the database with AppDynamics >>Get end-to-end visibility with application monitoring from AppDynamics >>Isolate bottlenecks and diagnose root cause in seconds. >>Start your free trial of AppDynamics Pro today! >>http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >>_______________________________________________ >>Cppcms-users mailing list >>Cpp...@li... >>https://lists.sourceforge.net/lists/listinfo/cppcms-users >> > > >-- >Best regards, >Shiv Shankar Dayal >------------------------------------------------------------------------------ >See everything from the browser to the database with AppDynamics >Get end-to-end visibility with application monitoring from AppDynamics >Isolate bottlenecks and diagnose root cause in seconds. >Start your free trial of AppDynamics Pro today! >http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: Artyom B. <art...@ya...> - 2013-07-11 11:06:04
|
Not exactly Use: -DCMAKE_CXX_COMPILER=/path/to/g++ and -DCMAKE_C_COMPILER=/path/to/gcc options for cmake when you run it first time. Also note that if you cross-compiling (i.e. building ARM on x86) it is different process! Search in the web for CMake cross compiling and this may be can help as well: http://cppcms.com/wikipp/en/page/cppcms_1x_build#Cross.Compiling (these are notes for CppCMS but you can easily adopt them for CppDB) Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Marcel Hellwig <ke...@co...> >To: cpp...@li... >Sent: Thursday, July 11, 2013 1:17 PM >Subject: Re: [Cppcms-users] CPPDB compile LIB > > >On 11.07.2013 12:01, la...@sa... wrote: >> he cppdb with a different compiler. Instead of gcc >> I need to compile with arm-non >just set your env var CXX to the compiler you want, then execute cmake. >Should work ;) > > >------------------------------------------------------------------------------ >See everything from the browser to the database with AppDynamics >Get end-to-end visibility with application monitoring from AppDynamics >Isolate bottlenecks and diagnose root cause in seconds. >Start your free trial of AppDynamics Pro today! >http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: Marcel H. <ke...@co...> - 2013-07-11 10:17:13
|
On 11.07.2013 12:01, la...@sa... wrote: > he cppdb with a different compiler. Instead of gcc > I need to compile with arm-non just set your env var CXX to the compiler you want, then execute cmake. Should work ;) |
|
From: <la...@sa...> - 2013-07-11 10:01:58
|
Hi, I need to compile the cppdb with a different compiler. Instead of gcc I need to compile with arm-none-linux-gnueabi-gcc. Is there a makefile that I can change? Thanks! LL |
|
From: Shiv S. D. <shi...@gm...> - 2013-07-10 18:18:50
|
You need to use template keyword before those two as the error says.
On Wed, Jul 10, 2013 at 11:42 PM, erik <wei...@gm...> wrote:
> I start off with the following:
>
> cmake -DCMAKE_INCLUDE_PATH=/opt/local/include
> -DCMAKE_LIBRARY_PATH=/opt/local/lib
> -DCMAKE_INSTALL_PREFIX=/Users/erik/Sites/mysite ..
>
> and get:
> -- The C compiler identification is Clang 4.2.0
> -- The CXX compiler identification is Clang 4.2.0
> -- Check for working C compiler: /usr/bin/cc
> -- Check for working C compiler: /usr/bin/cc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Check for working CXX compiler: /usr/bin/c++
> -- Check for working CXX compiler: /usr/bin/c++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> CMake Warning at /opt/local/share/cmake-2.8/Modules/CPack.cmake:289
> (message):
> CPack.cmake has already been included!!
> Call Stack (most recent call first):
> booster/CMakeLists.txt:14 (include)
>
>
> -- Looking for ICU libraries
> -- ICU Found, building booster locale
> -- Performing Test LIBC_ICONV
> -- Performing Test LIBC_ICONV - Failed
> -- Looking for dlopen
> -- Looking for dlopen - found
> -- Looking for socket
> -- Looking for socket - found
> -- Looking for gethostbyname
> -- Looking for gethostbyname - found
> -- Performing Test BOOSTER_HAS_GCC_SYNC
> -- Performing Test BOOSTER_HAS_GCC_SYNC - Success
> -- 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 - Success
> -- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC
> -- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC - Failed
> -- Performing Test BOOSTER_HAVE_EXECINFO
> -- Performing Test BOOSTER_HAVE_EXECINFO - Success
> -- 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 - Success
> -- 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 - Success
> -- Performing Test BOOSTER_AIO_HAVE_PF_INET6
> -- Performing Test BOOSTER_AIO_HAVE_PF_INET6 - Success
> -- 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 - Success
> -- Looking for atoll
> -- Looking for atoll - found
> -- Looking for _atoi64
> -- Looking for _atoi64 - not found
> -- Looking for snprintf
> -- Looking for snprintf - found
> -- Looking for stat
> -- Looking for stat - found
> -- Looking for _stat
> -- Looking for _stat - not 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 - Success
> -- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING
> -- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING - Failed
> -- 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 - Failed
> -- Performing Test CPPCMS_HAVE_GCC_TYPEOF
> -- Performing Test CPPCMS_HAVE_GCC_TYPEOF - Success
> -- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF
> -- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF - Success
> -- Looking for dlopen
> -- Looking for dlopen - found
> -- Looking for socket
> -- Looking for socket - found
> -- Looking for gethostbyname
> -- Looking for gethostbyname - found
> -- Looking for canonicalize_file_name
> -- Looking for canonicalize_file_name - not found
> -- Configuring done
> -- Generating done
> -- Build files have been written to:
> /Users/erik/Downloads/cppcms-1.0.4/build
>
> Then I try to make and get the following warnings and errors:
>
> [ 5%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/
> stream_socket.cpp.o
>
> /Users/erik/Downloads/cppcms-1.0.4/booster/lib/aio/src/stream_socket.cpp:405:8:
> warning: private field 'via_poll' is not used [-Wunused-private-field]
> bool via_poll;
> ^
> 1 warning generated.
>
> In file included from
> /Users/erik/Downloads/cppcms-1.0.4/booster/lib/log/src/
> log.cpp:9:
> /Users/erik/Downloads/cppcms-1.0.4/booster/./booster/log.h:301:11:
> warning: private field 'max_size_' is not used [-Wunused-private-field]
> size_t max_size_;
> ^
> /Users/erik/Downloads/cppcms-1.0.4/booster/./booster/log.h:302:11: warning:
> private field 'current_size_' is not used [-Wunused-private-field]
> size_t current_size_;
> ^
> 2 warnings generated.
>
> [ 10%] Building CXX object
> booster/CMakeFiles/booster.dir/lib/locale/src/shared/
> mo_lambda.cpp.o
> /Users/erik/Downloads/cppcms-1.0.4/booster/lib/locale/src/shared/
> mo_lambda.cpp:220:16: warning: unused function 'un_factory'
> [-Wunused-function]
> plural_ptr un_factory(int value,plural_ptr op)
> ^
> 1 warning generated.
>
> In file included from /Users/erik/Downloads/cppcms-1.0.4/cppcms_boost/
> cppcms_boost/iostreams/detail/adapter/non_blocking_adapter.hpp:15:
> /Users/erik/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/iostreams/
> write.hpp:82:58: warning: unused parameter 'c' [-Wunused-parameter]
> static bool put(T& t, typename char_type_of<T>::type c)
> ^
> 1 warning generated.
>
> In file included from
> /Users/erik/Downloads/cppcms-1.0.4/src/http_cookie.cpp:9:
> /Users/erik/Downloads/cppcms-1.0.4/cppcms/http_cookie.h:145:11: warning:
> private field 'reserved_' is not used [-Wunused-private-field]
> uint32_t reserved_ : 29;
> ^
> 1 warning generated.
>
> /Users/erik/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/optional/
> optional.hpp:840:27: warning: unused parameter 'x' [-Wunused-parameter]
> bool operator == ( none_t x, optional<T> const& y )
> ^
> /Users/erik/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/optional/
> optional.hpp:845:26: warning: unused parameter 'x' [-Wunused-parameter]
> bool operator < ( none_t x, optional<T> const& y )
> ^
> 2 warnings generated.
>
>
> /Users/erik/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/optional/
> optional.hpp:840:27: warning: unused parameter 'x' [-Wunused-parameter]
> bool operator == ( none_t x, optional<T> const& y )
> ^
> /Users/erik/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/optional/
> optional.hpp:845:26: warning: unused parameter 'x' [-Wunused-parameter]
> bool operator < ( none_t x, optional<T> const& y )
> ^
> In file included from /Users/erik/Downloads/cppcms-1.0.4/src/form.cpp:9:
> /Users/erik/Downloads/cppcms-1.0.4/cppcms/form.h:692:13: warning:
> private field 'reserverd_' is not used [-Wunused-private-field]
> uint32_t reserverd_ : 25;
> ^
> /Users/erik/Downloads/cppcms-1.0.4/cppcms/form.h:1421:13: warning:
> private field 'reserverd' is not used [-Wunused-private-field]
> uint32_t reserverd : 32;
> ^
> /Users/erik/Downloads/cppcms-1.0.4/cppcms/form.h:1463:13: warning:
> private field 'reserved_' is not used [-Wunused-private-field]
> uint32_t reserved_ : 31;
> ^
> /Users/erik/Downloads/cppcms-1.0.4/cppcms/form.h:1562:13: warning:
> private field 'reserved_' is not used [-Wunused-private-field]
> uint32_t reserved_ : 30;
> ^
> 6 warnings generated.
>
> In file included from /Users/erik/Downloads/cppcms-1.0.4/src/
> cache_interface.cpp:9:
> /Users/erik/Downloads/cppcms-1.0.4/cppcms/cache_interface.h:336:12:
> warning: private field 'reserved' is not used [-Wunused-private-field]
> uint32_t reserved : 31;
> ^
> 1 warning generated.
>
>
> /Users/erik/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/
> detail/managed_memory_impl.hpp:676:26: error: use 'template' keyword to
> treat
> 'get_allocator' as a dependent template name
> { return mp_header->get_allocator<T>(); }
> ^
> /Users/erik/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/
> detail/managed_memory_impl.hpp:691:26: error: use 'template' keyword to
> treat
> 'get_deleter' as a dependent template name
> { return mp_header->get_deleter<T>(); }
> ^
> In file included from /Users/erik/Downloads/cppcms-1.0.4/src/
> cache_storage.cpp:24:
> /Users/erik/Downloads/cppcms-1.0.4/private/shmem_allocator.h:122:41:
> warning:
> unused parameter 'a' [-Wunused-parameter]
> bool operator!=(shmem_allocator const& a) const
> ^
> 1 warning and 2 errors generated.
> make[2]: *** [CMakeFiles/cppcms.dir/src/cache_storage.cpp.o] Error 1
> make[1]: *** [CMakeFiles/cppcms.dir/all] Error 2
> make: *** [all] Error 2
>
>
> Should there be warnings at all? And why are there errors?
>
> uname -a
> Darwin Erik-W-MacBook-Pro.local 12.4.0 Darwin Kernel Version 12.4.0:
> Wed May 1 17:57:12 PDT 2013; root:xnu-2050.24.15~1/RELEASE_X86_64 x86_64
>
> python -V
> Python 2.7.5
>
> cmake --version
> cmake version 2.8.10.2
>
> pcretest
> PCRE version 8.33 2013-05-28
>
> gcc --version
> i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build
> 5658)
> (LLVM build 2336.11.00)
>
>
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
--
Best regards,
Shiv Shankar Dayal
|
|
From: erik <wei...@gm...> - 2013-07-10 18:15:17
|
I start off with the following:
cmake -DCMAKE_INCLUDE_PATH=/opt/local/include
-DCMAKE_LIBRARY_PATH=/opt/local/lib
-DCMAKE_INSTALL_PREFIX=/Users/erik/Sites/mysite ..
and get:
-- The C compiler identification is Clang 4.2.0
-- The CXX compiler identification is Clang 4.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Warning at /opt/local/share/cmake-2.8/Modules/CPack.cmake:289 (message):
CPack.cmake has already been included!!
Call Stack (most recent call first):
booster/CMakeLists.txt:14 (include)
-- Looking for ICU libraries
-- ICU Found, building booster locale
-- Performing Test LIBC_ICONV
-- Performing Test LIBC_ICONV - Failed
-- Looking for dlopen
-- Looking for dlopen - found
-- Looking for socket
-- Looking for socket - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Performing Test BOOSTER_HAS_GCC_SYNC
-- Performing Test BOOSTER_HAS_GCC_SYNC - Success
-- 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 - Success
-- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC
-- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC - Failed
-- Performing Test BOOSTER_HAVE_EXECINFO
-- Performing Test BOOSTER_HAVE_EXECINFO - Success
-- 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 - Success
-- 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 - Success
-- Performing Test BOOSTER_AIO_HAVE_PF_INET6
-- Performing Test BOOSTER_AIO_HAVE_PF_INET6 - Success
-- 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 - Success
-- Looking for atoll
-- Looking for atoll - found
-- Looking for _atoi64
-- Looking for _atoi64 - not found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for stat
-- Looking for stat - found
-- Looking for _stat
-- Looking for _stat - not 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 - Success
-- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING
-- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING - Failed
-- 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 - Failed
-- Performing Test CPPCMS_HAVE_GCC_TYPEOF
-- Performing Test CPPCMS_HAVE_GCC_TYPEOF - Success
-- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF
-- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF - Success
-- Looking for dlopen
-- Looking for dlopen - found
-- Looking for socket
-- Looking for socket - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for canonicalize_file_name
-- Looking for canonicalize_file_name - not found
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/erik/Downloads/cppcms-1.0.4/build
Then I try to make and get the following warnings and errors:
[ 5%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/
stream_socket.cpp.o
/Users/erik/Downloads/cppcms-1.0.4/booster/lib/aio/src/stream_socket.cpp:405:8:
warning: private field 'via_poll' is not used [-Wunused-private-field]
bool via_poll;
^
1 warning generated.
In file included from /Users/erik/Downloads/cppcms-1.0.4/booster/lib/log/src/
log.cpp:9:
/Users/erik/Downloads/cppcms-1.0.4/booster/./booster/log.h:301:11:
warning: private field 'max_size_' is not used [-Wunused-private-field]
size_t max_size_;
^
/Users/erik/Downloads/cppcms-1.0.4/booster/./booster/log.h:302:11: warning:
private field 'current_size_' is not used [-Wunused-private-field]
size_t current_size_;
^
2 warnings generated.
[ 10%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/shared/
mo_lambda.cpp.o
/Users/erik/Downloads/cppcms-1.0.4/booster/lib/locale/src/shared/
mo_lambda.cpp:220:16: warning: unused function 'un_factory' [-Wunused-function]
plural_ptr un_factory(int value,plural_ptr op)
^
1 warning generated.
In file included from /Users/erik/Downloads/cppcms-1.0.4/cppcms_boost/
cppcms_boost/iostreams/detail/adapter/non_blocking_adapter.hpp:15:
/Users/erik/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/iostreams/
write.hpp:82:58: warning: unused parameter 'c' [-Wunused-parameter]
static bool put(T& t, typename char_type_of<T>::type c)
^
1 warning generated.
In file included from /Users/erik/Downloads/cppcms-1.0.4/src/http_cookie.cpp:9:
/Users/erik/Downloads/cppcms-1.0.4/cppcms/http_cookie.h:145:11: warning:
private field 'reserved_' is not used [-Wunused-private-field]
uint32_t reserved_ : 29;
^
1 warning generated.
/Users/erik/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/optional/
optional.hpp:840:27: warning: unused parameter 'x' [-Wunused-parameter]
bool operator == ( none_t x, optional<T> const& y )
^
/Users/erik/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/optional/
optional.hpp:845:26: warning: unused parameter 'x' [-Wunused-parameter]
bool operator < ( none_t x, optional<T> const& y )
^
2 warnings generated.
/Users/erik/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/optional/
optional.hpp:840:27: warning: unused parameter 'x' [-Wunused-parameter]
bool operator == ( none_t x, optional<T> const& y )
^
/Users/erik/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/optional/
optional.hpp:845:26: warning: unused parameter 'x' [-Wunused-parameter]
bool operator < ( none_t x, optional<T> const& y )
^
In file included from /Users/erik/Downloads/cppcms-1.0.4/src/form.cpp:9:
/Users/erik/Downloads/cppcms-1.0.4/cppcms/form.h:692:13: warning:
private field 'reserverd_' is not used [-Wunused-private-field]
uint32_t reserverd_ : 25;
^
/Users/erik/Downloads/cppcms-1.0.4/cppcms/form.h:1421:13: warning:
private field 'reserverd' is not used [-Wunused-private-field]
uint32_t reserverd : 32;
^
/Users/erik/Downloads/cppcms-1.0.4/cppcms/form.h:1463:13: warning:
private field 'reserved_' is not used [-Wunused-private-field]
uint32_t reserved_ : 31;
^
/Users/erik/Downloads/cppcms-1.0.4/cppcms/form.h:1562:13: warning:
private field 'reserved_' is not used [-Wunused-private-field]
uint32_t reserved_ : 30;
^
6 warnings generated.
In file included from /Users/erik/Downloads/cppcms-1.0.4/src/
cache_interface.cpp:9:
/Users/erik/Downloads/cppcms-1.0.4/cppcms/cache_interface.h:336:12:
warning: private field 'reserved' is not used [-Wunused-private-field]
uint32_t reserved : 31;
^
1 warning generated.
/Users/erik/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/
detail/managed_memory_impl.hpp:676:26: error: use 'template' keyword to treat
'get_allocator' as a dependent template name
{ return mp_header->get_allocator<T>(); }
^
/Users/erik/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/
detail/managed_memory_impl.hpp:691:26: error: use 'template' keyword to treat
'get_deleter' as a dependent template name
{ return mp_header->get_deleter<T>(); }
^
In file included from /Users/erik/Downloads/cppcms-1.0.4/src/
cache_storage.cpp:24:
/Users/erik/Downloads/cppcms-1.0.4/private/shmem_allocator.h:122:41: warning:
unused parameter 'a' [-Wunused-parameter]
bool operator!=(shmem_allocator const& a) const
^
1 warning and 2 errors generated.
make[2]: *** [CMakeFiles/cppcms.dir/src/cache_storage.cpp.o] Error 1
make[1]: *** [CMakeFiles/cppcms.dir/all] Error 2
make: *** [all] Error 2
Should there be warnings at all? And why are there errors?
uname -a
Darwin Erik-W-MacBook-Pro.local 12.4.0 Darwin Kernel Version 12.4.0:
Wed May 1 17:57:12 PDT 2013; root:xnu-2050.24.15~1/RELEASE_X86_64 x86_64
python -V
Python 2.7.5
cmake --version
cmake version 2.8.10.2
pcretest
PCRE version 8.33 2013-05-28
gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658)
(LLVM build 2336.11.00)
|
|
From: Alexey O. <aom...@gm...> - 2013-07-09 12:58:33
|
Hello, I built current trunk and have cache_backend_test failed. Testing thread cache... Ok Testing process cache... Ok Testing cache over ip, single server... Fail system: Address already in use CentOS 6 Nginx 1.0.15 GCC 4.8.0 I would appreciate any guidance. Kind regards, Alexey. |
|
From: Alexey O. <aom...@gm...> - 2013-07-09 12:47:12
|
Thank you for your quick reply. Now after all I cannot reproduce the issue. I removed the SocketW library as irrelevant, deleted all cppcms folder, checked out the trunk again and repeated all the steps. The project now builds without errors. Kind regards, Alexey. On 5 July 2013 17:07, Shiv Shankar Dayal <shi...@gm...>wrote: > You should look at CMakeError.log which will tell you exactly what is the > problem. Try to use default compiler in /usr/bin/ instead from your home > director. Since, libnl.so is so basic that it seems your compiler settings > are not good. > > > On Fri, Jul 5, 2013 at 6:33 PM, Alexey Omelchenko <aom...@gm...>wrote: > >> CentOS 6 >> GCC 4.8.0 custom build >> >> [aomelche@portland build]$ echo $PATH >> >> /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/aomelche/bin:/home/aomelche/gcc-4.8.0/bin >> [aomelche@portland build]$ cmake .. >> -- The C compiler identification is GNU >> -- The CXX compiler identification is GNU >> -- Check for working C compiler: /home/aomelche/gcc-4.8.0/bin/gcc >> -- Check for working C compiler: /home/aomelche/gcc-4.8.0/bin/gcc -- works >> -- Detecting C compiler ABI info >> -- Detecting C compiler ABI info - done >> -- Check for working CXX compiler: /home/aomelche/gcc-4.8.0/bin/c++ >> -- Check for working CXX compiler: /home/aomelche/gcc-4.8.0/bin/c++ -- >> works >> -- Detecting CXX compiler ABI info >> -- Detecting CXX compiler ABI info - done >> -- Looking for ICU libraries >> -- ICU Found, building booster locale >> -- Performing Test GCC_IS_GCC4 >> -- Performing Test GCC_IS_GCC4 - Success >> FATAL No library with socket found >> FATAL No library with gethostbyname found >> CMake Error at CMakeLists.txt:259 (message): >> No library with dlopen found >> >> >> -- Configuring incomplete, errors occurred! >> >> Everything was performed according the instructions at your link. >> >> Regards, >> Alexey. >> >> On 5 July 2013 11:29, Artyom Beilis <art...@ya...> wrote: >> >>> you know it would be very helpful for YOU to give some details... >>> >>> What OS you are running, version, compiler, etc, full output etc. >>> >>> Also read: http://cppcms.com/wikipp/en/page/cppcms_1x_build >>> >>> Artyom Beilis >>> -------------- >>> CppCMS - C++ Web Framework: http://cppcms.com/ >>> CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >>> >>> ------------------------------ >>> *From:* Alexey Omelchenko <aom...@gm...> >>> *To:* cpp...@li... >>> *Sent:* Friday, July 5, 2013 9:54 AM >>> *Subject:* [Cppcms-users] Building cppcms - prerequisites >>> >>> Hello, >>> >>> I tried to build the trunk following the instructions. >>> cmake .. issued error: >>> FATAL No library with socket found >>> FATAL No library with gethostbyname found >>> >>> Installing SocketW resolved the problem. But since I have not found any >>> reference to that library in the wiki, I am asking you to help me >>> understand what is the right way to build the trunk. >>> >>> Regards, >>> Alexey. >>> >>> >>> ------------------------------------------------------------------------------ >>> 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 >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> 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 >>> >>> >> >> >> ------------------------------------------------------------------------------ >> 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 >> >> > > > -- > Best regards, > Shiv Shankar Dayal > > > ------------------------------------------------------------------------------ > 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: Ronnie C. <ron...@db...> - 2013-07-09 11:06:26
|
Ronnie Chowdhury <ronnie.chowdhury@...> writes: Resolved: Just use component.vega etc. |
|
From: Ronnie C. <ron...@db...> - 2013-07-09 10:25:49
|
Hi
I'm trying to use a nested structure in a view for a table
struct dbaxtrade : public cppcms::base_content {
struct data {
std::string name;
double vega;
};
std::string id;
std::string dbax_str;
std::list<data> components;
};
And in my template
<% view dbaxview uses VegaData::dbaxtrade %>
...
<% foreach component in components %>
<tr>
<% item %>
<td><%= name &></td>
<td><%= vega %></td>
<% end %>
</tr>
<% end foreach %>
<tr>
<%= dbax_str %>
</tr>
<% end foreach %>
But this does not seem to compile with an error 'vega' is not a member of
dbaxtrade. That make sense, but I can't seem to include multiple structues
in the 'uses' statement.
What's the approach to this?
|
|
From: Shiv S. D. <shi...@gm...> - 2013-07-07 19:17:54
|
In that directory you have a file config.js. You should run app like ./hello -c config.js On Mon, Jul 8, 2013 at 12:36 AM, Szilágyi Zoltán < zol...@ya...> wrote: > Hi > > I succeed to compile hello_world application from examples, but when I try > to run it, I get No configuration defined. I have config.js in the same > folder as hello.exe.What is wrong? > Thank you, > > Regards, > 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 > > -- Best regards, Shiv Shankar Dayal |
|
From: Marcel H. <ke...@co...> - 2013-07-07 19:09:39
|
you should definitely read the tutorials first! you have to provide the config file via the -c switch in the command line args here is a simple tut for you http://cppcms.com/wikipp/en/page/cppcms_1x_tut_hello |
|
From: Szilágyi Z. <zol...@ya...> - 2013-07-07 19:07:02
|
Hi I succeed to compile hello_world application from examples, but when I try to run it, I get No configuration defined. I have config.js in the same folder as hello.exe.What is wrong? Thank you, Regards, Zoltán |
|
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 |
|
From: Shiv S. D. <shi...@gm...> - 2013-07-05 13:07:43
|
You should look at CMakeError.log which will tell you exactly what is the problem. Try to use default compiler in /usr/bin/ instead from your home director. Since, libnl.so is so basic that it seems your compiler settings are not good. On Fri, Jul 5, 2013 at 6:33 PM, Alexey Omelchenko <aom...@gm...>wrote: > CentOS 6 > GCC 4.8.0 custom build > > [aomelche@portland build]$ echo $PATH > > /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/aomelche/bin:/home/aomelche/gcc-4.8.0/bin > [aomelche@portland build]$ cmake .. > -- The C compiler identification is GNU > -- The CXX compiler identification is GNU > -- Check for working C compiler: /home/aomelche/gcc-4.8.0/bin/gcc > -- Check for working C compiler: /home/aomelche/gcc-4.8.0/bin/gcc -- works > -- Detecting C compiler ABI info > -- Detecting C compiler ABI info - done > -- Check for working CXX compiler: /home/aomelche/gcc-4.8.0/bin/c++ > -- Check for working CXX compiler: /home/aomelche/gcc-4.8.0/bin/c++ -- > works > -- Detecting CXX compiler ABI info > -- Detecting CXX compiler ABI info - done > -- Looking for ICU libraries > -- ICU Found, building booster locale > -- Performing Test GCC_IS_GCC4 > -- Performing Test GCC_IS_GCC4 - Success > FATAL No library with socket found > FATAL No library with gethostbyname found > CMake Error at CMakeLists.txt:259 (message): > No library with dlopen found > > > -- Configuring incomplete, errors occurred! > > Everything was performed according the instructions at your link. > > Regards, > Alexey. > > On 5 July 2013 11:29, Artyom Beilis <art...@ya...> wrote: > >> you know it would be very helpful for YOU to give some details... >> >> What OS you are running, version, compiler, etc, full output etc. >> >> Also read: http://cppcms.com/wikipp/en/page/cppcms_1x_build >> >> Artyom Beilis >> -------------- >> CppCMS - C++ Web Framework: http://cppcms.com/ >> CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >> >> ------------------------------ >> *From:* Alexey Omelchenko <aom...@gm...> >> *To:* cpp...@li... >> *Sent:* Friday, July 5, 2013 9:54 AM >> *Subject:* [Cppcms-users] Building cppcms - prerequisites >> >> Hello, >> >> I tried to build the trunk following the instructions. >> cmake .. issued error: >> FATAL No library with socket found >> FATAL No library with gethostbyname found >> >> Installing SocketW resolved the problem. But since I have not found any >> reference to that library in the wiki, I am asking you to help me >> understand what is the right way to build the trunk. >> >> Regards, >> Alexey. >> >> >> ------------------------------------------------------------------------------ >> 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 >> >> >> >> >> ------------------------------------------------------------------------------ >> 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 >> >> > > > ------------------------------------------------------------------------------ > 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 > > -- Best regards, Shiv Shankar Dayal |
|
From: Alexey O. <aom...@gm...> - 2013-07-05 13:03:52
|
CentOS 6 GCC 4.8.0 custom build [aomelche@portland build]$ echo $PATH /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/aomelche/bin:/home/aomelche/gcc-4.8.0/bin [aomelche@portland build]$ cmake .. -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /home/aomelche/gcc-4.8.0/bin/gcc -- Check for working C compiler: /home/aomelche/gcc-4.8.0/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /home/aomelche/gcc-4.8.0/bin/c++ -- Check for working CXX compiler: /home/aomelche/gcc-4.8.0/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Looking for ICU libraries -- ICU Found, building booster locale -- Performing Test GCC_IS_GCC4 -- Performing Test GCC_IS_GCC4 - Success FATAL No library with socket found FATAL No library with gethostbyname found CMake Error at CMakeLists.txt:259 (message): No library with dlopen found -- Configuring incomplete, errors occurred! Everything was performed according the instructions at your link. Regards, Alexey. On 5 July 2013 11:29, Artyom Beilis <art...@ya...> wrote: > you know it would be very helpful for YOU to give some details... > > What OS you are running, version, compiler, etc, full output etc. > > Also read: http://cppcms.com/wikipp/en/page/cppcms_1x_build > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.com/ > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > ------------------------------ > *From:* Alexey Omelchenko <aom...@gm...> > *To:* cpp...@li... > *Sent:* Friday, July 5, 2013 9:54 AM > *Subject:* [Cppcms-users] Building cppcms - prerequisites > > Hello, > > I tried to build the trunk following the instructions. > cmake .. issued error: > FATAL No library with socket found > FATAL No library with gethostbyname found > > Installing SocketW resolved the problem. But since I have not found any > reference to that library in the wiki, I am asking you to help me > understand what is the right way to build the trunk. > > Regards, > Alexey. > > > ------------------------------------------------------------------------------ > 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 > > > > > ------------------------------------------------------------------------------ > 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: Christian G. <chr...@gm...> - 2013-07-05 09:53:25
|
Hi all.
> In my web application I make use of a file uploader, which works like
> a charm. But
> I run into this problem:
>
> Some older IE versions (6,7,8) are sending the full path of the uploaded file
> in the multipart data - verified via wireshark.
> All other browsers (chrome, ff, safari) are sending only the filename.
>
> This looks like:
>
> Jul 5 10:24:51 chgm-pc tssw: Upload: request POST: id 'upload' (upload.cpp:21)
> Jul 5 10:24:51 chgm-pc tssw: upload: storing file C:Dokumente und
> EinstellungengmeinerEigene DateienDownloads01_257782.pdf - size:
> 2947635 (upload.cpp:41)
> Jul 5 10:24:51 chgm-pc tssw: upload:
> /tmp/If37354f45a5f672658789c3a33e95e68/C:Dokumente und
> EinstellungengmeinerEigene DateienDownloads01_257782.pdf
> (upload.cpp:48)
>
> I thought that I could filter out the substring starting from the last
> \ in the filename, but cppcms filters away all \.
> Is there a way to configure it or did I found a bug?
>
> The file looks in wireshark like:
> C:\Dokumente und Einstellungen\gmeiner\Eigene Dateien\Download\s01_257782.pdf
>
Sooo I found the problem in cppcms-1.0.4/private/http_protocol.h:
template<typename It>
std::string unquote(It &begin,It end)
{
It p=begin;
std::string result;
if(p>=end || *p!='\"')
return result;
result.reserve(end-p);
p++;
while(p < end) {
char c=*p++;
if(c=='\"') {
begin=p;
return result;
}
else if(c=='\\' && p<end) <--
result+= *p++; <--
else
result+=c;
}
result.clear();
return result;
}
If I comment out the else if everything works.
How shall I proceed? Send a patch?
--
Christian Gmeiner, MSc
|
|
From: Christian G. <chr...@gm...> - 2013-07-05 08:42:00
|
Hi all.
In my web application I make use of a file uploader, which works like
a charm. But
I run into this problem:
Some older IE versions (6,7,8) are sending the full path of the uploaded file
in the multipart data - verified via wireshark.
All other browsers (chrome, ff, safari) are sending only the filename.
This looks like:
Jul 5 10:24:51 chgm-pc tssw: Upload: request POST: id 'upload' (upload.cpp:21)
Jul 5 10:24:51 chgm-pc tssw: upload: storing file C:Dokumente und
EinstellungengmeinerEigene DateienDownloads01_257782.pdf - size:
2947635 (upload.cpp:41)
Jul 5 10:24:51 chgm-pc tssw: upload:
/tmp/If37354f45a5f672658789c3a33e95e68/C:Dokumente und
EinstellungengmeinerEigene DateienDownloads01_257782.pdf
(upload.cpp:48)
I thought that I could filter out the substring starting from the last
\ in the filename, but cppcms filters away all \.
Is there a way to configure it or did I found a bug?
The file looks in wireshark like:
C:\Dokumente und Einstellungen\gmeiner\Eigene Dateien\Download\s01_257782.pdf
Here is my currently used uploader
if (id == "upload")
{
upload.form.load(context());
if (upload.form.validate())
{
std::string filename = upload.form.file.value()->filename();
// some versions of the Internet Explorer send the
full path as filename
// and so we need to do some post processing in oder
to only get the filename.
unsigned int found = filename.rfind("\\");
if (found != std::string::npos)
{
BOOSTER_DEBUG("Upload") << "found @ " << found;
filename = filename.substr(found);
}
BOOSTER_DEBUG("upload") << "storing file "
<< filename
<< " - size: " << upload.form.file.value()->size();
// store file in users tmp folder
std::string root = session().get("tmp");
upload.form.file.value()->save_to(root + filename);
BOOSTER_DEBUG("upload") << root + filename;
// TODO: return information's about uploaded file
this->empty_json_response();
}
else
{
BOOSTER_ERROR("upload") << "data not valid";
response().make_error_response(cppcms::http::response::not_acceptable);
}
}
thanks
--
Christian Gmeiner, MSc
|
|
From: Artyom B. <art...@ya...> - 2013-07-05 07:29:17
|
you know it would be very helpful for YOU to give some details... What OS you are running, version, compiler, etc, full output etc. Also read: http://cppcms.com/wikipp/en/page/cppcms_1x_build Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Alexey Omelchenko <aom...@gm...> >To: cpp...@li... >Sent: Friday, July 5, 2013 9:54 AM >Subject: [Cppcms-users] Building cppcms - prerequisites > > > >Hello, > > >I tried to build the trunk following the instructions. >cmake .. issued error: >FATAL No library with socket found >FATAL No library with gethostbyname found > > >Installing SocketW resolved the problem. But since I have not found any reference to that library in the wiki, I am asking you to help me understand what is the right way to build the trunk. > > >Regards, >Alexey. >------------------------------------------------------------------------------ >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: Alexey O. <aom...@gm...> - 2013-07-05 06:54:50
|
Hello, I tried to build the trunk following the instructions. cmake .. issued error: FATAL No library with socket found FATAL No library with gethostbyname found Installing SocketW resolved the problem. But since I have not found any reference to that library in the wiki, I am asking you to help me understand what is the right way to build the trunk. Regards, Alexey. |
|
From: Karsten A. <kar...@go...> - 2013-06-30 22:17:17
|
> It's still a problem as it's noise in reports from leak detectors, which > might or might not be important depending > on the kind of project. In my current projects, I can't allow this kind > of leaking (which would be ok in other contexts, I agree). That's actually a problem in my case, too. Especially, since the error reports are quite large. I wonder, if there are no workarounds. Actually, I haven't understood why it is not possible to clean up the memory. |
|
From: Klaim - J. L. <mj...@gm...> - 2013-06-30 21:56:16
|
On Mon, Jun 24, 2013 at 9:23 PM, Artyom Beilis <art...@ya...> wrote: > I recall that issue was discussed before. > > It is not "leak" it is reachable code - there are some global object using > locale that destroyed after main. > > So they are not actual leak. > > See: http://comments.gmane.org/gmane.comp.lib.boost.devel/239199 > It's still a problem as it's noise in reports from leak detectors, which might or might not be important depending on the kind of project. In my current projects, I can't allow this kind of leaking (which would be ok in other contexts, I agree). Joel Lamotte |
|
From: Szilágyi Z. <zol...@ya...> - 2013-06-30 13:12:25
|
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: 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 > > > |