LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   cmake cannot find boost library slackware 14 (https://www.linuxquestions.org/questions/linux-software-2/cmake-cannot-find-boost-library-slackware-14-a-4175463670/)

teodor_b 05-27-2013 07:40 PM

cmake cannot find boost library slackware 14
 
Hello.

I am trying to compile Mocapy on slackware 14.0 32bit. I installed all the development libraryes also the boost library. I used the standard configuration - /usr/include/boost and /usr/lib, but cmake cannot find the boost library.



Code:

teodor@darkstar:~/Downloads/Mocapy++-1.07$ cmake .
CMake Error at /usr/share/cmake-2.8/Modules/FindBoost.cmake:1200 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.49.0

  Boost include path: /usr/include

  The following Boost libraries could not be found:

          boost_serialization
          boost_program_options
          boost_thread

  No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
  directory containing Boost libraries or BOOST_ROOT to the location of
  Boost.
Call Stack (most recent call first):
  examples/CMakeLists.txt:9 (FIND_PACKAGE)


running /usr/bin/cmake -E create_symlink "/home/teodor/Downloads/Mocapy++-1.07/examples/data" "/home/teodor/Downloads/Mocapy++-1.07/examples/data"  2>&1
-- Could NOT find Boost
-- Could NOT find Boost
-- Could NOT find Boost
-- Could NOT find Boost
-- Could NOT find Boost
-- Could NOT find Boost
-- Could NOT find Boost
-- Could NOT find Boost
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
Boost_PROGRAM_OPTIONS_LIBRARY (ADVANCED)
    linked by target "mlr-uni" in directory /home/teodor/Downloads/Mocapy++-1.07/examples
Boost_SERIALIZATION_LIBRARY (ADVANCED)
    linked by target "discrete_hmm_with_prior" in directory /home/teodor/Downloads/Mocapy++-1.07/examples
    linked by target "hmm_bippo" in directory /home/teodor/Downloads/Mocapy++-1.07/examples
    linked by target "hmm_dirichlet" in directory /home/teodor/Downloads/Mocapy++-1.07/examples
    linked by target "hmm_discrete" in directory /home/teodor/Downloads/Mocapy++-1.07/examples
    linked by target "hmm_factorial" in directory /home/teodor/Downloads/Mocapy++-1.07/examples
    linked by target "hmm_gauss" in directory /home/teodor/Downloads/Mocapy++-1.07/examples
    linked by target "hmm_gauss_1d" in directory /home/teodor/Downloads/Mocapy++-1.07/examples
    linked by target "hmm_kent" in directory /home/teodor/Downloads/Mocapy++-1.07/examples
    linked by target "hmm_multinomial" in directory /home/teodor/Downloads/Mocapy++-1.07/examples
    linked by target "hmm_poisson" in directory /home/teodor/Downloads/Mocapy++-1.07/examples
    linked by target "hmm_simple" in directory /home/teodor/Downloads/Mocapy++-1.07/examples
    linked by target "hmm_torus" in directory /home/teodor/Downloads/Mocapy++-1.07/examples
    linked by target "hmm_vonmises" in directory /home/teodor/Downloads/Mocapy++-1.07/examples
    linked by target "infenginehmm_example" in directory /home/teodor/Downloads/Mocapy++-1.07/examples
    linked by target "infenginemm_example" in directory /home/teodor/Downloads/Mocapy++-1.07/examples
    linked by target "mdarray" in directory /home/teodor/Downloads/Mocapy++-1.07/examples
    linked by target "mlr-uni" in directory /home/teodor/Downloads/Mocapy++-1.07/examples
    linked by target "infenginehmm_test" in directory /home/teodor/Downloads/Mocapy++-1.07/tests
    linked by target "infenginemm_test" in directory /home/teodor/Downloads/Mocapy++-1.07/tests
Boost_THREAD_LIBRARY (ADVANCED)
    linked by target "mlr-uni" in directory /home/teodor/Downloads/Mocapy++-1.07/examples

-- Configuring incomplete, errors occurred!

My boost is 1.49 and my cmake is 2.8.8
When I do
Code:

locate boost | grep program_options
I get
Code:

/usr/lib/libboost_program_options.so.1.49.0
/usr/lib/libboost_program_options.so
/usr/include/boost/program_options.hpp
/usr/include/boost/program_options
/usr/include/boost/program_options/value_semantic.hpp
/usr/include/boost/program_options/cmdline.hpp
/usr/include/boost/program_options/positional_options.hpp
/usr/include/boost/program_options/environment_iterator.hpp
/usr/include/boost/program_options/detail
/usr/include/boost/program_options/detail/value_semantic.hpp
/usr/include/boost/program_options/detail/cmdline.hpp
/usr/include/boost/program_options/detail/convert.hpp
/usr/include/boost/program_options/detail/config_file.hpp
/usr/include/boost/program_options/detail/utf8_codecvt_facet.hpp
/usr/include/boost/program_options/detail/parsers.hpp
/usr/include/boost/program_options/eof_iterator.hpp
/usr/include/boost/program_options/variables_map.hpp
/usr/include/boost/program_options/errors.hpp
/usr/include/boost/program_options/config.hpp
/usr/include/boost/program_options/option.hpp
/usr/include/boost/program_options/options_description.hpp
/usr/include/boost/program_options/parsers.hpp
/usr/include/boost/program_options/version.hpp

I really don't have any idea what goes wrong :(

Thank you.

teodor_b 05-28-2013 05:18 AM

Hi,

It's me again. I managed to fix the problem. Apparently the boost library 1.49 from the slackware distribution has some issues with cmake. I replaced it with the newer one from the boost website 1.53 and everything is ok :)


All times are GMT -5. The time now is 08:18 AM.