I think that it could be a bug in your application code (plugin based architecture can sometimes give you a headache)
I would check these points in your application (I give you link to example in the BandMath application): - class name: http://hg.orfeo-toolbox.org/OTB/file/411a72a52636/Applications/Utils/otbBandMath.cxx#l31 - application name: http://hg.orfeo-toolbox.org/OTB/file/411a72a52636/Applications/Utils/otbBandMath.cxx#l55 - export macro: http://hg.orfeo-toolbox.org/OTB/file/411a72a52636/Applications/Utils/otbBandMath.cxx#l214 - standard type macro: http://hg.orfeo-toolbox.org/OTB/file/411a72a52636/Applications/Utils/otbBandMath.cxx#l44 Regards, Manuel Le 22/09/2014 16:20, Joseph ABΣNA a écrit : > Hello Guillaume, > > I tried > $ otbApplicationLauncherQt MyAppName AppPATH > with AppPATh = folder where sources code and .so files are located, > but Still the same error. > > It work for Native OTB Apllication eg > > > $ otbApplicationLauncherQt ImageClassifier /usr/lib/otb/applications > > But not work for my application. > > :(( > > Le 19.09.2014 08:11, Guillaume Pasero a écrit : >> Hi, >> >> You shouldn't use the path to the .so library but the path to the >> folder where they are. >> Your command line should look like : >> $ otbApplicationLauncherQt MyAppName /usr/lib/otb/applications >> >> (I suppose your app otbapp_MyAppName.so is placed in >> /usr/lib/otb/applications). >> >> Regards, >> Guillaume >> >> Le 18/09/2014 15:02, Joseph ABΣNA a écrit : >>> Hello Julien, >>> >>> I tried >>> $ otbApplicationLauncherQt MyAppName otbapp_MyAppName .so >>> >>> but I'm receiving the following error >>> >>> /Could not find application //MyAppName // >>> //Module search path : otbapp_//MyAppName.so:// >>> //Available applications : None >>> >>> >>> /I tried also (to see if it work) >>> /$ otbApplicationLauncherQt ImagesClassifier >>> /usr/lib/otb/applications/otbapp_ImagesClassifier.so / >>> >>> Still the same error :( >>> >>> I'm I wrong or do you have any other idea ? >>> Le 18.09.2014 08:10, Julien Michel a écrit : >>>> Hi Joseph, >>>> >>>> There is a minor issue with otbgui and otbcli prefixes, they >>>> actually only work for applications built within OTB tree, and not >>>> for those built as a side project. Anyway, otbgui_ and otbcli_ are >>>> just syntactic sugar scripts, you can use your application this way : >>>> >>>> $ otbApplicationLauncherCommandLine AppName PathToTheAppSo arguments >>>> >>>> or >>>> >>>> $ otbApplicationLauncherQt AppName PathToTheAppSo arguments >>>> >>>> Hope that helps, >>>> >>>> regards, >>>> >>>> Julien >>>> >>>> >>>> >>>> Le 18/09/2014 08:16, Joseph ABΣNA a écrit : >>>>> Hello, >>>>> >>>>> I'm quite familirar with OTB applications code in >>>>> [OTB_SRC_DIR/Applications/] and I'm trying to create a custom OTB >>>>> app and be able to use the GUI application launcher and parse >>>>> parametter to my program using the graphical user interface. >>>>> After completing /*myApp**Name.cxx */code, I compiled >>>>> (using/*cmake ./* /followed by */make/*) without error and this >>>>> produced me 3 files: >>>>> - /*otbapp_myApp**Name*//*.so *(shared library)/ >>>>> - /*otbcli_myApp**Name *(shell script)* >>>>> *//*/*- otbgui_myApp**Name */*/(shell script)/* >>>>> */ >>>>> Now when trying to invoke/*./*//*/*/*otbgui_myApp**Name */*/*/in >>>>> the terminal I received the following error >>>>> / >>>>> Could not find application /////myAppName ///// >>>>> //Module search path : /usr/bin/../lib/otb/applications:// >>>>> //Available applications : // >>>>> //[list of all existing OTB//-APP//without mine]/ >>>>> >>>>> I tried to add manually *.so* file to /usr/lib/otb/appication/ >>>>> and shell scripts to /usr/bin/ but I got the same error. >>>>> Trying to do *make install* tell me that there is no rule for >>>>> "Install" and exit. below my CMakelists.txt file >>>>> >>>>> Any help will be helpfull. >>>>> >>>>> ***************CMakeLists.txt***************************************************** >>>>> /FIND_PACKAGE(OTB) >>>>> >>>>> IF(OTB_FOUND) >>>>> INCLUDE(${OTB_USE_FILE}) >>>>> ELSE(OTB_FOUND) >>>>> MESSAGE(FATAL_ERROR "Cannot build OTB project without OTB. >>>>> Please set OTB_DIR.") >>>>> ENDIF(OTB_FOUND) >>>>> >>>>> >>>>> *OTB_CREATE_APPLICATION*(NAME *myApp**Name* >>>>> SOURCES **//*/myAppName/**.cxx* >>>>> LINK_LIBRARIES >>>>> OTBIO;OTBCommon;OTBBasicFilters;OTBFeatureExtraction;OTBLearning)/ >>>>> *****************CMakeLists.txt***************************************************** >>>>> >>>>> -- >>>>> -- >>>>> 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] >>>>> <mailto:[email protected]>. >>>>> 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] >>>> <mailto:[email protected]>. >>>> For more options, visit https://groups.google.com/d/optout. >>> >>> -- >>> -- >>> 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] >>> <mailto:[email protected]>. >>> For more options, visit https://groups.google.com/d/optout. >> >> >> -- >> <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] >> <mailto:[email protected]>. >> For more options, visit https://groups.google.com/d/optout. > > -- > -- > 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] > <mailto:[email protected]>. > For more options, visit 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] 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.
