Hi Leon,

I am able to reproduce the issue. The steps to reproduce:

- I've muparser installed on my system. I run the cmake configuration
keeping default configuration for muparser. MuParser is found and OTB
take the external version by default:

http://hg.orfeo-toolbox.org/OTB/file/65ad54923120/CMake/ImportMuParser.cmake

- Change OTB_USE_EXTERNAL_MUPARSER to OFF and reconfigure the library. I
my case MUPARSER_INCLUDE_DIR and MUPARSER_LIBRARIES are not modified 
(/usr/include and /usr/lib/libmuparser.so) and does not point to the
internal version of muparser.

After this I've got the same error.

Can you confirm that OTB_USE_EXTERNAL_MUPARSER is set to OFF? And can
you try to set it to ON and compile again OTB. I think that it should work.

Regards,

Manuel

Le 13/01/2014 17:11, Manuel Grizonnet a écrit :
> Hi Leon,
>
> FYI I can reproduce the same issue on Fedora... I think that you
> spotted an issue. I'll investigate this.
>
> Can you give more info on your system? operating system? Which version
> of muparser are you using?
>
> It could help also if you can attached your cmake configuration
> (cmakecache)
>
> Thank you in advance.
>
> Manuel
>
> Le 13/01/2014 08:52, Manuel Grizonnet a écrit :
>> here it is that's strange...
>>
>> What is the value of the cmake variable OTB_USE_EXTERNAL_MUPARSER (ON
>> or OFF)?
>>
>> Manuel
>>
>> Le 10/01/2014 11:37, Léon G. a écrit :
>>> Hi Manuel, 
>>>
>>> Thanks it worked adding -fPIC to the cmake var. However now, I've
>>> issues with the muParser library...
>>>
>>> [ 92%] Built target otbapp_VectorDataTransform
>>> Linking CXX executable ../../bin/BandMathFilterExample
>>> ../../bin/libOTBCommon.a(otbParser.cxx.o): In function
>>> `mu::ParserBase::DefineFun(std::string const&, double (*)(double,
>>> double), bool)':
>>> otbParser.cxx:(.text._ZN2mu10ParserBase9DefineFunERKSsPFdddEb[_ZN2mu10ParserBase9DefineFunERKSsPFdddEb]+0x51):
>>> undefined reference to `mu::ParserCallback::ParserCallback(double
>>> (*)(double, double), bool, int, mu::ECmdCode)'
>>> collect2: error: ld returned 1 exit status
>>> make[2]: *** [bin/BandMathFilterExample] Error 1
>>> make[1]: ***
>>> [Examples/BasicFilters/CMakeFiles/BandMathFilterExample.dir/all] Error 2
>>> make: *** [all] Error 2
>>>
>>>
>>>
>>> Le vendredi 10 janvier 2014 10:22:31 UTC+1, Grizonnet Manuel a écrit :
>>>
>>>     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
>>>>     <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
>>>>     <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
>>>>     <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.
>>
>> -- 
>> -- 
>> 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.

-- 
-- 
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.

Reply via email to