LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-27-2013, 07:40 PM   #1
teodor_b
LQ Newbie
 
Registered: Jun 2009
Posts: 10

Rep: Reputation: 0
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.
 
Old 05-28-2013, 05:18 AM   #2
teodor_b
LQ Newbie
 
Registered: Jun 2009
Posts: 10

Original Poster
Rep: Reputation: 0
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
 
  


Reply

Tags
mocapy, mocapy++


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CMake: link multiple archives (static libs) into shared library taylor_ma Programming 5 07-12-2012 04:52 AM
cmake: Using find_package(Boost) when FindBoost.cmake is not in the default location damien_d Programming 3 10-27-2010 03:40 PM
FC10, Where Is Boost library rpm mickeyboa Fedora 3 02-13-2009 07:58 PM
g++ link for boost library ........... jaysrikrishna Programming 2 09-16-2008 11:53 PM
boost library juricheguevara Programming 5 07-04-2006 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration