From: Daniele E. D. <dan...@ii...> - 2015-06-17 17:18:18
|
Hello Anthony If I understand correctly, you are building the bindings separate from YARP. The recommended way to do it is to enable them when building YARP, by enabling the "CREATE_BINDINGS" option. On Thursday 11 Jun 2015 13:17:07 Anthony Morse wrote: > Linking CXX shared module libjyarp.so > /usr/bin/ld: /usr/local/lib/libYARP_OS.a(HttpCarrier.cpp.o): relocation > R_X86_64_32 against `.rodata' can not be used when making a shared object; > recompile with -fPIC /usr/local/lib/libYARP_OS.a: error adding symbols: Bad > value "/usr/local/lib/libYARP_OS.a" means that like you are linking to a STATIC version of YARP. The "CREATE_SHARED_LIBRARIES" option must be ON when building YARP, not the bindings. If this is what you are doing, you probably have some old version of YARP installed on your system, please get rid of them and try again. Also if I remember correctly, newer version of YARP are built with -fPIC, therefore you should not have this issue unless you are trying to link to a very old version. Cheers, Daniele |