On Monday, November 21, 2016 at 6:00:03 PM UTC+1, Guillaume Pasero wrote:
>
> 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 ?
>
note: never mix dlls from mingw /msvc or even multiple version of msvc
with any c++ library( not just otb). Call it whatever dll hell, abi
compatiblity.. it won't work.
I think having a script that works both windows and linux is not possible
on a native prompt.
you can write a bash /unix shell script and run that on linux and, windows
if you have a working bash shell interpreter. you need to install this
bash.exe separately. Or these days comes optional with a git installation.
In bash on windows I think you can still use existing .bat files that runs
on windows cmd prompt but not viceversa.
BTW, there are other tools than bash windows or git bash. So behaviour may
vary
I prefer pure .bat files on windows for portability reasons. I know
windows cmd.exe is awful to work with( which i think people prefer bash)
but there is clink (https://mridgers.github.io/clink/) which proved to be
very useful
> Guillaume
> On 11/21/2016 05:09 PM, [email protected] <javascript:> 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]
> <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*
> 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] <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.