Osgeo4w is 64 bits /e/Programs/OTB-5.8.0-win64 is the directory generated with the archive OTB-5.8.0-win64.run (sorry, i forgot "-win64" in my previous post) I started my bash script with the osgeo4w shell because i need bash but also cat, echo, grep, sed, awk ... commands
I installed win-bash (from http://win-bash.sourceforge.net/) But my script is not working in this environment (problems with if construction and binary operator) I forgive, no time left to search a solution. Windows Users will have to call a linux box Many thanks to Rashad and Guillaume Le mardi 22 novembre 2016 10:14:13 UTC+1, Rashad a écrit : > > > > On Tuesday, November 22, 2016 at 10:04:32 AM UTC+1, [email protected] > wrote: >> >> It was not a typo... >> I corrected the parameters order, but the error message remains >> According to Rashad's message, it seems it is not possible do create such >> a script. >> >> Perhaps, i should indicate that i start a osgeo4w shell, and after >> starting a bash, i launch the script. >> >> I tryied to change the PATH variable inside my bash script. >> If PATH=/e/Programs/OTB-5.8.0/bin;/usr/bin, the script complains about >> missing DLL (gdal_ECW_JP2ECW.dll, gdal_GEOR.dll ...) >> Then if i add the default path (/c/OSGEO4~1/bin), the error message >> appears. >> > > is /c/OSGEO4~1/ 32 bit or 64 bit? > > also what is /e/Programs/OTB-5.8.0/ ? > > you don't need to start from osgeo4w shell. infact you shouldn't run OTB > 5.8.0 binary package from osgeo4w shell. > > open cmd.exe > > and cd E:\Programs \OTB-5.8.0\bin > > for bash.exe > > you need > cd /e/Programs/OTB-5.8.0/bin > > > > > > >> Here a bit of my script which is intended to switch between different >> form of OTB's application launching method according to the platform used. >> >> if [ "$platform" == "linux" ]; then >> otbcli_$cmd $* >> elif [ "$platform" == "windows_otb_5.8.0" ]; then >> sopath="/e/programs/OTB-5.8.0-win64/lib/otb/applications" >> ${otbdir}/bin/otbApplicationLauncherCommandLine $cmd $sopath $* >> >> Waiting for an answer to confirm this is not possible >> >> Philippe >> Le lundi 21 novembre 2016 18:00:03 UTC+1, Guillaume Pasero a écrit : >>> >>> Hi, >>> >>> The correct order is "otbApplicationLauncherCommandLine $cmd $sopath >>> $*" (maybe a typo). >>> >>> The second argument "$sopath" is used to find the directory containing >>> the application dlls ("otbapp_MyApplication.dll" ... there is 1 dll for >>> each OTB application). >>> Do you still get the DLL error ? >>> >>> Guillaume >>> On 11/21/2016 05:09 PM, [email protected] wrote: >>> >>> Hi, >>> >>> i'm trying to build a script which could be run in both environment >>> (linux & windows) without editing it. >>> My script runs fine on differents linux (Debian, ubuntu) box. >>> According to the answer to this previous subject >>> <https://groups.google.com/forum/#%21topic/otb-users/JKvvL7IyKsY>, i >>> built the call to Windows OTB applications running in an OSGEO4W shell as >>> follows: >>> >>> sopath="/e/programs/OTB-5.8.0-win64/lib/otb/applications" >>> /e/programs/OTB-5.8.0-win64/bin/otbApplicationLauncherCommandLine >>> $sopath $cmd $* >>> >>> Where >>> >>> $cmd contains an OTB application name >>> $* contains all needed parameters for the application >>> >>> >>> I'm not sure about what i should put in the sopath variable ... >>> >>> Anyway, i get an error on a windows 10 machine: "Le point d'entrée de >>> procédure >>> ?setAdjustableParameter@ossimAdjustableParameterInterface@@QEAAXIN_N@Z est >>> introuvable dans la bibliothèque de liens dynamiques >>> c:\OSGEO4~1\bin\otbossimplugins-5.0.dll " >>> >>> I guess this is related to the "sopath" variable, as it is looking for a >>> DLL installed with OSGEO4W, but cannot figure out how to force the use of >>> the last OTB version i installed in another directory. >>> >>> >>> Many thanks for your help >>> >>> Philippe >>> -- >>> -- >>> 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. >>> >>> >>> -- >>> <http://www.c-s.fr> *Guillaume PASERO* >>> Responsable technique >>> *Business Unit E-SPACE & Geo Information - Département Image & >>> 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.
