cannot compile Auth1 example in Qt Creator
Added by Аз Есмь about 13 years ago
--- Configuring incomplete, errors occurred!
CMake Error at CMakeLists.txt:1 (WT_ADD_EXAMPLE):
Unknown CMake command "WT_ADD_EXAMPLE".
CMake 2.8.5
Wt 3.2.0 [installed from source]
Qt Creator 2.2.1
a bug?
Replies (3)
RE: cannot compile Auth1 example in Qt Creator - Added by Аз Есмь about 13 years ago
okay, looks like one has to use CMakeLists.txt in the examples directory even if he/she only wants to build one of the examples, since the WT_ADD_EXAMPLE macro is defined in that file. however, i still cannot compile the examples:
[ 1%] Building CXX object blog/CMakeFiles/blog.wt.dir/model/BlogSession.o
In file included from /usr/local/include/Wt/Auth/Login:12:0,
from .../wt-3.2.0/examples/blog/model/BlogSession.h:11,
from .../wt-3.2.0/examples/blog/model/BlogSession.C:7:
/usr/local/include/Wt/Auth/User:14:32: fatal error: Wt/Auth/PasswordHash: No such file or directory
compilation terminated.
make[2]: *** [blog/CMakeFiles/blog.wt.dir/model/BlogSession.o] Error 1
make[1]: *** [blog/CMakeFiles/blog.wt.dir/all] Error 2
make: *** [all] Error 2
anyone, please?
RE: cannot compile Auth1 example in Qt Creator - Added by Wim Dumon about 13 years ago
You can only use the toplevel CMake file. Not the one of an individual example, not the one in the examples directory, but the toplevel file. If you want to build examples, either use make examples
or set the cmake flag BUILD_EXAMPLES to true (cmake -DBUILD_EXAMPLES=ON ..
).
Wim.
RE: cannot compile Auth1 example in Qt Creator - Added by Аз Есмь about 13 years ago
thank you, Wim. i did
cmake -DBUILD_EXAMPLES=ON ..
make
sudo make install
but now i cannot find auth1.wt :-(