I am trying to get Wt working with Qt. I have installed 1.47 boost library, compiled Wt (3.2.1) under Windows using cmake 2.8.8. Tired simple hello world but doesn't compile, getting undefined reference errors for example: undefined reference to `Wt::WApplication::WApplication(Wt::WEnvironment const&, Wt::WtLibVersion)'
Here is my .pro file:
QT -= core
QT -= gui
INCLUDEPATH += ../../../lib/Wt/include \
../../../lib/boost_1_47 \
../../../lib/Wt/src
LIBS += -L../../../lib/Wt/lib \
-L../../../lib/boost_1_47/lib
win32:LIBS += -lwthttpd -lwtd -lboost_regex-vc100-mt-1_47
TARGET = HttpServerWt
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp
This is the program I am trying to compile: http://www.webtoolkit.eu/wt/src/hello
Probably, your WT libraries will be added to
/usr/loca/lib
by default. so specify link libraries accordingly[after checking whether its present there, else check in/usr/lib
and include accordingly].Set
LIBS
Variable as followsI don't see any Problem in setting the
INCLUDEPATH
variable in your post.And also make sure that you are adding the module corresponding to
Wt::WApplication::WApplication(Wt::WEnvironment const&, Wt::WtLibVersion)
inLIBS
Variable.For more look here.