Hi,
I am trying to create a Wt application from scratch (Instead of
modifying examples/hello). I have been working on the CMake file and I
think that I still missing something because in the console I keep
seeing this "fatal" error:
Option no-compression is implied because wthttp was built without zlib
support.
Option no-compression is implied because wthttp was built without zlib
support.
[2010-Apr-19 21:29:43.176550] 4324 - [notice] "Started server:
http://0.0.0.0:8080"
[2010-Apr-19 21:29:53.156550] 4324 [/app ukSbzlMfPdBC5dSa] [notice]
"Session created (#sessions = 1)"
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.3a5pre)
Gecko/20100415 Minefield/3.7a5pre (.NET CLR 3.5.30729)
127.0.0.1 - - [2010-Apr-19 21:29:53.220550] "GET /app HTTP/1.1" 200 4151
[2010-Apr-19 21:29:53.245550] 4324 [/app ukSbzlMfPdBC5dSa] [fatal] "bad
allocation"
[12270.10.00.-1 A- p- r[2-0110-Apr9- 19 21:29:53.22614550] "G:E2T9
:/5ap3p.?wtd=ukSbzl2M6fPdBC455d5Sa&req0u]est=script&rand=793 89483
2HTTP/1.1" 2004 0
[/app ukSbzlMfPdBC5dSa] [notice] "Session destroyed (#sessions = 0)"
After debugging the code I can tell that there is an exception in
WebSession::start() line 361 occurring on one of the working threads.
The funny part is that this does not happen if I run the same "hello
world" example inside the big Wt project. I am attaching my cmake files.
Maybe someone of you can pick what I am missing.
I have two CMakeLists.txt. One is very general and the other corresponds
to the src subdirectory.
Thanks,
Diego
--
Diego Cantor-Rivera
Ph.D.Student in Biomedical Engineering, University of Western Ontario
Imaging Research Laboratories, Robarts Research Institute
P.O. Box 5015, 100 Perth Drive, London, ON, Canada N6A 5K8
email: dcantor <at>imaging.robarts.ca
Visit me at: http://bit.ly/dcantor/ <http://bit.ly/dcantor>
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(APPLICATION)
#Find Wt
#-----------------------------------------------------------------------------------
FIND_PACKAGE(Wt REQUIRED)
INCLUDE_DIRECTORIES(${Wt_INCLUDE_DIR})
#Find Boost
#-----------------------------------------------------------------------------------
IF(NOT DEFINED Boost_ADDITIONAL_VERSIONS)
SET(Boost_ADDITIONAL_VERSIONS
"1.35" "1.36" "1.37" "1.38" "1.39"
"1.40" "1.41" "1.42" "1.43" "1.44" "1.45" "1.46" "1.47" "1.48" "1.49")
ENDIF(NOT DEFINED Boost_ADDITIONAL_VERSIONS)
SET(Boost_USE_MULTITHREADED ON)
#I just copied these lines from the examples CMakeLists.txt
ADD_DEFINITIONS(-DWT_THREADED -D_REENTRANT -DBOOST_SPIRIT_THREADSAFE)
ADD_DEFINITIONS(-DWT_DEPRECATED_3_0_0)
SET(Boost_USE_STATIC_LIBS ON)
#Same here
ADD_DEFINITIONS(
-D_CRT_SECURE_NO_WARNINGS
-Dinline=__inline
-D_SCL_SECURE_NO_WARNINGS
)
SET(Boost_DEBUG ON)
FIND_PACKAGE(Boost 1.35
COMPONENTS
date_time
regex
program_options
signals
system
filesystem
thread
REQUIRED)
IF(Boost_FOUND)
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
LINK_DIRECTORIES(${Boost_LIBRARY_DIRS})
ENDIF(Boost_FOUND)
ADD_SUBDIRECTORY(src)
SET(APP_SOURCE
main.cpp
)
ADD_EXECUTABLE(App.wt
${APP_SOURCE}
)
TARGET_LINK_LIBRARIES(App.wt
${Wt_LIBRARY}
${Wt_HTTP_LIBRARY}
${Wt_EXT_LIBRARY}
${Boost_LIBRARIES}
)
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest