nntp2http.com
Posting
Suche
Optionen
Hilfe & Kontakt

cmake und boost

Von: Jens Hornung (dncn@gmx.net) [Profil]
Datum: 07.02.2009 15:13
Message-ID: <2808470.VoOGUtdWV9@jadzia.wombaz.net>
Followup-to: de.comp.os.unix.programming
Newsgroup: de.comp.os.unix.programming
Hallo,

meine CMake-Konfiguration hat gewisse Probleme die boost-Bibliothek
zu finden. Hier ein Auszug der CMakeLists.txt

[...]
SET(Boost_USE_STATIC_LIBS ON)
SET(Boost_ADDITIONAL_VERSIONS "1.36.0" "1.37.0")
find_package(Boost REQUIRED "1.36.0" COMPONENTS system thread)
[...]


Und das hier wird dann beim Aufruf von make ausgespuckt:

CMake Error at /usr/share/cmake-2.6/Modules/FindBoost.cmake:620 (message):
Unable to find the requested Boost libraries.

Boost version: 1.37.0

Boost include path: /usr/include

The following Boost libraries could not be found:

boost_1.36.0

Some (but not all) of the required Boost libraries were found.  You may
need to install these additional Boost libraries.  Alternatively, set
Boost_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
to the location of Boost.
Call Stack (most recent call first):
CMakeLists.txt:19 (find_package)


Ich habe noch ein anderes System, auf dem Boost 1.36.0 installiert ist,
aber der Fehler taucht trotzdem auf.

Es ist zwar die passende Bibliothek installiert, aber der Name, nach
dem CMake sucht, unterscheidet sich leicht. Ich verwenden hier
Arch-Linux und habe sowohl Boost als auch CMake über den normalen
Paketmanager installiert. Vielleicht hat jemand eine Idee, wie ich
CMake beibringen kann, nach dem richtigen Namen zu suchen. Oder ist
womöglich der Name der gefundenen Bibliothek falsch?

Gruß, Jens



[ Auf dieses Posting antworten ]