[CMake] cmake linking issue
Hendrik Sattler
post at hendrik-sattler.de
Wed Oct 7 10:48:06 EDT 2009
Zitat von Timothy Chan <timothychanmailinglists at gmail.com>:
> -- checking for module 'ode>=0.10.1'
> -- package 'ode>=0.10.1' not found
> -- ode-config reports version 0.11.1
>
> It first says that it was not able to find the required ode, but then
> implies that it has been found.
The first two line probably search for a pkg-config file and since
that is not found, the program "ode-config" is found and used.
> Ultimately cmake completes without errors
> and generates the makefile. There are however two warnings, and I am not
> sure that this is related to the problems that I am experiencing:
>
> CMake Warning at server/CMakeLists.txt:102 (ADD_EXECUTABLE):
> Cannot generate a safe linker search path for target gazebo-exec because
> files in some directories may conflict with libraries in implicit
> directories:
>
> link library [libGL.so] in /usr/lib may be hidden by files in:
> /usr/X11R6/lib
>
> Some of these libraries may not be found correctly.
You can ignore this (one is a link to the other) and you can disable
this with the cmake option -Wno-dev
> When I run make on the makefile that cmake has generated, make will get to
> 98% at which point it performs "Linking CXX executable gazebo" and gives me
> many error messages such as:
>
> libgazebo_server.so.0.9.0: undefined reference to `dBodySetMass'
Maybe ode-0.11.1 is not fully backward-compatible to ode-0.10?
You can make the full link line visible with "make VERBOSE=1".
HS
More information about the CMake
mailing list