Hello Back !

I finally resolved my problem by uninstalling Visual C++ 2012 and 
installing Visual C++ 2010 instead. And I installed OsGeo4W 32-bits instead 
of 64-bits. I don't know which one was the solution (or maybe both), but 
now it works.

regards,

Nicolas M

On Thursday, February 13, 2014 4:56:26 PM UTC+1, Nicolas Matton wrote:
>
>
> Hello,
>
> i'm trying to build OTB with Cmake 2.8.12.2 on windows 7 (64bits)  but i'm 
> having trouble after giving the Osgeo path.
>
> Here are the results' log  and the CmakeError.log :
>
>
> *Cmake log :*
>
> Repository status :
> Mercurial version is 2.9
> Repository revision is
> No files modified locally
> Disabling build shared lib option on windows like OS.
> Found OSGeo4W (C:/OSGeo4W64)
> Importing GDAL...
> Found GDAL: C:/OSGeo4W64/lib/gdal_i.lib
> GDAL includes : C:/OSGeo4W64/include
> GDAL library : C:/OSGeo4W64/lib/gdal_i.lib
> GDAL version is 1.10.1
> Testing if GDAL exposes tiff library symbols -- no
> Testing if GDAL exposes geotiff library symbols -- no
> Testing if GDAL exposes jpeg library symbols -- no
> Testing if GDAL has OGR -- no
> CMake Error at CMake/ImportGdal.cmake:166 (MESSAGE):
> OGR MESSAGE: Change Dir: C:/OTB/BINARRY/CMake/CMakeFiles/CMakeTmp
>
>
> Run Build Command:C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
> cmTryCompileExec3367003721.vcxproj /p:Configuration=Release
> /p:VisualStudioVersion=11.0
> Microsoft (R) Build Engine version 4.0.30319.17929
>
> [Microsoft .NET Framework, version 4.0.30319.17929]
>
> Copyright (C) Microsoft Corporation. All rights reserved.
>
>
>
> Build started 13/02/2014 16:47:03.
>
> Project
>
> "C:\OTB\BINARRY\CMake\CMakeFiles\CMakeTmp\cmTryCompileExec3367003721.vcxproj"
> on node 1 (default targets).
>
> PrepareForBuild:
>
> Creating directory "cmTryCompileExec3367003721.dir\Release\".
> Creating directory "C:\OTB\BINARRY\CMake\CMakeFiles\CMakeTmp\Release\".
>
> InitializeBuildStatus:
>
> Creating 
> "cmTryCompileExec3367003721.dir\Release\cmTryCompileExec3367003721.unsuccessfulbuild"
>  
> because "AlwaysCreate" was specified.
>
> ClCompile:
>
> C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\CL.exe /c 
> /IC:\OSGeo4W64\include /W3 /WX- /O2 /Ob2 /Oy- /D WIN32 /D _WINDOWS /D 
> NDEBUG /D "CMAKE_INTDIR=\"Release\"" /D _MBCS /Gm- /EHsc /MD /GS 
> /fp:precise /Zc:wchar_t /Zc:forScope /GR 
> /Fo"cmTryCompileExec3367003721.dir\Release\\" 
> /Fd"cmTryCompileExec3367003721.dir\Release\vc110.pdb" /Gd /TP /analyze- 
> /errorReport:queue C:\OTB\SOURCE\CMake\TestGDALHasOGR.cxx
> Microsoft (R) C/C++ Optimizing Compiler Version 17.00.50727.1 for x86
> Copyright (C) Microsoft Corporation. All rights reserved.
>
> cl /c /IC:\OSGeo4W64\include /W3 /WX- /O2 /Ob2 /Oy- /D WIN32 /D _WINDOWS 
> /D NDEBUG /D "CMAKE_INTDIR=\"Release\"" /D _MBCS /Gm- /EHsc /MD /GS 
> /fp:precise /Zc:wchar_t /Zc:forScope /GR 
> /Fo"cmTryCompileExec3367003721.dir\Release\\" 
> /Fd"cmTryCompileExec3367003721.dir\Release\vc110.pdb" /Gd /TP /analyze- 
> /errorReport:queue C:\OTB\SOURCE\CMake\TestGDALHasOGR.cxx
>
> TestGDALHasOGR.cxx
>
> Link:
>
> C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\link.exe 
> /ERRORREPORT:QUEUE 
> /OUT:"C:\OTB\BINARRY\CMake\CMakeFiles\CMakeTmp\Release\cmTryCompileExec3367003721.exe"
>  
> /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib 
> shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib 
> C:\OSGeo4W64\lib\gdal_i.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' 
> uiAccess='false'" /manifest:embed 
> /PDB:"C:/OTB/BINARRY/CMake/CMakeFiles/CMakeTmp/Release/cmTryCompileExec3367003721.pdb"
>  
> /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT 
> /IMPLIB:"C:/OTB/BINARRY/CMake/CMakeFiles/CMakeTmp/Release/cmTryCompileExec3367003721.lib"
>  
> /MACHINE:X86 /SAFESEH /machine:X86 
> cmTryCompileExec3367003721.dir\Release\TestGDALHasOGR.obj
>
> TestGDALHasOGR.obj : error LNK2019: unresolved external symbol "public:
> static class OGRDataSource * __cdecl OGRSFDriverRegistrar::Open(char const
> *,int,class OGRSFDriver * *)"
> (?Open@OGRSFDriverRegistrar@@SAPAVOGRDataSource@@PBDHPAPAVOGRSFDriver@@@Z)
> referenced in function _main
>
> [C:\OTB\BINARRY\CMake\CMakeFiles\CMakeTmp\cmTryCompileExec3367003721.vcxproj]
>
>
>
>
> C:\OTB\BINARRY\CMake\CMakeFiles\CMakeTmp\Release\cmTryCompileExec3367003721.exe
> : fatal error LNK1120: 1 unresolved externals
>
> [C:\OTB\BINARRY\CMake\CMakeFiles\CMakeTmp\cmTryCompileExec3367003721.vcxproj]
>
>
> Done Building Project
>
> "C:\OTB\BINARRY\CMake\CMakeFiles\CMakeTmp\cmTryCompileExec3367003721.vcxproj"
> (default targets) -- FAILED.
>
>
>
> Build FAILED.
>
>
>
>
>
> "C:\OTB\BINARRY\CMake\CMakeFiles\CMakeTmp\cmTryCompileExec3367003721.vcxproj"
> (default target) (1) ->
>
> (Link target) ->
>
>
> TestGDALHasOGR.obj : error LNK2019: unresolved external symbol "public: 
> static class OGRDataSource * __cdecl OGRSFDriverRegistrar::Open(char const 
> *,int,class OGRSFDriver * *)" 
> (?Open@OGRSFDriverRegistrar@@SAPAVOGRDataSource@@PBDHPAPAVOGRSFDriver@@@Z) 
> referenced in function _main 
> [C:\OTB\BINARRY\CMake\CMakeFiles\CMakeTmp\cmTryCompileExec3367003721.vcxproj]
> C:\OTB\BINARRY\CMake\CMakeFiles\CMakeTmp\Release\cmTryCompileExec3367003721.exe
>  
> : fatal error LNK1120: 1 unresolved externals 
> [C:\OTB\BINARRY\CMake\CMakeFiles\CMakeTmp\cmTryCompileExec3367003721.vcxproj]
>
>
>
> 0 Warning(s)
> 2 Error(s)
>
>
>
> Time Elapsed 00:00:00.70
>
> Call Stack (most recent call first):
> CMakeLists.txt:220 (INCLUDE)
>
>
>
>
> ----------------------------------------- 
>
> * CmakeError.log*
>
>
> Determining if the include file unistd.h exists failed with the following 
> output:
> Change Dir: C:/OTB/BINARRY/CMakeFiles/CMakeTmp
>
> Run Build 
> Command:C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe 
> cmTryCompileExec234582889.vcxproj /p:Configuration=Debug 
> /p:VisualStudioVersion=11.0
> Microsoft (R) Build Engine version 4.0.30319.17929
>
> [Microsoft .NET Framework, version 4.0.30319.17929]
>
> Copyright (C) Microsoft Corporation. All rights reserved.
>
>
>
> Build started 13/02/2014 16:46:10.
>
> Project 
> "C:\OTB\BINARRY\CMakeFiles\CMakeTmp\cmTryCompileExec234582889.vcxproj" on 
> node 1 (default targets).
>
> PrepareForBuild:
>
>   Creating directory "cmTryCompileExec234582889.dir\Debug\".
>
>   Creating directory "C:\OTB\BINARRY\CMakeFiles\CMakeTmp\Debug\".
>
> InitializeBuildStatus:
>
>   Creating 
> "cmTryCompileExec234582889.dir\Debug\cmTryCompileExec234582889.unsuccessfulbuild"
>  
> because "AlwaysCreate" was specified.
>
> ClCompile:
>
>   C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\CL.exe /c /Zi 
> /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D 
> "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise 
> /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec234582889.dir\Debug\\" 
> /Fd"cmTryCompileExec234582889.dir\Debug\vc110.pdb" /Gd /TC /analyze- 
> /errorReport:queue CheckIncludeFile.c
>
>   Microsoft (R) C/C++ Optimizing Compiler Version 17.00.50727.1 for x86
>
>   Copyright (C) Microsoft Corporation.  All rights reserved.
>
>   
>
>   cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D 
> "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise 
> /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec234582889.dir\Debug\\" 
> /Fd"cmTryCompileExec234582889.dir\Debug\vc110.pdb" /Gd /TC /analyze- 
> /errorReport:queue CheckIncludeFile.c
>
>   
>
>   CheckIncludeFile.c
>
> CheckIncludeFile.c(1): fatal error C1083: Cannot open include file: 
> 'unistd.h': No such file or directory 
> [C:\OTB\BINARRY\CMakeFiles\CMakeTmp\cmTryCompileExec234582889.vcxproj]
>
> Done Building Project 
> "C:\OTB\BINARRY\CMakeFiles\CMakeTmp\cmTryCompileExec234582889.vcxproj" 
> (default targets) -- FAILED.
>
>
>
> Build FAILED.
>
>
>
> "C:\OTB\BINARRY\CMakeFiles\CMakeTmp\cmTryCompileExec234582889.vcxproj" 
> (default target) (1) ->
>
> (ClCompile target) -> 
>
>   CheckIncludeFile.c(1): fatal error C1083: Cannot open include file: 
> 'unistd.h': No such file or directory 
> [C:\OTB\BINARRY\CMakeFiles\CMakeTmp\cmTryCompileExec234582889.vcxproj]
>
>
>
>     0 Warning(s)
>
>     1 Error(s)
>
>
>
> Time Elapsed 00:00:00.19
>
>
>
> Determining if the include file pthread.h exists failed with the following 
> output:
> Change Dir: C:/OTB/BINARRY/CMakeFiles/CMakeTmp
>
> Run Build 
> Command:C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe 
> cmTryCompileExec158058347.vcxproj /p:Configuration=Debug 
> /p:VisualStudioVersion=11.0
> Microsoft (R) Build Engine version 4.0.30319.17929
>
> [Microsoft .NET Framework, version 4.0.30319.17929]
>
> Copyright (C) Microsoft Corporation. All rights reserved.
>
>
>
> Build started 13/02/2014 16:46:10.
>
> Project 
> "C:\OTB\BINARRY\CMakeFiles\CMakeTmp\cmTryCompileExec158058347.vcxproj" on 
> node 1 (default targets).
>
> PrepareForBuild:
>
>   Creating directory "cmTryCompileExec158058347.dir\Debug\".
>
>   Creating directory "C:\OTB\BINARRY\CMakeFiles\CMakeTmp\Debug\".
>
> InitializeBuildStatus:
>
>   Creating 
> "cmTryCompileExec158058347.dir\Debug\cmTryCompileExec158058347.unsuccessfulbuild"
>  
> because "AlwaysCreate" was specified.
>
> ClCompile:
>
>   C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\CL.exe /c /Zi 
> /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D 
> "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise 
> /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec158058347.dir\Debug\\" 
> /Fd"cmTryCompileExec158058347.dir\Debug\vc110.pdb" /Gd /TC /analyze- 
> /errorReport:queue CheckIncludeFile.c
>
>   Microsoft (R) C/C++ Optimizing Compiler Version 17.00.50727.1 for x86
>
>   Copyright (C) Microsoft Corporation.  All rights reserved.
>
>   
>
>   cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D 
> "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise 
> /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec158058347.dir\Debug\\" 
> /Fd"cmTryCompileExec158058347.dir\Debug\vc110.pdb" /Gd /TC /analyze- 
> /errorReport:queue CheckIncludeFile.c
>
>   
>
>   CheckIncludeFile.c
>
> CheckIncludeFile.c(1): fatal error C1083: Cannot open include file: 
> 'pthread.h': No such file or directory 
> [C:\OTB\BINARRY\CMakeFiles\CMakeTmp\cmTryCompileExec158058347.vcxproj]
>
> Done Building Project 
> "C:\OTB\BINARRY\CMakeFiles\CMakeTmp\cmTryCompileExec158058347.vcxproj" 
> (default targets) -- FAILED.
>
>
>
> Build FAILED.
>
>
>
> "C:\OTB\BINARRY\CMakeFiles\CMakeTmp\cmTryCompileExec158058347.vcxproj" 
> (default target) (1) ->
>
> (ClCompile target) -> 
>
>   CheckIncludeFile.c(1): fatal error C1083: Cannot open include file: 
> 'pthread.h': No such file or directory 
> [C:\OTB\BINARRY\CMakeFiles\CMakeTmp\cmTryCompileExec158058347.vcxproj]
>
>
>
>     0 Warning(s)
>
>     1 Error(s)
>
>
>
> Time Elapsed 00:00:00.19
>
>
>
> Determining if files sys/types.h;sys/prctl.h exist failed with the 
> following output:
> Change Dir: C:/OTB/BINARRY/CMakeFiles/CMakeTmp
>
> Run Build 
> Command:C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe 
> cmTryCompileExec3262286964.vcxproj /p:Configuration=Debug 
> /p:VisualStudioVersion=11.0
> Microsoft (R) Build Engine version 4.0.30319.17929
>
> [Microsoft .NET Framework, version 4.0.30319.17929]
>
> Copyright (C) Microsoft Corporation. All rights reserved.
>
>
>
> Build started 13/02/2014 16:46:10.
>
> Project 
> "C:\OTB\BINARRY\CMakeFiles\CMakeTmp\cmTryCompileExec3262286964.vcxproj" on 
> node 1 (default targets).
>
> PrepareForBuild:
>
>   Creating directory "cmTryCompileExec3262286964.dir\Debug\".
>
>   Creating directory "C:\OTB\BINARRY\CMakeFiles\CMakeTmp\Debug\".
>
> InitializeBuildStatus:
>
>   Creating 
> "cmTryCompileExec3262286964.dir\Debug\cmTryCompileExec3262286964.unsuccessfulbuild"
>  
> because "AlwaysCreate" was specified.
>
> ClCompile:
>
>   C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\CL.exe /c /Zi 
> /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D 
> "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise 
> /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec3262286964.dir\Debug\\" 
> /Fd"cmTryCompileExec3262286964.dir\Debug\vc110.pdb" /Gd /TC /analyze- 
> /errorReport:queue CheckIncludeFiles.c
>
>   Microsoft (R) C/C++ Optimizing Compiler Version 17.00.50727.1 for x86
>
>   Copyright (C) Microsoft Corporation.  All rights reserved.
>
>   
>
>   CheckIncludeFiles.c
>
>   cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D 
> "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise 
> /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec3262286964.dir\Debug\\" 
> /Fd"cmTryCompileExec3262286964.dir\Debug\vc110.pdb" /Gd /TC /analyze- 
> /errorReport:queue CheckIncludeFiles.c
>
>   
>
> CheckIncludeFiles.c(3): fatal error C1083: Cannot open include file: 
> 'sys/prctl.h': No such file or directory 
> [C:\OTB\BINARRY\CMakeFiles\CMakeTmp\cmTryCompileExec3262286964.vcxproj]
>
> Done Building Project 
> "C:\OTB\BINARRY\CMakeFiles\CMakeTmp\cmTryCompileExec3262286964.vcxproj" 
> (default targets) -- FAILED.
>
>
>
> Build FAILED.
>
>
>
> "C:\OTB\BINARRY\CMakeFiles\CMakeTmp\cmTryCompileExec3262286964.vcxproj" 
> (default target) (1) ->
>
> (ClCompile target) -> 
>
>   CheckIncludeFiles.c(3): fatal error C1083: Cannot open include file: 
> 'sys/prctl.h': No such file or directory 
> [C:\OTB\BINARRY\CMakeFiles\CMakeTmp\cmTryCompileExec3262286964.vcxproj]
>
>
>
>     0 Warning(s)
>
>     1 Error(s)
>
>
>
> Time Elapsed 00:00:00.19
>
>
> Source:
> /* */
> #include <sys/types.h>
> #include <sys/prctl.h>
>
>
> int main(){return 0;}
>
> Determining if the system is big endian passed with the following output:
> Change Dir: C:/OTB/BINARRY/CMakeFiles/CMakeTmp
>
> Run Build 
> Command:C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe 
> cmTryCompileExec923453700.vcxproj /p:Configuration=Debug 
> /p:VisualStudioVersion=11.0
> Microsoft (R) Build Engine version 4.0.30319.17929
>
> [Microsoft .NET Framework, version 4.0.30319.17929]
>
> Copyright (C) Microsoft Corporation. All rights reserved.
>
>
>
> Build started 13/02/2014 16:46:11.
>
> Project 
> "C:\OTB\BINARRY\CMakeFiles\CMakeTmp\cmTryCompileExec923453700.vcxproj" on 
> node 1 (default targets).
>
> PrepareForBuild:
>
>   Creating directory "cmTryCompileExec923453700.dir\Debug\".
>
>   Creating directory "C:\OTB\BINARRY\CMakeFiles\CMakeTmp\Debug\".
>
> InitializeBuildStatus:
>
>   Creating 
> "cmTryCompileExec923453700.dir\Debug\cmTryCompileExec923453700.unsuccessfulbuild"
>  
> because "AlwaysCreate" was specified.
>
> ClCompile:
>
>   C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\CL.exe /c /Zi 
> /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D 
> "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise 
> /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec923453700.dir\Debug\\" 
> /Fd"cmTryCompileExec923453700.dir\Debug\vc110.pdb" /Gd /TC /analyze- 
> /errorReport:queue TestEndianess.c
>
>   Microsoft (R) C/C++ Optimizing Compiler Version 17.00.50727.1 for x86
>
>   Copyright (C) Microsoft Corporation.  All rights reserved.
>
>   
>
>   cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D 
> "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise 
> /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec923453700.dir\Debug\\" 
> /Fd"cmTryCompileExec923453700.dir\Debug\vc110.pdb" /Gd /TC /analyze- 
> /errorReport:queue TestEndianess.c
>
>   
>
>   TestEndianess.c
>
> Link:
>
>   C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\link.exe 
> /ERRORREPORT:QUEUE 
> /OUT:"C:\OTB\BINARRY\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec923453700.exe" 
> /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib 
> shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib 
> /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed 
> /DEBUG 
> /PDB:"C:/OTB/BINARRY/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec923453700.pdb" 
> /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT 
> /IMPLIB:"C:/OTB/BINARRY/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec923453700.lib"
>  
> /MACHINE:X86 /SAFESEH  /machine:X86 /debug 
> cmTryCompileExec923453700.dir\Debug\TestEndianess.obj
>
>   cmTryCompileExec923453700.vcxproj -> 
> C:\OTB\BINARRY\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec923453700.exe
>
> FinalizeBuildStatus:
>
>   Deleting file 
> "cmTryCompileExec923453700.dir\Debug\cmTryCompileExec923453700.unsuccessfulbuild".
>
>   Touching 
> "cmTryCompileExec923453700.dir\Debug\cmTryCompileExec923453700.lastbuildstate".
>
> Done Building Project 
> "C:\OTB\BINARRY\CMakeFiles\CMakeTmp\cmTryCompileExec923453700.vcxproj" 
> (default targets).
>
>
>
> Build succeeded.
>
>     0 Warning(s)
>
>     0 Error(s)
>
>
>
> Time Elapsed 00:00:00.45
>
>
> TestEndianess.c:
> /* A 16 bit integer is required. */
> typedef unsigned short cmakeint16;
>
> /* On a little endian machine, these 16bit ints will give "THIS IS LITTLE 
> ENDIAN."
>    On a big endian machine the characters will be exchanged pairwise. */
> const cmakeint16 info_little[] =  {0x4854, 0x5349, 0x4920, 0x2053, 0x494c, 
> 0x5454, 0x454c, 0x4520, 0x444e, 0x4149, 0x2e4e, 0x0000};
>
> /* on a big endian machine, these 16bit ints will give "THIS IS BIG 
> ENDIAN."
>    On a little endian machine the characters will be exchanged pairwise. */
> const cmakeint16 info_big[] =     {0x5448, 0x4953, 0x2049, 0x5320, 0x4249, 
> 0x4720, 0x454e, 0x4449, 0x414e, 0x2e2e, 0x0000};
>
> #ifdef __CLASSIC_C__
> int main(argc, argv) int argc; char *argv[];
> #else
> int main(int argc, char *argv[])
> #endif
> {
>   int require = 0;
>   require += info_little[argc];
>   require += info_big[argc];
>   (void)argv;
>   return require;
> }
>
>
>
>
> --------------------------------------------
>
>
>
> It seems that some .h file are missing like unistd.h, pthread.h and 
> sys/prctl.h .
> Where does I'm supposed to find these files ? 
> Or maybe the problem comes from somewhere else... ? (like ORG ? I've 
> installed GDAL by Osgeo, so I suppose that ORG is installed too)
>
>
>
> Many thanks in advance !
>
> Best regards,
>
> Nicolas M
>
>
>
>
>

-- 
-- 
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.

Reply via email to