Re: [otb-users] Java Wrapper - Bad allocation (on Windows)

2018-01-19 Thread Baptiste Lafabregue
Hi Guillaume,

Thank you for your feedback. 
Yes I already add it to the PATH. But since it works on your test I will 
try on another windows machine. Maybe it is a problem with my installation.

Which XDK version do you use ?

Baptiste 


On Thursday, January 11, 2018 at 6:25:31 PM UTC+1, Guillaume Pasero wrote:
>
> Hi Baptiste,
>
> I enabled Java wrappings on the windows platforms from the Dashboard. 
> Tests are running fine, for instance : 
>
> https://dash.orfeo-toolbox.org/testDetails.php?test=65717422=305063
>
> Here is the corresponding Java test file : 
>
>
> https://git.orfeo-toolbox.org/otb.git/blob/HEAD:/Modules/Wrappers/SWIG/test/java/JavaSmoothingTest.java
>
> On Windows there is a specific action done in the CMakeLists.txt :
>
> if (WIN32)
>   set( PATH_SEPARATOR ";")
>   # on windows, loading the module _otbApplication requires the 
> otbossimplugins*.dll
>   # which is in the 'bin' folder
>   set(TEST_DRIVER ${TEST_DRIVER}
> --add-before-env PATH ${OTB_BINARY_DIR}/bin)
> endif()
>
> If you add ${OTB_BINARY_DIR}/bin to your PATH, does it work better ?
>
> Regards,
>
> Guillaume
>
> On 11/19/2017 06:41 PM, Baptiste Lafabregue wrote:
>
> Hello, 
>
> I compiled OTB on windows, the otb applications are working perfectly 
> fine. But when I want to access to the list of the application or load a 
> given application from the java wrapper, the program raise the following 
> exception :
>
> Exception in thread "main" java.lang.RuntimeException: bad allocation
> at 
> org.otb.application.otbApplicationJNI.Registry_CreateApplicationInternal(Native
>  
> Method)
> at org.otb.application.Registry.CreateApplicationInternal(Registry.java:45)
> at org.otb.application.Registry.CreateApplication(Registry.java:36)
>  ...
>
> The strangest thing about this, is that I don't have any problem with the 
> linux version that I'm using. 
> Is there any known issues about it ?
>
>
> Best Regards,
> Baptiste
> -- 
> -- 
> 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 otb-...@googlegroups.com 
> 
> To unsubscribe from this group, send email to
> otb-users+...@googlegroups.com 
> 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 otb-users+...@googlegroups.com .
> For more options, visit https://groups.google.com/d/optout.
>
>
> -- 
> <http://www.c-s.fr> *Guillaume PASERO*
> Responsable technique
> *Business Unit ESPACE & GeoInformation - Département Payload Data & 
> 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 - guillaum...@c-s.fr  
>

-- 
-- 
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 otb-users@googlegroups.com
To unsubscribe from this group, send email to
otb-users+unsubscr...@googlegroups.com
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 otb-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[otb-users] Java Wrapper - Bad allocation (on Windows)

2017-11-19 Thread Baptiste Lafabregue
Hello,

I compiled OTB on windows, the otb applications are working perfectly fine. 
But when I want to access to the list of the application or load a given 
application from the java wrapper, the program raise the following 
exception :

Exception in thread "main" java.lang.RuntimeException: bad allocation
at 
org.otb.application.otbApplicationJNI.Registry_CreateApplicationInternal(Native 
Method)
at org.otb.application.Registry.CreateApplicationInternal(Registry.java:45)
at org.otb.application.Registry.CreateApplication(Registry.java:36)
 ...

The strangest thing about this, is that I don't have any problem with the 
linux version that I'm using. 
Is there any known issues about it ?


Best Regards,
Baptiste

-- 
-- 
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 otb-users@googlegroups.com
To unsubscribe from this group, send email to
otb-users+unsubscr...@googlegroups.com
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 otb-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[otb-users] Java Wrapping -

2017-11-19 Thread Baptiste Lafabregue
Hello,

I compiled OTB on windows, the otb applications are working perfectly fine. 
But when I want to access to the list of the application or load a given 
application from the java wrapper, the program raise the following 
exception :

Exception in thread "main" java.lang.RuntimeException: bad allocation
at 
org.otb.application.otbApplicationJNI.Registry_CreateApplicationInternal(Native 
Method)
at org.otb.application.Registry.CreateApplicationInternal(Registry.java:45)
at org.otb.application.Registry.CreateApplication(Registry.java:36)
 ...

The strangest thing about this, is that I don't have any problem with the 
linux version that I'm using. 
Is there any known issues about it ?


Best Regards,
Baptiste


-- 
-- 
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 otb-users@googlegroups.com
To unsubscribe from this group, send email to
otb-users+unsubscr...@googlegroups.com
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 otb-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[otb-users] ITK configuration file for cmake (Windows compilation)

2017-10-30 Thread Baptiste Lafabregue
Hello,

I'm trying to compile OTB on windows (on a 64b machine). I followed the 
steps from the wiki, but when I want to configure the build it stops with 
the following message :

*CMake Warning at Modules/ThirdParty/ITK/otb-module-init.cmake:103 
(find_package):*
*  By not providing "FindITK.cmake" in CMAKE_MODULE_PATH this project has*
*  asked CMake to find a package configuration file provided by "ITK", but*
*  CMake did not find one.*

*  Could not find a package configuration file provided by "ITK" with any 
of*
*  the following names:*

*ITKConfig.cmake*
*itk-config.cmake*

*  Add the installation prefix of "ITK" to CMAKE_PREFIX_PATH or set 
"ITK_DIR"*
*  to a directory containing one of the above files.  If "ITK" provides a*
*  separate development package or SDK, be sure it has been installed.*
*Call Stack (most recent call first):*
*  CMake/OTBModuleEnablement.cmake:394 (include)*
*  CMakeLists.txt:326 (include)*

>From what I understood FindITK.cmake is no more provided with cmake 3.0 and 
above. On the other hand ITK comply to cmake 3.0+ only with version 4.0+. 
Is there a way to solve this ?

Thank you,
Baptiste 

-- 
-- 
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 otb-users@googlegroups.com
To unsubscribe from this group, send email to
otb-users+unsubscr...@googlegroups.com
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 otb-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[otb-users] Unable to compile QT4 lib with Superbuilt

2016-11-14 Thread Baptiste Lafabregue
Hello,

I just checked out the last OTB release and I used Superbuilt to compile 
the source.
Unfortunately the process failed when building QT4.

Here is the error retrieved by the make command :

...
-- Up-to-date: /lib/libfreetype.so
[ 66%] Completed 'FREETYPE'
[ 66%] Built target FREETYPE
[ 67%] Creating directories for 'QT4'
[ 67%] Performing download step (download, verify and extract) for 'QT4'
-- verifying file...
 
file='/home/baptistelafabregue/OTB/build/Downloads/qt-everywhere-opensource-src-4.8.7.tar.gz'
-- verifying file... done
-- extracting...
 
src='/home/baptistelafabregue/OTB/build/Downloads/qt-everywhere-opensource-src-4.8.7.tar.gz'
 dst='/home/baptistelafabregue/OTB/build/QT4/src/QT4'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 67%] No update step for 'QT4'
[ 68%] No patch step for 'QT4'
[ 68%] Performing QT4_custom_patch step for 'QT4'
Input patch file: 
/home/baptistelafabregue/OTB/otb/SuperBuild/patches/QT4/qt4-1-skip-qtnetwork-module-all.diff
patching file src/plugins/graphicssystems/graphicssystems.pro
patching file src/plugins/plugins.pro
patching file src/src.pro
[ 68%] Performing configure step for 'QT4'
CMake Error at 
/home/baptistelafabregue/OTB/build/QT4/src/QT4-stamp/QT4-configure-Release.cmake:16
 
(message):
  Command failed: 1

   '/home/baptistelafabregue/OTB/build/configure_qt4.sh'

  See also

/home/baptistelafabregue/OTB/build/QT4/src/QT4-stamp/QT4-configure-*.log


CMakeFiles/QT4.dir/build.make:115: recipe for target 
'QT4/src/QT4-stamp/QT4-configure' failed
make[2]: *** [QT4/src/QT4-stamp/QT4-configure] Error 1
CMakeFiles/Makefile2:583: recipe for target 'CMakeFiles/QT4.dir/all' failed
make[1]: *** [CMakeFiles/QT4.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

When looking at the log files, it seems like there is some missing 
arguments.
There is nothing in the *err.log, and here is the content of the *out.log :


/freetype2: unknown argument
Determining system architecture... (Linux:4.4.0-45-generic:x86_64)
64-bit AMD 80x86 (x86_64)
'x86_64' is supported
System architecture: 'x86_64'
Precompiled-headers support enabled.
Symbol visibility control enabled.

Usage:  configure [-h] [-prefix ] [-prefix-install] [-bindir ] 
[-libdir ]
[-docdir ] [-headerdir ] [-plugindir  ] [-importdir 
] [-datadir ]
[-translationdir ] [-sysconfdir ] [-examplesdir ]
[-demosdir ] [-buildkey ] [-release] [-debug]
[-debug-and-release] [-developer-build] [-shared] [-static] 
[-no-fast] [-fast] [-no-largefile]
[-largefile] [-no-exceptions] [-exceptions] [-no-accessibility]
[-accessibility] [-no-stl] [-stl] [-no-sql-] [-sql-]
[-plugin-sql-] [-system-sqlite] [-no-qt3support] 
[-qt3support]
[-platform] [-D ] [-I ] [-L ] [-help]
[-qt-zlib] [-system-zlib] [-no-gif] [-no-libtiff] [-qt-libtiff] 
[-system-libtiff]
[-no-libpng] [-qt-libpng] [-system-libpng] [-no-libmng] [-qt-libmng]
[-system-libmng] [-no-libjpeg] [-qt-libjpeg] [-system-libjpeg] 
[-make ]
[-nomake ] [-R ]  [-l ] [-no-rpath]  [-rpath] 
[-continue]
[-verbose] [-v] [-silent] [-no-nis] [-nis] [-no-cups] [-cups] 
[-no-iconv]
[-iconv] [-no-pch] [-pch] [-no-dbus] [-dbus] [-dbus-linked] 
[-no-gui]
[-no-separate-debug-info] [-no-mmx] [-no-3dnow] [-no-sse] [-no-sse2]
[-no-sse3] [-no-ssse3] [-no-sse4.1] [-no-sse4.2] [-no-avx] 
[-no-neon]
[-qtnamespace ] [-qtlibinfix ] 
[-separate-debug-info] [-armfpa]
[-no-optimized-qmake] [-optimized-qmake] [-no-xmlpatterns] 
[-xmlpatterns]
[-no-multimedia] [-multimedia] [-no-phonon] [-phonon] 
[-no-phonon-backend] [-phonon-backend]
[-no-media-backend] [-media-backend] [-no-audio-backend] 
[-audio-backend] 
[-no-openssl] [-openssl] [-openssl-linked]
[-no-gtkstyle] [-gtkstyle] [-no-svg] [-svg] [-no-webkit] [-webkit] 
[-webkit-debug]
[-no-javascript-jit] [-javascript-jit]
[-no-script] [-script] [-no-scripttools] [-scripttools] 
[-no-declarative] [-declarative] [-no-declarative-debug] 
[-declarative-debug]
[additional platform specific options (see below)]


Installation options:

-qpa [name] . This will enable the QPA build.
  QPA is a window system agnostic implementation of 
Qt.
  If [name] is given, sets the default QPA platform 
(e.g xcb, cocoa).

 These are optional, but you may specify install directories.

-prefix  .. This will install everything relative to 
 (default 
/home/baptistelafabregue/OTB/build/QT4/src/QT4/-L)

  * -prefix-install  Force a sandboxed "local" installation of
 Qt. This will install into
 /home/baptistelafabregue/OTB/build/QT4/src/QT4/-L, 
if this option is