简体   繁体   中英

Could NOT find Boost in ubuntu machine?

I have already installed BOOST in my brand new Ubuntu 12.04 machine. And when I do like this -

cmake .

I always get the below exception saying -

Could NOT find Boost

I am not sure what wrong I am doing here. I have one of my ubuntu instance working fine and I am trying the same thing on my new Ubuntu instance which I have got.. So I am not sure what wrong I am doing here and how the same thing works fine in my other ubuntu instance.

root@dbx1245:/export/home/test/libcql# cmake .
-- Could NOT find Boost
WANT_LIB64 unset; assuming normal library directory names
Will install libraries to /usr/local/lib
-- Configuring done
-- Generating done
-- Build files have been written to: /export/home/test/libcql

Can anyone help me with this?

I am running Ubuntu 12.04. I have seen other article as well on the stackoverflow but I am not able to solve this issue.

I already have boost installed by the way.

I also encountered this error - boost was correctly installed as suggested in this answer .

I solved it by setting

set(BOOST_INCLUDEDIR /usr/include)

just before

find_package(Boost)

I was using CMake 3.1.3 for testing (via ppa:george-edison55/cmake-3.x )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM