CMake compilation fails: undefined boost references

Help
viktor
2014-03-05
2014-03-05
  • viktor
    viktor
    2014-03-05

    Hi, I'm quite a newbie, and trying to install a program called mgiza. It compiles with CMake and requires some boost libraries.
    I used the commands

    cmake .
    make
    make install

    When I run 'make' I get the following errors:

    d4norm.cxx:(.text+0x95b): undefined reference to `boost::system::generic_category()'

    and the likes. I inserted the following line in cmakelists.txt:

    FIND_PACKAGE( Boost 1.41 COMPONENTS system)

    it worked because more files could be compiled and the warning above disappeared, but I got another error:

    main.cpp:(.text+0x7174): undefined reference to `boost::thread::hardware_concurrency()'

    , although I already have the FIND_PACKAGE( Boost 1.41 COMPONENTS thread) in the cmakelists.

    Any help would be appreciated.