Error installing Wt
Added by Michelle Dupuis about 5 years ago
I'm trying to install Wt on CentOS 7. I have installed CMAKE from source, and have installed boost using YUM.
I'm stuck at the step below, but I confirmed boost libraries are available at /usr/include/boot
How do I get past this?
[root@myhost build]# /usr/local/bin/cmake -DBOOST_DIR=/usr/include/boost -DBOOST_VERSION=1_64 -DBOOST_COMPILER=gcc73 ..
--- Png libraries not found - set PNG_PREFIX
--- libharu libraries not found - set HARU_PREFIX
--- OpenGL libraries not found
--- Checking for module 'pangoft2'
--- Package 'pangoft2', required by 'virtual:world', not found
--- Found unsuitable Qt version "" from NOTFOUND
CMake Error at CMakeLists.txt:388 (MESSAGE):
Could not find a boost installation in /usr/local.There are two methods in Wt to find boost:
- Find boost through cmake (recommended)
This requires cmake 2.6, and is in that case the default (unless
BOOST_COMPILER or BOOST_VERSION is defined). This method requires a
multi-threaded boost installation.You may need to add your boost version number to Boost_ADDITIONAL_VERSIONS,
and/or set BOOST_PREFIX to the location where boost is installed.
- Use the Wt-proprietary method to find boost.
This requires you to define three variables:
BOOST_PREFIX: set to the directory where you installed boost
BOOST_COMPILER: set to the compiler signature as you find them in library
names (e.g.: gcc42)BOOST_VERSION: set to the boost version, again as you find them in the
library names (e.g.: 1_38)Note 1: WT_BOOST_DISCOVERY is the variable that selects the boost discovery
method. When set to false, method 1 is used (default if cmake version is
recent enough and BOOST_COMPILER and BOOST_VERSION are not defined). When
set to true, method 2 is used.Note 2: the code to discover boost is located in cmake/WtFindBoost.txt
Note 3: on windows, set BOOST_PREFIX to the full path, eg c:/Program
Files/boost/boost_1_65_1--- Configuring incomplete, errors occurred!
See also "/usr/src/webtoolkit/wt-4.0.5/build/CMakeFiles/CMakeOutput.log".
See also "/usr/src/webtoolkit/wt-4.0.5/build/CMakeFiles/CMakeError.log".
>
Replies (4)
RE: Error installing Wt - Added by lm at about 5 years ago
A couple quick observations: the error message says "Could not find a boost installation in /usr/local" and you talked about /usr/include. I think that's okay, but something to pay attention to.
Beyond that, try setting BOOST_PREFIX as well? Sorry you're having difficulty.
RE: Error installing Wt - Added by Michelle Dupuis about 5 years ago
I added BOOST_PREFIX and still same error (and the error now references /usr/include/boost which does in fact contain the hpp files etc)
Also, I'm installing under Fedora 27 (in case that matters)
Still stuck at the CMAKE step....
RE: Error installing Wt - Added by Michelle Dupuis about 5 years ago
Based on other threads I've change my cmake line to:
cmake -DBoost_ADDITIONAL_VERSIONS=1_64 -DBOOST_PREFIX=/usr/include/boost -DBOOST_VERSION=1_64 -DBOOST_COMPILER=gcc731 ..
But still same error:
--- The C compiler identification is GNU 7.3.1
--- The CXX compiler identification is GNU 7.3.1
--- Check for working C compiler: /usr/lib64/ccache/cc
--- Check for working C compiler: /usr/lib64/ccache/cc --- works
--- Detecting C compiler ABI info
--- Detecting C compiler ABI info - done
--- Detecting C compile features
--- Detecting C compile features - done
--- Check for working CXX compiler: /usr/lib64/ccache/c
--- Check for working CXX compiler: /usr/lib64/ccache/c --- works
--- Detecting CXX compiler ABI info
--- Detecting CXX compiler ABI info - done
--- Detecting CXX compile features
--- Detecting CXX compile features - done
--- Png libraries not found - set PNG_PREFIX
--- Looking for mysql_library_init
--- Looking for mysql_library_init - found
--- libharu libraries not found - set HARU_PREFIX
--- OpenGL libraries not found
--- Found PkgConfig: /usr/bin/pkg-config (found version "1.3.12")
--- Checking for module 'pangoft2'
--- Package 'pangoft2', required by 'virtual:world', not found
--- Looking for connect
--- Looking for connect - found
--- Looking for sin
--- Looking for sin - not found
--- Found unsuitable Qt version "" from NOTFOUND
--- Looking for pthread.h
--- Looking for pthread.h - found
--- Looking for pthread_create
--- Looking for pthread_create - not found
--- Looking for pthread_create in pthreads
--- Looking for pthread_create in pthreads - not found
--- Looking for pthread_create in pthread
--- Looking for pthread_create in pthread - found
--- Found Threads: TRUE
CMake Error at CMakeLists.txt:388 (MESSAGE):
Could not find a boost installation in /usr/include/boost.
There are two methods in Wt to find boost:
1. Find boost through cmake (recommended)
This requires cmake 2.6, and is in that case the default (unless
BOOST_COMPILER or BOOST_VERSION is defined). This method requires a
multi-threaded boost installation.
You may need to add your boost version number to Boost_ADDITIONAL_VERSIONS,
and/or set BOOST_PREFIX to the location where boost is installed.
2. Use the Wt-proprietary method to find boost.
This requires you to define three variables:
BOOST_PREFIX: set to the directory where you installed boost
BOOST_COMPILER: set to the compiler signature as you find them in library
names (e.g.: gcc42)
BOOST_VERSION: set to the boost version, again as you find them in the
library names (e.g.: 1_38)
Note 1: WT_BOOST_DISCOVERY is the variable that selects the boost discovery
method. When set to false, method 1 is used (default if cmake version is
recent enough and BOOST_COMPILER and BOOST_VERSION are not defined). When
set to true, method 2 is used.
Note 2: the code to discover boost is located in cmake/WtFindBoost.txt
Note 3: on windows, set BOOST_PREFIX to the full path, eg c:/Program
Files/boost/boost_1_65_1
--- Configuring incomplete, errors occurred!
See also "/usr/src/webtoolkit/wt-4.0.5/build/CMakeFiles/CMakeOutput.log".
See also "/usr/src/webtoolkit/wt-4.0.5/build/CMakeFiles/CMakeError.log".
RE: Error installing Wt - Added by Michelle Dupuis about 5 years ago
Well...perhaps I should have tried this first:
cmake ../
and then everything seemed to build without error :)