When I attempt to install OTB 64-bit on Windows 7, I get cmake fatal errors
C1083 Cannot open include file: unistd.h, pthread.h, and sys/prctl.h.
Below is the output from CMakeError.log
Determining if the include file unistd.h exists failed with the following
output:
Change Dir: D:/ARA/WALDO/ThirdParty/OTB-4.4.0/build/CMakeFiles/CMakeTmp
Run Build Command:"C:/Program Files (x86)/MSBuild/12.0/bin/MSBuild.exe"
"cmTryCompileExec3533974698.vcxproj" "/p:Configuration=Debug"
"/p:VisualStudioVersion=12.0"
Microsoft (R) Build Engine version 12.0.30501.0
[Microsoft .NET Framework, version 4.0.30319.18444]
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 4/21/2015 1:35:51 PM.
Project
"D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\cmTryCompileExec3533974698.vcxproj"
on node 1 (default targets).
PrepareForBuild:
Creating directory "cmTryCompileExec3533974698.dir\Debug\".
Creating directory
"D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\Debug\".
Creating directory
"cmTryCompileExec3533974698.dir\Debug\cmTryCom.9BBDFDD7.tlog\".
InitializeBuildStatus:
Creating
"cmTryCompileExec3533974698.dir\Debug\cmTryCom.9BBDFDD7.tlog\unsuccessfulbuild"
because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio 12.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"cmTryCompileExec3533974698.dir\Debug\\"
/Fd"cmTryCompileExec3533974698.dir\Debug\vc120.pdb" /Gd /TC /analyze-
/errorReport:queue
"D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c"
Microsoft (R) C/C++ Optimizing Compiler Version 18.00.30501 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"cmTryCompileExec3533974698.dir\Debug\\"
/Fd"cmTryCompileExec3533974698.dir\Debug\vc120.pdb" /Gd /TC /analyze-
/errorReport:queue
"D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c"
CheckIncludeFile.c
D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1):
fatal error C1083: Cannot open include file: 'unistd.h': No such file or
directory
[D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\cmTryCompileExec3533974698.vcxproj]
Done Building Project
"D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\cmTryCompileExec3533974698.vcxproj"
(default targets) -- FAILED.
Build FAILED.
"D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\cmTryCompileExec3533974698.vcxproj"
(default target) (1) ->
(ClCompile target) ->
D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1):
fatal error C1083: Cannot open include file: 'unistd.h': No such file or
directory
[D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\cmTryCompileExec3533974698.vcxproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.28
Determining if the include file pthread.h exists failed with the following
output:
Change Dir: D:/ARA/WALDO/ThirdParty/OTB-4.4.0/build/CMakeFiles/CMakeTmp
Run Build Command:"C:/Program Files (x86)/MSBuild/12.0/bin/MSBuild.exe"
"cmTryCompileExec282634998.vcxproj" "/p:Configuration=Debug"
"/p:VisualStudioVersion=12.0"
Microsoft (R) Build Engine version 12.0.30501.0
[Microsoft .NET Framework, version 4.0.30319.18444]
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 4/21/2015 1:35:51 PM.
Project
"D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\cmTryCompileExec282634998.vcxproj"
on node 1 (default targets).
PrepareForBuild:
Creating directory "cmTryCompileExec282634998.dir\Debug\".
Creating directory
"D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\Debug\".
Creating directory
"cmTryCompileExec282634998.dir\Debug\cmTryCom.559057AB.tlog\".
InitializeBuildStatus:
Creating
"cmTryCompileExec282634998.dir\Debug\cmTryCom.559057AB.tlog\unsuccessfulbuild"
because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio 12.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"cmTryCompileExec282634998.dir\Debug\\"
/Fd"cmTryCompileExec282634998.dir\Debug\vc120.pdb" /Gd /TC /analyze-
/errorReport:queue
"D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c"
Microsoft (R) C/C++ Optimizing Compiler Version 18.00.30501 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"cmTryCompileExec282634998.dir\Debug\\"
/Fd"cmTryCompileExec282634998.dir\Debug\vc120.pdb" /Gd /TC /analyze-
/errorReport:queue
"D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c"
CheckIncludeFile.c
D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1):
fatal error C1083: Cannot open include file: 'pthread.h': No such file or
directory
[D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\cmTryCompileExec282634998.vcxproj]
Done Building Project
"D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\cmTryCompileExec282634998.vcxproj"
(default targets) -- FAILED.
Build FAILED.
"D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\cmTryCompileExec282634998.vcxproj"
(default target) (1) ->
(ClCompile target) ->
D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1):
fatal error C1083: Cannot open include file: 'pthread.h': No such file or
directory
[D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\cmTryCompileExec282634998.vcxproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.29
Determining if files sys/types.h;sys/prctl.h exist failed with the
following output:
Change Dir: D:/ARA/WALDO/ThirdParty/OTB-4.4.0/build/CMakeFiles/CMakeTmp
Run Build Command:"C:/Program Files (x86)/MSBuild/12.0/bin/MSBuild.exe"
"cmTryCompileExec154310054.vcxproj" "/p:Configuration=Debug"
"/p:VisualStudioVersion=12.0"
Microsoft (R) Build Engine version 12.0.30501.0
[Microsoft .NET Framework, version 4.0.30319.18444]
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 4/21/2015 1:35:52 PM.
Project
"D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\cmTryCompileExec154310054.vcxproj"
on node 1 (default targets).
PrepareForBuild:
Creating directory "cmTryCompileExec154310054.dir\Debug\".
Creating directory
"D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\Debug\".
Creating directory
"cmTryCompileExec154310054.dir\Debug\cmTryCom.811433CD.tlog\".
InitializeBuildStatus:
Creating
"cmTryCompileExec154310054.dir\Debug\cmTryCom.811433CD.tlog\unsuccessfulbuild"
because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio 12.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"cmTryCompileExec154310054.dir\Debug\\"
/Fd"cmTryCompileExec154310054.dir\Debug\vc120.pdb" /Gd /TC /analyze-
/errorReport:queue
"D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\CheckIncludeFiles.c"
Microsoft (R) C/C++ Optimizing Compiler Version 18.00.30501 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"cmTryCompileExec154310054.dir\Debug\\"
/Fd"cmTryCompileExec154310054.dir\Debug\vc120.pdb" /Gd /TC /analyze-
/errorReport:queue
"D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\CheckIncludeFiles.c"
CheckIncludeFiles.c
D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\CheckIncludeFiles.c(3):
fatal error C1083: Cannot open include file: 'sys/prctl.h': No such file or
directory
[D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\cmTryCompileExec154310054.vcxproj]
Done Building Project
"D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\cmTryCompileExec154310054.vcxproj"
(default targets) -- FAILED.
Build FAILED.
"D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\cmTryCompileExec154310054.vcxproj"
(default target) (1) ->
(ClCompile target) ->
D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\CheckIncludeFiles.c(3):
fatal error C1083: Cannot open include file: 'sys/prctl.h': No such file or
directory
[D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\cmTryCompileExec154310054.vcxproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.28
Source:
/* */
#include <sys/types.h>
#include <sys/prctl.h>
int main(void){return 0;}
Determining if the system is big endian passed with the following output:
Change Dir: D:/ARA/WALDO/ThirdParty/OTB-4.4.0/build/CMakeFiles/CMakeTmp
Run Build Command:"C:/Program Files (x86)/MSBuild/12.0/bin/MSBuild.exe"
"cmTryCompileExec3678891413.vcxproj" "/p:Configuration=Debug"
"/p:VisualStudioVersion=12.0"
Microsoft (R) Build Engine version 12.0.30501.0
[Microsoft .NET Framework, version 4.0.30319.18444]
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 4/21/2015 1:35:54 PM.
Project
"D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\cmTryCompileExec3678891413.vcxproj"
on node 1 (default targets).
PrepareForBuild:
Creating directory "cmTryCompileExec3678891413.dir\Debug\".
Creating directory
"D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\Debug\".
Creating directory
"cmTryCompileExec3678891413.dir\Debug\cmTryCom.915D84C5.tlog\".
InitializeBuildStatus:
Creating
"cmTryCompileExec3678891413.dir\Debug\cmTryCom.915D84C5.tlog\unsuccessfulbuild"
because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio 12.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"cmTryCompileExec3678891413.dir\Debug\\"
/Fd"cmTryCompileExec3678891413.dir\Debug\vc120.pdb" /Gd /TC /analyze-
/errorReport:queue
"D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\TestEndianess.c"
Microsoft (R) C/C++ Optimizing Compiler Version 18.00.30501 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"cmTryCompileExec3678891413.dir\Debug\\"
/Fd"cmTryCompileExec3678891413.dir\Debug\vc120.pdb" /Gd /TC /analyze-
/errorReport:queue
"D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\TestEndianess.c"
TestEndianess.c
Link:
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\link.exe
/ERRORREPORT:QUEUE
/OUT:"D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec3678891413.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:"D:/ARA/WALDO/ThirdParty/OTB-4.4.0/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec3678891413.pdb"
/SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT
/IMPLIB:"D:/ARA/WALDO/ThirdParty/OTB-4.4.0/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec3678891413.lib"
/MACHINE:X86 /SAFESEH /machine:X86 /debug
cmTryCompileExec3678891413.dir\Debug\TestEndianess.obj
cmTryCompileExec3678891413.vcxproj ->
D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec3678891413.exe
FinalizeBuildStatus:
Deleting file
"cmTryCompileExec3678891413.dir\Debug\cmTryCom.915D84C5.tlog\unsuccessfulbuild".
Touching
"cmTryCompileExec3678891413.dir\Debug\cmTryCom.915D84C5.tlog\cmTryCompileExec3678891413.lastbuildstate".
Done Building Project
"D:\ARA\WALDO\ThirdParty\OTB-4.4.0\build\CMakeFiles\CMakeTmp\cmTryCompileExec3678891413.vcxproj"
(default targets).
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:00.48
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;
}
--
--
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.