English Below.
---------------------------------------
Bonjour,
Je suis nouvelle utilisatrice de OTB. Je voudrais installer OTB sur mon PC
tournant sur Windows 8 - 64 bits. Après avoir réaliser toutes les
opérations écrites dans
http://wiki.orfeo-toolbox.org/index.php/OTB_%26_Windows_OS, je coince à :

   - into a OSGEo4W shell, run the OTB.bat with the right arguments: full
   path to the OTB src directory, full path to the OTB build directory, full
   path to the place where install OTB.

Je vous ai mis en pièces jointes la sortie de la console (SortieCmd.txt),
le fichier .bat (OST.bat.txt) et la sortie log du CMake (CMakeError.log).
Je pense que le problème viens du compilateur C mais après des heures de
recherche sur internet, je n'ai rien trouvé. Y'a-t-il quelqu'un qui a eut
le même problème que moi ?
Cordialement
---------------------------------------
Hi,
I'm a new user of OTB. I would like to install OTB in my computer (Windows
8 - 64 bits). After doing all the previous step of the installation from
http://wiki.orfeo-toolbox.org/index.php/OTB_%26_Windows_OS, i'm stuck to :

   - into a OSGEo4W shell, run the OTB.bat with the right arguments: full
   path to the OTB src directory, full path to the OTB build directory, full
   path to the place where install OTB.

Please find in attachment the command launcher (SortieCmd.txt), the .bat
file (OST.bat.txt) and the .log of Cmake (CMakeError.log). I think the
problem come from C compiler but after several hours on the internet, I
find nothing usefull. Somebody have experienced the same issue as mine?
Best regards,
------------------------------------------
ADELINE Karine
3eme année doctorante ONERA - Toulouse
3rd year PhD student at ONERA - Toulouse

-- 
-- 
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/groups/opt_out.

       epsg_tr            gdal_polygonize    ps2pdf14
       esri2wkt           gdal_proximity     ps2pdfxx
       gcps2vec           gdal_retile        pyuic4
       gcps2wld           gdal_sieve         qgis-browser
       gdal2tiles         gpsbabelfe         qgis-dev-browser
       gdal2xyz           grass64            qgis-dev
       gdalchksum         gssetgs            qgis
       gdalident          make-bat-for-py    rgb2pct
       gdalimport         mkgraticule        saga_gui
       gdalmove           o-help             setup-test
       gdal_auth          o4w_env            setup
       gdal_calc          pct2rgb            swig
       gdal_edit          ps2pdf
       gdal_fillnodata    ps2pdf12
       gdal_merge         ps2pdf13

GDAL 1.10.1, released 2013/08/26

C:\OSGeo4W64>cd MyOTBDir

C:\OSGeo4W64\MyOTBDir>OST.bat C:\OSGeo4W64\MyOTBDir\src C:\OSGeo4W64\MyOTBDir\bu
ild C:\OSGeo4W64\MyOTBDir\install

C:\OSGeo4W64\MyOTBDir>call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\
Common7\Tools\vsvars32.bat"
Setting environment for using Microsoft Visual Studio 2010 x86 tools.

C:\OSGeo4W64\MyOTBDir>set /A ARGS_COUNT=0

C:\OSGeo4W64\MyOTBDir>for %A in (C:\OSGeo4W64\MyOTBDir\src C:\OSGeo4W64\MyOTBDir
\build C:\OSGeo4W64\MyOTBDir\install) do set /A ARGS_COUNT+=1

C:\OSGeo4W64\MyOTBDir>set /A ARGS_COUNT+=1

C:\OSGeo4W64\MyOTBDir>set /A ARGS_COUNT+=1

C:\OSGeo4W64\MyOTBDir>set /A ARGS_COUNT+=1

C:\OSGeo4W64\MyOTBDir>if 3 NEQ 3 (goto :Usage )

C:\OSGeo4W64\MyOTBDir>if NOT DEFINED OSGEO4W_ROOT (goto :NoOSGEO4W )

C:\OSGeo4W64\MyOTBDir>set src_dir=C:\OSGeo4W64\MyOTBDir\src

C:\OSGeo4W64\MyOTBDir>set build_dir=C:\OSGeo4W64\MyOTBDir\build

C:\OSGeo4W64\MyOTBDir>set otb_install_dir=C:\OSGeo4W64\MyOTBDir\install

C:\OSGeo4W64\MyOTBDir>set current_dir=C:\OSGeo4W64\MyOTBDir

C:\OSGeo4W64\MyOTBDir>set LANG=C

C:\OSGeo4W64\MyOTBDir>set ITK_AUTOLOAD_PATH=

C:\OSGeo4W64\MyOTBDir>set PYTHONPATH=

C:\OSGeo4W64\MyOTBDir>set PATH=C:\OSGEO4~1\apps\swigwin\;C:\Program Files (x86)\
Microsoft Visual Studio 10.0\Common7\IDE\;C:\Program Files (x86)\Microsoft Visua
l Studio 10.0\VC\BIN;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7
\Tools;c:\Windows\Microsoft.NET\Framework\v4.0.30319;c:\Windows\Microsoft.NET\Fr
amework\v3.5;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\VCPackages;C
:\OSGEO4~1\apps\Python27\Scripts;C:\OSGEO4~1\bin;C:\Windows\system32;C:\Windows;
C:\Windows\WBem;C:\OSGEO4~1\apps\msys\bin

C:\OSGeo4W64\MyOTBDir>cd C:\OSGeo4W64\MyOTBDir\build

C:\OSGeo4W64\MyOTBDir\build>"C:\Program Files (x86)\CMake 2.8\bin\cmake"
C:\OSGeo4W64\MyOTBDir\src       -G "Visual Studio 10"   -DBUILD_EXAMPLES:BOOL=ON
        -DOTB_WRAP_QT:BOOL=ON   -DOTB_WRAP_PYTHON:BOOL=ON       -DPYTHON_LIBRARY
:FILEPATH="C:\OSGEO4~1/apps/Python27/libs/python27.lib"         -DPYTHON_INCLUDE
_DIR:PATH="C:\OSGEO4~1/apps/Python27/include"   -DPYTHON_EXECUTABLE:FILEPATH="C:
\OSGEO4~1/bin/python.exe"         -DOTB_USE_OPENCV:BOOL=ON         -DCMAKE_INSTA
LL_PREFIX:PATH=C:\OSGeo4W64\MyOTBDir\install         -DCMAKE_CONFIGURATION_TYPES
:STRING=Release;RelWithDebInfo
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDet
ermineCompilerId.cmake:446 (execute_process):
  execute_process given COMMAND argument with no value.
Call Stack (most recent call first):
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompile
rId.cmake:48 (CMAKE_DETERMINE_COMPILER_ID_VENDOR)
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCCompil
er.cmake:131 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:23 (PROJECT)


-- The C compiler identification is unknown
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDet
ermineCompilerId.cmake:446 (execute_process):
  execute_process given COMMAND argument with no value.
Call Stack (most recent call first):
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompile
rId.cmake:48 (CMAKE_DETERMINE_COMPILER_ID_VENDOR)
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCXXComp
iler.cmake:127 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:23 (PROJECT)


-- The CXX compiler identification is unknown
-- Mercurial was not found.
-- Looking for sys/types.h
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCIn
formation.cmake:37 (get_filename_component):
  get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
  CMakeLists.txt:3 (PROJECT)


CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Looking for sys/types.h - not found
-- Looking for stdint.h
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCIn
formation.cmake:37 (get_filename_component):
  get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
  CMakeLists.txt:3 (PROJECT)


CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Looking for stdint.h - not found
-- Looking for stddef.h
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCIn
formation.cmake:37 (get_filename_component):
  get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
  CMakeLists.txt:3 (PROJECT)


CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Looking for stddef.h - not found
-- Check size of int
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCIn
formation.cmake:37 (get_filename_component):
  get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
  CMakeLists.txt:3 (PROJECT)


CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check size of int - failed
-- Check size of long
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCIn
formation.cmake:37 (get_filename_component):
  get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
  CMakeLists.txt:3 (PROJECT)


CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check size of long - failed
-- Check size of void*
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCIn
formation.cmake:37 (get_filename_component):
  get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
  CMakeLists.txt:3 (PROJECT)


CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check size of void* - failed
-- Check size of char
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCIn
formation.cmake:37 (get_filename_component):
  get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
  CMakeLists.txt:3 (PROJECT)


CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check size of char - failed
-- Check size of short
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCIn
formation.cmake:37 (get_filename_component):
  get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
  CMakeLists.txt:3 (PROJECT)


CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check size of short - failed
-- Check size of float
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCIn
formation.cmake:37 (get_filename_component):
  get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
  CMakeLists.txt:3 (PROJECT)


CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check size of float - failed
-- Check size of double
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCIn
formation.cmake:37 (get_filename_component):
  get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
  CMakeLists.txt:3 (PROJECT)


CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check size of double - failed
-- Looking for limits.h
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCIn
formation.cmake:37 (get_filename_component):
  get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
  CMakeLists.txt:3 (PROJECT)


CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Looking for limits.h - not found
-- Looking for unistd.h
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCIn
formation.cmake:37 (get_filename_component):
  get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
  CMakeLists.txt:3 (PROJECT)


CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Looking for unistd.h - not found
-- Looking for pthread.h
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCIn
formation.cmake:37 (get_filename_component):
  get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
  CMakeLists.txt:3 (PROJECT)


CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Looking for pthread.h - not found
-- Looking for include files sys/types.h, sys/prctl.h
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCIn
formation.cmake:37 (get_filename_component):
  get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
  CMakeLists.txt:3 (PROJECT)


CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Looking for include files sys/types.h, sys/prctl.h - not found
-- Check if the system is big endian
-- Searching 16 bit integer
-- Check size of unsigned short
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCIn
formation.cmake:37 (get_filename_component):
  get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
  CMakeLists.txt:3 (PROJECT)


CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check size of unsigned short - failed
-- Check size of unsigned int
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCIn
formation.cmake:37 (get_filename_component):
  get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
  CMakeLists.txt:3 (PROJECT)


CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check size of unsigned int - failed
-- Check size of unsigned long
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCIn
formation.cmake:37 (get_filename_component):
  get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
  CMakeLists.txt:3 (PROJECT)


CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check size of unsigned long - failed
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/TestBigE
ndian.cmake:44 (message):
  no suitable type found
Call Stack (most recent call first):
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeBackwardCompatib
ilityC.cmake:55 (TEST_BIG_ENDIAN)
  CMakeLists.txt:54 (INCLUDE)


-- Configuring incomplete, errors occurred!
See also "C:/OSGeo4W64/MyOTBDir/build/CMakeFiles/CMakeOutput.log".
See also "C:/OSGeo4W64/MyOTBDir/build/CMakeFiles/CMakeError.log".

C:\OSGeo4W64\MyOTBDir\build>"C:\Program Files (x86)\CMake 2.8\bin\cmake" --build
 . --target INSTALL --config Release
Microsoft (R) Build Engine, version 4.0.30319.17929
[Microsoft .NET Framework, Version 4.0.30319.18051]
Copyright (C) Microsoft Corporation. Tous droits réservés.

MSBUILD : error MSB1009: Le fichier projet n'existe pas.
Commutateur : INSTALL.vcxproj

C:\OSGeo4W64\MyOTBDir\build>cd C:\OSGeo4W64\MyOTBDir

C:\OSGeo4W64\MyOTBDir>goto :END

C:\OSGeo4W64\MyOTBDir>

Attachment: CMakeError.log
Description: Binary data

call "C:\Program Files (x86)\Microsoft Visual Studio 
10.0\Common7\Tools\vsvars32.bat"

set /A ARGS_COUNT=0    
for %%A in (%*) do set /A ARGS_COUNT+=1  
if %ARGS_COUNT% NEQ 3 (goto :Usage)

if NOT DEFINED OSGEO4W_ROOT (goto :NoOSGEO4W)
        
set src_dir=%1
set build_dir=%2
set otb_install_dir=%3
set current_dir=%CD%

set LANG=C
set ITK_AUTOLOAD_PATH=
set PYTHONPATH=
set PATH=%OSGEO4W_ROOT%\apps\swigwin\;%PATH%

cd %build_dir%

"C:\Program Files (x86)\CMake 2.8\bin\cmake"    %src_dir% ^
        -G "Visual Studio 10" ^
        -DBUILD_EXAMPLES:BOOL=ON ^
        -DOTB_WRAP_QT:BOOL=ON ^
        -DOTB_WRAP_PYTHON:BOOL=ON ^
        
-DPYTHON_LIBRARY:FILEPATH="%OSGEO4W_ROOT%/apps/Python27/libs/python27.lib" ^
        -DPYTHON_INCLUDE_DIR:PATH="%OSGEO4W_ROOT%/apps/Python27/include" ^
        -DPYTHON_EXECUTABLE:FILEPATH="%OSGEO4W_ROOT%/bin/python.exe" ^
        -DOTB_USE_OPENCV:BOOL=ON ^
        -DCMAKE_INSTALL_PREFIX:PATH=%otb_install_dir% ^
        -DCMAKE_CONFIGURATION_TYPES:STRING=Release;RelWithDebInfo
"C:\Program Files (x86)\CMake 2.8\bin\cmake" --build . --target INSTALL 
--config Release

cd %current_dir%

goto :END

:Usage
echo You need to provide 3 arguments to the script: 
echo   1. path to the source directory
echo   2. path to the build directory (an empty directory)
echo   3. path to the installation directory (an empty directory)
GOTO :END

:NoOSGEO4W
echo You need to run this script from an OSGeo4W shell
GOTO :END

:END

Reply via email to