[Rock-dev] What to avoid using two boost installations

Stefan Haase stefan.haase at dfki.de
Tue Apr 16 20:34:25 CEST 2013


Another thing to avoid regarding boost:
Using in the CMakeLists.txt (even if ROCK_CMAKE_MACROS is set correctly)

include ($ENV{ROCK_CMAKE_MACROS}/Rock.cmake})

Instead use

find_package(Rock)

Maybe old, but the wrong version is still used at some places.

Best regards,
Stefan


2013/4/5 Stefan Haase <stefan.haase at dfki.de>

> Hi,
>
> just a comment about two boost installations, because I always fight with
> that again.
> If you have two boost installations (in my case 1.46 in /usr and 1.5 in
> /opt/software/external) the headers and the libs may become mixed.
>
> For example, instead of
>
> find_package( Boost COMPONENTS thread)
> rock_library(iodrivers_base
>     DEPS_CMAKE Boost
>     or
>     DEPS_PLAIN Boost
> )
>
> do this
>
> find_package( Boost COMPONENTS thread)
> rock_library(iodrivers_base
>     LIBS ${Boost_THREAD_LIBRARY}
>     or
>     DEPS_PLAIN ${Boost_THREAD_LIBRARY}
>     or
>     DEPS_PLAIN Boost_THREAD_LIBRARY
> )
>
> Best regrads,
> Stefan
>
> --
>  Dipl.-Inf. Stefan Haase
>  Space Robotics and Animation
>
> Standort Bremen:
>  DFKI GmbH
>  Robotics Innovation Center
>  Robert-Hooke-Straße 5
>  28359 Bremen, Germany
>
>  Phone: +49 (0)421 178 45-4108
>  Fax:   +49 (0)421 178 45-4150
>  E-Mail: Stefan.Haase at dfki.de
>
>  Weitere Informationen: http://www.dfki.de/robotik
>  -----------------------------------------------------------------------
>  Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
>  Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
>  Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
>  (Vorsitzender) Dr. Walter Olthoff
>  Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
>  Amtsgericht Kaiserslautern, HRB 2313
>  Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
>  USt-Id.Nr.:    DE 148646973
>  Steuernummer:  19/673/0060/3
>  -----------------------------------------------------------------------
>



-- 
 Dipl.-Inf. Stefan Haase
 Space Robotics and Animation

Standort Bremen:
 DFKI GmbH
 Robotics Innovation Center
 Robert-Hooke-Straße 5
 28359 Bremen, Germany

 Phone: +49 (0)421 178 45-4108
 Fax:   +49 (0)421 178 45-4150
 E-Mail: Stefan.Haase at dfki.de

 Weitere Informationen: http://www.dfki.de/robotik
 -----------------------------------------------------------------------
 Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
 Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
 Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
 (Vorsitzender) Dr. Walter Olthoff
 Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
 Amtsgericht Kaiserslautern, HRB 2313
 Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
 USt-Id.Nr.:    DE 148646973
 Steuernummer:  19/673/0060/3
 -----------------------------------------------------------------------
-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: http://www.dfki.de/pipermail/rock-dev/attachments/20130416/bfe1cf63/attachment.htm 


More information about the Rock-dev mailing list