Hi Léon, did you try to compile using the -fPIC option as advised by the compiler? You can add this option in cmake by modyfing the variables CMAKE_CXX_FLAGS and CMAKE_C_FLAGS.
Side question, did you set the cmake variable BUILD_SHARED_LIBS to ON during cmake configuration? If yes it can explain why you should compile with -fPIC. Let me know if it helps. Regards, Manuel Le 10/01/2014 10:05, Léon G. a écrit : > Hi, > > > I've been trying to install OTB 3.20 but at some point I get the > following error: > > [ 89%] Built target OTBApplicationEngine > [ 89%] Built target OTBWrapperCommandLine > [ 89%] Built target otbApplicationLauncherCommandLine > Linking CXX shared module > ../../bin/otbapp_ComputePolylineFeatureFromImage.so > /usr/bin/ld: > ../../bin/libOTBApplicationEngine.a(otbWrapperElevationParametersHandler.cxx.o): > relocation R_X86_64_32 against `.rodata' can not be used when making a > shared object; recompile with -fPIC > ../../bin/libOTBApplicationEngine.a: could not read symbols: Bad value > collect2: error: ld returned 1 exit status > make[2]: *** [bin/otbapp_ComputePolylineFeatureFromImage.so] Error 1 > make[1]: *** > [Applications/CartographicDBValidation/CMakeFiles/otbapp_ComputePolylineFeatureFromImage.dir/all] > Error 2 > make: *** [all] Error 2 > > Any ideas on where it comes from and how to fix it? > > > Le jeudi 19 septembre 2013 08:51:57 UTC+2, Yoann a écrit : > > I use an Ubuntu precise and compile every things thanks to sources > > I try to recompile every thing with the same error ... I suppose > It comme from my gcc configuration :( > > -- > -- > Check the OTB FAQ at > http://www.orfeo-toolbox.org/FAQ.html > > You received this message because you are subscribed to the Google > Groups "otb-users" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/otb-users?hl=en > --- > You received this message because you are subscribed to the Google > Groups "otb-users" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. -- -- Check the OTB FAQ at http://www.orfeo-toolbox.org/FAQ.html You received this message because you are subscribed to the Google Groups "otb-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/otb-users?hl=en --- You received this message because you are subscribed to the Google Groups "otb-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
