Hi Guillaume, Thanks for your message. Indeed I tried to compile all the OTB files with the flag -fPIC. I added it in CMAKE_CXX_FLAGS and CMAKE_C_FLAGS cmake options. Unfortunately the error still occur.
Any idea? Boris Le mercredi 15 octobre 2014 15:59:49 UTC+2, Guillaume Pasero a écrit : > > Hi, > > It seems that your linker can't import a symbol from > libOTBApplicationEngine.a. > As suggested in the error message, you should try compiling with the flag > "-fPIC". Have you tried it ? > > Regards, > Guillaume > > Le 15/10/2014 15:52, BK [Ubuntu 14.04 LTS 64] a écrit : > > Hi there, > > I would like to install OTB-4.2.1 with OpenCV-2.4.9 but I get a troubling > error during compilation process: > " > Linking CXX shared module > ../../bin/otbapp_ComputePolylineFeatureFromImage.so > /usr/bin/ld: > ../../bin/libOTBApplicationEngine.a(otbWrapperElevationParametersHandler.cxx.o): > > réadressage de R_X86_64_32 en vertu de « .rodata.str1.1 » ne peut être > utilisé lors de la création d'un objet partagé; recompilez avec -fPIC > ../../bin/libOTBApplicationEngine.a: error adding symbols: Mauvaise valeur > collect2: error: ld returned 1 exit status > make[2]: *** [bin/otbapp_ComputePolylineFeatureFromImage.so] Erreur 1 > make[1]: *** > [Applications/CartographicDBValidation/CMakeFiles/otbapp_ComputePolylineFeatureFromImage.dir/all] > > Erreur 2 > make: *** [all] Erreur 2 > " > > This doesn't occur when I set BUILD APPLICATIONS to OFF (but I need them). > Note that a similar error occurs (i.e. "réadressage de R_X86_64_32 en > vertu de [...]") while compiling Monteverdi. > > Please let me know if you know where this error come from and how to fix > it. > > Thanks in advance, > > Boris > > > > -- > -- > 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] > <javascript:> > To unsubscribe from this group, send email to > [email protected] <javascript:> > 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] <javascript:>. > For more options, visit https://groups.google.com/d/optout. > > > > -- > <http://www.c-s.fr> *Guillaume PASERO* > Ingénieur d'études et développement > *Business Unit E-SPACE & Geo Information* > <https://thor.si.c-s.fr/blogs/cs-blogs-business/>* - Département > APPLICATIONS* > > *CS Systèmes d'Information* > Parc de la Grande Plaine - 5, Rue Brindejonc des Moulinais - BP 15872 > 31506 Toulouse Cedex 05 - FRANCE > +33 561 17 64 21 - [email protected] <javascript:> > -- -- 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/d/optout.
