Unable to install WT on OSX Snow Leopard
Added by Aman Seth about 14 years ago
I was following the article on this wiki for Leopard. I had installed Xcode, CMake and Boost.
I tried to run this command:
cmake -DBOOST_DIR=$HOME/Installed -DBOOST_VERSION=1_35 -DBOOST_COMPILER=xgcc40 ../
but it gave me error that CMakeLists.txt is missing. I put two CMakeLists.txt files. One in the root folder and one in src folder with data:
PROJECT(WT_EXAMPLE)
SET (WT_CONNECTOR "wtfcgi" CACHE STRING "Connector used (wthttp or wtfcgi)")
ADD_SUBDIRECTORY(src)
and
SET(WT_PROJECT_TARGET wt_project.wt)
ADD_EXECUTABLE(${WT_PROJECT_TARGET} ${WT_PROJECT_SOURCE})
TARGET_LINK_LIBRARIES(${WT_PROJECT_TARGET} ${WT_CONNECTOR} wt)
INCLUDE_DIRECTORIES(/usr/local/include/Wt)
and I get this error:
CMake Error: Error in cmake code at
/Users/AJ/Documents/work/jwt-3.1.0/src/CMakeLists.txt:4:
ADD_EXECUTABLE called with incorrect number of arguments
Current CMake stack:
[1] /Users/AJ/Documents/work/jwt-3.1.0/src/CMakeLists.txt
CMake Error: Attempt to add link library "wtfcgi" to target "wt_project.wt" which is not built by this project.
CMake Error: Attempt to add link library "wt" to target "wt_project.wt" which is not built by this project.
-- Configuring done
Any help would be appreciated. Thanks.
Using boost 1.35, jwt 3.1
CMakeLists.txt (205 Bytes) CMakeLists.txt | CMakeLists Source |
Replies (1)
RE: Unable to install WT on OSX Snow Leopard - Added by Wim Dumon about 14 years ago
Hello Aman,
There really should be a CMakeLists.txt in your untarred wt-3.1.0 directory. This is also where the last argument in cmake (the '../') should point to.
Also note that Wt requires boost 1.36; we recommend to install the latest boost version.
Best regards,
Wim.