[CMake] vxl double lib linking problem

marco piccima at gmail.com
Mon Aug 19 12:39:16 EDT 2013


Hello,
I'm using the last vxl repository in a ubuntu machine.
I compiled vxl without problem.
I'm writing my classes and wrappers from vxl, cmake work fine finding 
vxl, BUT
at the and of generating the Makefile I get the warning:

CMake Warning at projects/annotation_tool/exec/CMakeLists.txt:3 
(ADD_EXECUTABLE):

Cannot generate a safe linker search path for target annotation_tool_exec

because files in some directories may conflict with libraries in implicit

directories:


link library [libgeotiff.so] in /usr/lib may be hidden by files in:

/home/piccir/Documents/vxl_build/lib


Some of these libraries may not be found correctly.



Now libgeotiff is required from vxl and he makes his own version in lib, 
but is different from the one in /usr/lib.
I'll post this problem on vxl mailing list too.
When compiling I get this error:

/usr/bin/ld: 
/home/piccir/Documents/vxl_build/lib/libgeotiff.a(geo_tiffp.o): 
undefined reference to symbol '_TIFFrealloc'
/usr/bin/ld: note: '_TIFFrealloc' is defined in DSO 
/usr/lib/i386-linux-gnu/libtiff.so so try adding it to the linker 
command line
/usr/lib/i386-linux-gnu/libtiff.so: could not read symbols: Invalid 
operation

How to change the library to link in cmake? or I have to manually edit 
the Makefile??

Thank you

Marco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130819/b8e32eb2/attachment.htm>


More information about the CMake mailing list