I am new to linux and C++ programming so I'm posting in hope of some help.
I am trying to install a C++ library using boost and cmake but I keep gettin this error in the terminal:
CMake Error at /usr/share/cmake/Modules/FindBoost.cmake:1199 (message):
Unable to find the requested Boost libraries.
Unable to find the Boost header files. Please set BOOST_ROOT to the root
directory containing Boost or BOOST_INCLUDEDIR to the directory containing
Boost's headers.
Call Stack (most recent call first):
CMakeLists.txt:184 (find_package)
Chances are you just need to install boost ( library AND dev package ). How to do that depends on your distribution. Don't try compiling it by hand -- boost is huge enough it would take a very long time, and your distro almost certainly has precompiled versions anyway.
Like I said, I suggest not building boost from scratch. There's almost certainly a pre-compiled version for your distribution. There's good odds you even have boost already, just not its headers. By downloading the tar, and trying to ./configure, you're trying to build boost from scratch.
In fact, what library are you trying to build? There might be a package for that too.
Building it yourself is a last resort, not a first one.
You probably installed it under /usr/local/lib. Which isn't a bad thing in of itself -- makes it easy to tell apart from the things which your system was able to install automatically. But the dynamic loader doesn't look in there by default... If so, you'll need to
or somesuch.
Hello. I am currently trying to compile kde-baseapps.
I issue this command: which returns So I need this ECM stuff.
I found this: extra-cmake-modules.git - Extra modules and scripts for CMake.. When I click in the corresponding link in the column, I receive this:
This also happens... (2 Replies)
I was compiling a downloaded open source pkg. Following the install instruction, I did
$ mkdir build; cd build; cmake ../; make
but got error message:make: *** No rule to make target 'usr/lib64/lib64/libboost_graph-mt.so.5'. needed by ../bin.gam-create. stop
make: *** Error 2
make: *** Error... (1 Reply)
Hi,
I just started using CMake and the Boost Libraries. In this progress I encountered some problems.
One of these problems is combining Boost unit tests with cmake. I don't know how to set the whole project up. I tried to set up a simple test project. This contains a main.cpp a comp.cpp and the... (0 Replies)
hi guys..
i installed cmake in solaris 5.10..... x86
i checked pkginfo | grep -i cmake ... it installed but when excuted cmake it showing following error in output
bash-3.00# cmake
ld.so.1: cmake: fatal: liblzma.so.5: open failed: No such file or directory
help me anyone before... (3 Replies)
Hello,
./configure script fails to configure libsf. Please check the following last few lines of configure script error.
checking for db1/db.h... no
checking for db.h... yes
checking for dbopen in -ldb1... no
configure: error: No libdb? No libsf.
But find command shows the following; ... (4 Replies)
Hi All
I am working unders Sun Solaris and I am not
"/opt/boost/boost/thread/detail/thread.hpp", line 344: Error: boost::thread::thread(boost::thread&) is not accessible from boost::move(boost::detail::thread_move_t<boost::thread>).
Do you know if there are other solutions other than... (2 Replies)