[My own Hello World app problem ] Dedicated session processes for test2 terminated cleanly
Dushan Savich <
dule@...>
2008-11-05 00:57:24 GMT
Hi,
I've managed to
compile Wt libs and to run examples properly.
The next step was
to set up my own Hello World project.
Well, I've started
the project with :
# ./test2.wt
--docroot . --http-address 0.0.0.0 --http-port 8888
When I try
to open 0.0.0.0:8888 from firefox I get 404 Error .
And few seconds
later ,from console , I get the folowing message:
Dedicated
session processes for test2 terminated cleanly.
And it shouldn't
:)
Now, since the examples
work just fine , I'm sure I've just messed something up in my own
project ( read CMakeLists.txt file :) ) , but I don't know what :)
I've simply
Copy+Pasted a wt's hello world example into my own
test2.cpp file , so the source itself should not make any trouble
:) .
Complete project (
two files :) ) can be downloaded from here :
http://www.stosha.net/test2.tar.gz
Thanks in advance ,
Dushan
P.S : Here are the
CMakeList.txt and console output.
//-----------------------------------------------------------------------
PROJECT(MY_TEST2)
ADD_EXECUTABLE(test2.wt test2.cpp)
#Boost and Wt are installed there
#INCLUDE_DIRECTORIES()
INCLUDE_DIRECTORIES(/home/dule/stylet/libs/3rdParty/wt-2.1.0/src/wt)
INCLUDE_DIRECTORIES(/usr/local/include)
LINK_DIRECTORIES(/usr/local/lib)
TARGET_LINK_LIBRARIES(test2.wt wtfcgi wt
boost_thread-gcc41-mt
boost_program_options-gcc41-mt-1_35
boost_system-gcc41-mt-1_35
boost_signals-gcc41-mt-1_35
libboost_iostreams-gcc41-mt.so)
//------------------------------------EOF-----------------------------
Console output :
dule <at> dule-laptop:~/stylet/projects/gym-ace-web-verzija/test/test2/build$
cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- 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 (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 2.6)
should be added at the top of the file. The version specified may be
lower
if you wish to support older CMake versions for this project. For
more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done
-- Generating done
-- Build files have been written to:
/home/dule/stylet/projects/gym-ace-web-verzija/test/test2/build
dule <at> dule-laptop:~/stylet/projects/gym-ace-web-verzija/test/test2/build$
make
Scanning dependencies of target test2.wt
[100%] Building CXX object CMakeFiles/test2.wt.dir/test2.o
Linking CXX executable test2.wt
[100%] Built target test2.wt
dule <at> dule-laptop:~/stylet/projects/gym-ace-web-verzija/test/test2/build$
./test2.wt --docroot . --http-address 0.0.0.0 --http-port 8888
Reading Wt configuration from: /etc/wt/wt_config.xml
binding property 'resources' with value 'resources/
binding property 'extBaseURL' with value 'ext/
Dedicated session processes for test2 terminated cleanly.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
witty-interest mailing list
witty-interest@...
https://lists.sourceforge.net/lists/listinfo/witty-interest