Support #2587
openRunning Wt with windows without Visual Studio
0%
Description
Hi,
I want to run Wt with windows without visual studio. When running Wt without doing anything (but including boost etc.) I get the error
Wt/WConfig.h: No such file or directory
So it seems like I have to compile Wt. Sticking to INSTALL.html delivered with Wt 3.1, I tried to run CMake in the build-folder (with -G "MinGW Makefiles", which worked fine. But when compiling with make, I get the following error:
C:\cppLib\wt-3.3.1\src\web\random_device.cpp:125:42: Fehler: »const char* const boost::random::random_device::default_token« ist kein statisches Element von »class boost::random::random_device«
Does anyone has an explanation of this, or an hint, how to solve it?
Best regards,
DaGeRe
Updated by Wim Dumon over 10 years ago
MinGW installation is explained here:
http://redmine.emweb.be/projects/wt/wiki/Installing_Wt_on_MinGW
The error you get is because you didn't set the BOOST_PREFIX correct at the first run of cmake. CMake remembers that it didn't find boost_random the first time and won't look for it again. You can fix this in CMakeCache.txt in your build directory, and change the value for WT_NO_BOOST_RANDOM (IIRC it should be set to OFF).
Wim.