Thank you ! Yes, that helped me to figure out what was occuring in my files. OTB 5.2 works now !
Le vendredi 12 février 2016 15:25:06 UTC+1, Julien Michel a écrit : > > Hi Nicolas, > > Mixing libraries from different versions of OTB is the first effect that > causes your problem I think. It is generally a very bad idea to perform > several make install in the same installation directory without cleaning up > previous versions first. I would recommand cleaning all OTB libraries and > headers in your /usr/local/bin/* and make install again. For future > install, I would recommend using a dedicated install build for each project > you compile by hand. Mine is ~/dev/local/otb (for OTB). This way, I can get > rid of the old OTB installed version with a simple rm -r ~/dev/local/otb > and I am sure I did not remove anything else. > > The second effect comes from our change of strategy with respect to 3rd > party software starting OTB 5.0 : we deactivate all 3rd parties by default, > which means that the BandMathX application is no longer built unless you > specifically activate the use of MuParserX during CMake configuration. The > reason for that is that the default configuration builds an OTB with > minimal dependencies. > > Another thing to note in your case (if you need the BandMathX app) is that > we no longer embed the source of third parties : you have to install > MuParserX library yourself if you want to activate the MuParserX module. An > alternative is to use the Superbuild [1] which will build all third parties > for you. > > So long story short : > - Remove completely your installed OTB, and make install again. That > should get you rid of those errors, but you will miss some applications > that require 3rd parties, > - In this case, either install those 3rd parties and activate them in > cmake configuration, then make install again, or use the Superbuild. > > Hope that helps, > > Regards, > > Julien > > > [1] > https://www.orfeo-toolbox.org/SoftwareGuide/SoftwareGuidech2.html#x16-220002.1.2 > > > Le 12/02/2016 15:12, Nico Champ a écrit : > > > Sorry for the French version ! here after, the english one ! > > So this is my problem... > > I just compiled OTB 5.2 > > Unfortunately, I get the same error as Mélanie when I launch some otbcli , > for instance otbcli_BandMathX > (ERROR: Could not find application "BandMathX" ERROR: Module search path: > /usr/local/bin/../lib/otb/applications) > > > The weird point is that some otbcli work, for instance otbcli_ManageNoData > > After investigation, I realised that only a few otbcli applications were > updated when installinf OTB 5.2 > > The others (for instance otbcli_BandMathX) were not updated ! > > I started having a look on the CMakeLists.txt to figure out the issue... > But I'm getting stuck ! > > And the solutions given by Otmane or Manuel do not seem to work .. > > Any idea ? ;-) > > Thank you very much in advance ! > > Nicolas > > > > Le vendredi 12 février 2016 14:53:50 UTC+1, Nico Champ a écrit : >> >> >> Bonjour, >> >> Je viens de compiler OTB 5.2 sous mac (mavericks) >> >> J'ai la même erreur que Mélanie (ERROR: Could not find application >> "BandMathX" ERROR: Module search path: >> /usr/local/bin/../lib/otb/applications) >> lorsque je lance certaines commandes otbcli (par exemple otbcli_BandMathX) >> >> Pour d'autres commandes, pas de souci, par exemple otbcli_ManageNoData se >> lance normalement ! >> >> En enquêtant, je me rends que seules certaines commandes otbcli ont été >> mises à jours dans /usr/local/bin au moment de l'install de l'OTB 5.2. Ce >> sont elles qui marchent ! >> Les autres, créées au moment de la précédente install (OTB 4.4), ne l'ont >> pas été et ne marchent plus ! >> >> J'ai commencé à regarder les options du CMakeLists (le normal, pas le >> SuperBuild qui ne marche pas chez moi), histoire de recompiler correctement >> mais je sèche un peu... >> >> Quelqu'un aurait-il une idée ? (les pistes données dans ce fil de mail ne >> semblent pas fonctionner) >> >> Merci ! >> >> Nicolas >> >> >> >> Le jeudi 11 décembre 2014 14:57:53 UTC+1, Mélanie Durupt a écrit : >>> >>> Sorry : after a discussion with my colleague, it seems that he had to >>> make some changes in otb code and that's why there is a pb with these app. >>> >>> Mélanie >>> >>> Le mardi 9 décembre 2014 17:47:39 UTC+1, Grizonnet Manuel a écrit : >>>> >>>> Other idea, do you have the definition of the application type (using >>>> ITK type macro) in the public section of the class definition. >>>> >>>> Something like this: >>>> >>>> itkTypeMacro(myImageClassifier, otb::Application); >>>> >>>> Manuel >>>> >>>> >>>> Le 09/12/2014 17:38, Mélanie Durupt a écrit : >>>> >>>> I tried this too. >>>> For the name of the application, it is correct : I checked with >>>> copy/search/paste (in the .cxx and CMakeLists) to be sure! >>>> >>>> Mélanie >>>> >>>> Le mardi 9 décembre 2014 17:30:01 UTC+1, Otmane Lahlou a écrit : >>>>> >>>>> Hi, >>>>> >>>>> You can also try to export the environment variable ITK_AUTOLOAD_PATH >>>>> to indicate the directory where your shared library is located. >>>>> >>>>> export ITK_AUTOLOAD_PATH=*path_to_lib_directory* >>>>> >>>>> HTH >>>>> >>>>> Otmane >>>>> >>>>> >>>>> >>>>> Le mardi 9 décembre 2014 17:18:57 UTC+1, Guillaume Pasero a écrit : >>>>>> >>>>>> Hi, >>>>>> >>>>>> Maybe you should check if "myImageClassifier" is the real name. The >>>>>> name you are using to call an application should match the name defined >>>>>> in >>>>>> the application code : >>>>>> -> check in the code of this application, in the method DoInit(). >>>>>> -> check that you have this line : SetName("myImageClassifier") >>>>>> >>>>>> It means that the "official" name of an application is not related to >>>>>> the name of the ".so" library file. When loading a shared library, the >>>>>> launcher will look for the official name that is set in SetName(). >>>>>> >>>>>> Regards, >>>>>> Guillaume >>>>>> >>>>>> Le 09/12/2014 16:52, Mélanie Durupt a écrit : >>>>>> >>>>>> Hi everyone >>>>>> >>>>>> I have a problem with an app (myImageClassifier) a colleague coded. >>>>>> He is not available for the moment so I ask here. >>>>>> When I launch the app I have this message : >>>>>> >>>>>> ERROR: Could not find application "myImageClassifier" >>>>>> ERROR: Module search path: /usr/bin/../lib/otb/applications: >>>>>> ERROR: Available modules : >>>>>> BandMath >>>>>> ... >>>>>> VertexComponentAnalysis >>>>>> myComputeChangeMap >>>>>> myComputeConfusionMatrix >>>>>> myDBDecisionFusion >>>>>> myFeatureSelection >>>>>> myObjectDecisionFusion >>>>>> mySegmentTool >>>>>> ERROR: No loaded application... >>>>>> >>>>>> I tried >>>>>> $ otbcli_myImageClassifier >>>>>> $ otbApplicationLauncherCommandLine myImageClassifier >>>>>> /usr/lib/otb/applications/ >>>>>> and I have the same messages... >>>>>> >>>>>> I work with OTB 4.2 on ubuntu. Of course, >>>>>> "otbapp_myImageClassifier.so " is in /usr/lib/otb/applications/ >>>>>> I checked the application like in this example : >>>>>> <https://groups.google.com/d/msg/otb-users/gu7q0scLcgw/KLi-vnsdP78J> >>>>>> https://groups.google.com/d/msg/otb-users/gu7q0scLcgw/KLi-vnsdP78J >>>>>> >>>>>> You can see that in the list of the available modules, there are some >>>>>> personal apps (that work). I don't understand why I have these messages >>>>>> for >>>>>> this particular app... >>>>>> >>>>>> >>>>>> Regards, >>>>>> >>>>>> Mélanie >>>>>> -- >>>>>> -- >>>>>> 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> >>>>>> 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] >>>>>> >>>>> -- >>>> -- >>>> 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> >>>> https://groups.google.com/d/optout. >>>> >>>> >>>> -- >>>> Manuel GRIZONNET >>>> CNES - DCT/SI/AP - BPI 1219 >>>> 18, avenue Edouard Belin >>>> 31401 Toulouse Cedex 09 - France >>>> Tel: +33 561 282 630 - Fax: +33 561 283 109 >>>> >>>> >>>> -- > -- > 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. > > > > -- > Julien MICHEL > CNES - DCT/SI/AP - BPI 1219 > 18, avenue Edouard Belin > 31401 Toulouse Cedex 09 - France > Tel: +33 561 282 894 - Fax: +33 561 283 109 > > -- -- 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.
