Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 2016-08-29 13:57:49 -0600

Nbb gravatar image

Cmake cannot configure using 64 bit Visual Studio

I am setting up OpenCV on a different computer and I come across a problem with Cmake giving me an error if i select VS community 2015 Win 64 as my compiler.

Everything seems okay when I Cmake and install VTK using the 64 bit VS so I was wondering if I will encounter any future problems if I compile and install OpenCV with VTK support using the 32 bit option. Will my OpenCV be slower ?

Here is the error that I have from CMake

Determining if the function fseeko exists failed with the following output:
Change Dir: C:/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_8f9f9.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.25420.1

Copyright (C) Microsoft Corporation. All rights reserved.



Build started 30/8/2016 2:43:46 AM.

Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_8f9f9.vcxproj" on node 1 (default targets).

PrepareForBuild:

  Creating directory "cmTC_8f9f9.dir\Debug\".

  Creating directory "C:\opencv\build\CMakeFiles\CMakeTmp\Debug\".

  Creating directory "cmTC_8f9f9.dir\Debug\cmTC_8f9f9.tlog\".

InitializeBuildStatus:

  Creating "cmTC_8f9f9.dir\Debug\cmTC_8f9f9.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D CHECK_FUNCTION_EXISTS=fseeko /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_8f9f9.dir\Debug\\" /Fd"cmTC_8f9f9.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj "C:\Program Files\CMake\share\cmake-3.6\Modules\CheckFunctionExists.c"

  Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24213.1 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.



  cl /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D CHECK_FUNCTION_EXISTS=fseeko /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_8f9f9.dir\Debug\\" /Fd"cmTC_8f9f9.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj "C:\Program Files\CMake\share\cmake-3.6\Modules\CheckFunctionExists.c"



  CheckFunctionExists.c

Link:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\opencv\build\CMakeFiles\CMakeTmp\Debug\cmTC_8f9f9.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:/opencv/build/CMakeFiles/CMakeTmp/Debug/cmTC_8f9f9.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/opencv/build/CMakeFiles/CMakeTmp/Debug/cmTC_8f9f9.lib" /MACHINE:X64  /machine:x64 cmTC_8f9f9.dir\Debug\CheckFunctionExists.obj

CheckFunctionExists.obj : error LNK2019: unresolved external symbol fseeko referenced in function main [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_8f9f9.vcxproj]

C:\opencv\build\CMakeFiles\CMakeTmp\Debug\cmTC_8f9f9.exe : fatal error LNK1120: 1 unresolved externals [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_8f9f9.vcxproj]

Done Building Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_8f9f9.vcxproj" (default targets) -- FAILED.



Build FAILED.



"C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_8f9f9.vcxproj" (default target) (1) ->

(Link target) -> 

  CheckFunctionExists.obj : error LNK2019: unresolved external symbol fseeko referenced in function main [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_8f9f9.vcxproj]

  C:\opencv\build\CMakeFiles\CMakeTmp\Debug\cmTC_8f9f9.exe : fatal error LNK1120: 1 unresolved externals [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_8f9f9.vcxproj]



    0 Warning(s)

    2 Error(s)



Time Elapsed 00:00:00.52



Determining if the include file unistd.h exists failed with the following output:
Change Dir: C:/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_f10be.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.25420.1

Copyright (C) Microsoft Corporation. All rights reserved.



Build started 30/8/2016 2:43:46 AM.

Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_f10be.vcxproj" on node 1 (default targets).

PrepareForBuild:

  Creating directory "cmTC_f10be.dir\Debug\".

  Creating directory "C:\opencv\build\CMakeFiles\CMakeTmp\Debug\".

  Creating directory "cmTC_f10be.dir\Debug\cmTC_f10be.tlog\".

InitializeBuildStatus:

  Creating "cmTC_f10be.dir\Debug\cmTC_f10be.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_f10be.dir\Debug\\" /Fd"cmTC_f10be.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj C:\opencv\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c

  Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24213.1 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.



  cl /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_f10be.dir\Debug\\" /Fd"cmTC_f10be.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj C:\opencv\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c



  CheckIncludeFile.c

C:\opencv\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_f10be.vcxproj]

Done Building Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_f10be.vcxproj" (default targets) -- FAILED.



Build FAILED.



"C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_f10be.vcxproj" (default target) (1) ->

(ClCompile target) -> 

  C:\opencv\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_f10be.vcxproj]



    0 Warning(s)

    1 Error(s)



Time Elapsed 00:00:00.45



Determining size of off64_t failed with the following output:
Change Dir: C:/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_91ccd.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.25420.1

Copyright (C) Microsoft Corporation. All rights reserved.



Build started 30/8/2016 2:43:47 AM.

Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj" on node 1 (default targets).

PrepareForBuild:

  Creating directory "cmTC_91ccd.dir\Debug\".

  Creating directory "C:\opencv\build\CMakeFiles\CMakeTmp\Debug\".

  Creating directory "cmTC_91ccd.dir\Debug\cmTC_91ccd.tlog\".

InitializeBuildStatus:

  Creating "cmTC_91ccd.dir\Debug\cmTC_91ccd.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_91ccd.dir\Debug\\" /Fd"cmTC_91ccd.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c

  Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24213.1 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.



  cl /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_91ccd.dir\Debug\\" /Fd"cmTC_91ccd.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c



  OFF64_T.c

C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c(19): error C2065: 'off64_t': undeclared identifier [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj]

C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c(20): error C2065: 'off64_t': undeclared identifier [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj]

C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c(21): error C2065: 'off64_t': undeclared identifier [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj]

C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c(22): error C2065: 'off64_t': undeclared identifier [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj]

C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c(23): error C2065: 'off64_t': undeclared identifier [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj]

Done Building Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj" (default targets) -- FAILED.



Build FAILED.



"C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj" (default target) (1) ->

(ClCompile target) -> 

  C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c(19): error C2065: 'off64_t': undeclared identifier [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj]

  C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c(20): error C2065: 'off64_t': undeclared identifier [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj]

  C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c(21): error C2065: 'off64_t': undeclared identifier [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj]

  C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c(22): error C2065: 'off64_t': undeclared identifier [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj]

  C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c(23): error C2065: 'off64_t': undeclared identifier [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj]



    0 Warning(s)

    5 Error(s)



Time Elapsed 00:00:00.40


C:/opencv/build/CMakeFiles/CheckTypeSize/OFF64_T.c:
#include <sys/types.h>
#include <stdint.h>
#include <stddef.h>


#undef KEY
#if defined(__i386)
# define KEY '_','_','i','3','8','6'
#elif defined(__x86_64)
# define KEY '_','_','x','8','6','_','6','4'
#elif defined(__ppc__)
# define KEY '_','_','p','p','c','_','_'
#elif defined(__ppc64__)
# define KEY '_','_','p','p','c','6','4','_','_'
#endif

#define SIZE (sizeof(off64_t))
char info_size[] =  {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
  ('0' + ((SIZE / 10000)%10)),
  ('0' + ((SIZE / 1000)%10)),
  ('0' + ((SIZE / 100)%10)),
  ('0' + ((SIZE / 10)%10)),
  ('0' +  (SIZE    % 10)),
  ']',
#ifdef KEY
  ' ','k','e','y','[', KEY, ']',
#endif
  '\0'};

#ifdef __CLASSIC_C__
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
  int require = 0;
  require += info_size[argc];
  (void)argv;
  return require;
}


Determining if the function jbg_newlen exists failed with the following output:
Change Dir: C:/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_37858.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.25420.1

Copyright (C) Microsoft Corporation. All rights reserved.



Build started 30/8/2016 2:43:50 AM.

Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_37858.vcxproj" on node 1 (default targets).

PrepareForBuild:

  Creating directory "cmTC_37858.dir\Debug\".

  Creating directory "C:\opencv\build\CMakeFiles\CMakeTmp\Debug\".

  Creating directory "cmTC_37858.dir\Debug\cmTC_37858.tlog\".

InitializeBuildStatus:

  Creating "cmTC_37858.dir\Debug\cmTC_37858.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D CHECK_FUNCTION_EXISTS=jbg_newlen /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_37858.dir\Debug\\" /Fd"cmTC_37858.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj "C:\Program Files\CMake\share\cmake-3.6\Modules\CheckFunctionExists.c"

  Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24213.1 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.



  cl /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D CHECK_FUNCTION_EXISTS=jbg_newlen /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_37858.dir\Debug\\" /Fd"cmTC_37858.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj "C:\Program Files\CMake\share\cmake-3.6\Modules\CheckFunctionExists.c"



  CheckFunctionExists.c

Link:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\opencv\build\CMakeFiles\CMakeTmp\Debug\cmTC_37858.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:/opencv/build/CMakeFiles/CMakeTmp/Debug/cmTC_37858.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/opencv/build/CMakeFiles/CMakeTmp/Debug/cmTC_37858.lib" /MACHINE:X64  /machine:x64 cmTC_37858.dir\Debug\CheckFunctionExists.obj

CheckFunctionExists.obj : error LNK2019: unresolved external symbol jbg_newlen referenced in function main [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_37858.vcxproj]

C:\opencv\build\CMakeFiles\CMakeTmp\Debug\cmTC_37858.exe : fatal error LNK1120: 1 unresolved externals [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_37858.vcxproj]

Done Building Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_37858.vcxproj" (default targets) -- FAILED.



Build FAILED.



"C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_37858.vcxproj" (default target) (1) ->

(Link target) -> 

  CheckFunctionExists.obj : error LNK2019: unresolved external symbol jbg_newlen referenced in function main [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_37858.vcxproj]

  C:\opencv\build\CMakeFiles\CMakeTmp\Debug\cmTC_37858.exe : fatal error LNK1120: 1 unresolved externals [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_37858.vcxproj]



    0 Warning(s)

    2 Error(s)



Time Elapsed 00:00:00.51



Determining if the function mmap exists failed with the following output:
Change Dir: C:/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_05771.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.25420.1

Copyright (C) Microsoft Corporation. All rights reserved.



Build started 30/8/2016 2:43:50 AM.

Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_05771.vcxproj" on node 1 (default targets).

PrepareForBuild:

  Creating directory "cmTC_05771.dir\Debug\".

  Creating directory "C:\opencv\build\CMakeFiles\CMakeTmp\Debug\".

  Creating directory "cmTC_05771.dir\Debug\cmTC_05771.tlog\".

InitializeBuildStatus:

  Creating "cmTC_05771.dir\Debug\cmTC_05771.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D CHECK_FUNCTION_EXISTS=mmap /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_05771.dir\Debug\\" /Fd"cmTC_05771.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj "C:\Program Files\CMake\share\cmake-3.6\Modules\CheckFunctionExists.c"

  Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24213.1 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.



  cl /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D CHECK_FUNCTION_EXISTS=mmap /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_05771.dir\Debug\\" /Fd"cmTC_05771.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj "C:\Program Files\CMake\share\cmake-3.6\Modules\CheckFunctionExists.c"



  CheckFunctionExists.c

Link:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\opencv\build\CMakeFiles\CMakeTmp\Debug\cmTC_05771.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:/opencv/build/CMakeFiles/CMakeTmp/Debug/cmTC_05771.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/opencv/build/CMakeFiles/CMakeTmp/Debug/cmTC_05771.lib" /MACHINE:X64  /machine:x64 cmTC_05771.dir\Debug\CheckFunctionExists.obj

CheckFunctionExists.obj : error LNK2019: unresolved external symbol mmap referenced in function main [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_05771.vcxproj]

C:\opencv\build\CMakeFiles\CMakeTmp\Debug\cmTC_05771.exe : fatal error LNK1120: 1 unresolved externals [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_05771.vcxproj]

Done Building Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_05771.vcxproj" (default targets) -- FAILED.



Build FAILED.



"C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_05771.vcxproj" (default target) (1) ->

(Link target) -> 

  CheckFunctionExists.obj : error LNK2019: unresolved external symbol mmap referenced in function main [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_05771.vcxproj]

  C:\opencv\build\CMakeFiles\CMakeTmp\Debug\cmTC_05771.exe : fatal error LNK1120: 1 unresolved externals [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_05771.vcxproj]



    0 Warning(s)

    2 Error(s)



Time Elapsed 00:00:00.52



Determining if the include file unistd.h exists failed with the following output:
Change Dir: C:/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_1dbf9.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.25420.1

Copyright (C) Microsoft Corporation. All rights reserved.



Build started 30/8/2016 2:43:53 AM.

Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_1dbf9.vcxproj" on node 1 (default targets).

PrepareForBuild:

  Creating directory "cmTC_1dbf9.dir\Debug\".

  Creating directory "C:\opencv\build\CMakeFiles\CMakeTmp\Debug\".

  Creating directory "cmTC_1dbf9.dir\Debug\cmTC_1dbf9.tlog\".

InitializeBuildStatus:

  Creating "cmTC_1dbf9.dir\Debug\cmTC_1dbf9.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_1dbf9.dir\Debug\\" /Fd"cmTC_1dbf9.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj C:\opencv\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c

  Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24213.1 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.



  cl /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_1dbf9.dir\Debug\\" /Fd"cmTC_1dbf9.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj C:\opencv\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c



  CheckIncludeFile.c

C:\opencv\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_1dbf9.vcxproj]

Done Building Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_1dbf9.vcxproj" (default targets) -- FAILED.



Build FAILED.



"C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_1dbf9.vcxproj" (default target) (1) ->

(ClCompile target) -> 

  C:\opencv\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_1dbf9.vcxproj]



    0 Warning(s)

    1 Error(s)



Time Elapsed 00:00:00.37

Cmake cannot configure using 64 bit Visual Studio

I am setting up OpenCV on a different computer and I come across a problem with Cmake giving me an error if i select VS community 2015 Win 64 as my compiler.

Everything seems okay when I Cmake and install VTK using the 64 bit VS so I was wondering if I will encounter any future problems if I compile and install OpenCV with VTK support using the 32 bit option. Will my OpenCV be slower ?

Here is the error that I have from CMake

CMake Error at C:/VTK/source/CMake/vtkModuleAPI.cmake:120 (message):
  Requested modules not available:

    vtkRenderingOpenGL
Call Stack (most recent call first):
  C:/VTK/build/VTKConfig.cmake:75 (vtk_module_config)
  cmake/OpenCVDetectVTK.cmake:6 (find_package)
  CMakeLists.txt:597 (include)

CMake Error text file below

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

Determining if the function fseeko exists failed with the following output:
Change Dir: C:/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_8f9f9.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.25420.1

Copyright (C) Microsoft Corporation. All rights reserved.



Build started 30/8/2016 2:43:46 AM.

Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_8f9f9.vcxproj" on node 1 (default targets).

PrepareForBuild:

  Creating directory "cmTC_8f9f9.dir\Debug\".

  Creating directory "C:\opencv\build\CMakeFiles\CMakeTmp\Debug\".

  Creating directory "cmTC_8f9f9.dir\Debug\cmTC_8f9f9.tlog\".

InitializeBuildStatus:

  Creating "cmTC_8f9f9.dir\Debug\cmTC_8f9f9.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D CHECK_FUNCTION_EXISTS=fseeko /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_8f9f9.dir\Debug\\" /Fd"cmTC_8f9f9.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj "C:\Program Files\CMake\share\cmake-3.6\Modules\CheckFunctionExists.c"

  Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24213.1 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.



  cl /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D CHECK_FUNCTION_EXISTS=fseeko /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_8f9f9.dir\Debug\\" /Fd"cmTC_8f9f9.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj "C:\Program Files\CMake\share\cmake-3.6\Modules\CheckFunctionExists.c"



  CheckFunctionExists.c

Link:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\opencv\build\CMakeFiles\CMakeTmp\Debug\cmTC_8f9f9.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:/opencv/build/CMakeFiles/CMakeTmp/Debug/cmTC_8f9f9.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/opencv/build/CMakeFiles/CMakeTmp/Debug/cmTC_8f9f9.lib" /MACHINE:X64  /machine:x64 cmTC_8f9f9.dir\Debug\CheckFunctionExists.obj

CheckFunctionExists.obj : error LNK2019: unresolved external symbol fseeko referenced in function main [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_8f9f9.vcxproj]

C:\opencv\build\CMakeFiles\CMakeTmp\Debug\cmTC_8f9f9.exe : fatal error LNK1120: 1 unresolved externals [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_8f9f9.vcxproj]

Done Building Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_8f9f9.vcxproj" (default targets) -- FAILED.



Build FAILED.



"C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_8f9f9.vcxproj" (default target) (1) ->

(Link target) -> 

  CheckFunctionExists.obj : error LNK2019: unresolved external symbol fseeko referenced in function main [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_8f9f9.vcxproj]

  C:\opencv\build\CMakeFiles\CMakeTmp\Debug\cmTC_8f9f9.exe : fatal error LNK1120: 1 unresolved externals [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_8f9f9.vcxproj]



    0 Warning(s)

    2 Error(s)



Time Elapsed 00:00:00.52



Determining if the include file unistd.h exists failed with the following output:
Change Dir: C:/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_f10be.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.25420.1

Copyright (C) Microsoft Corporation. All rights reserved.



Build started 30/8/2016 2:43:46 AM.

Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_f10be.vcxproj" on node 1 (default targets).

PrepareForBuild:

  Creating directory "cmTC_f10be.dir\Debug\".

  Creating directory "C:\opencv\build\CMakeFiles\CMakeTmp\Debug\".

  Creating directory "cmTC_f10be.dir\Debug\cmTC_f10be.tlog\".

InitializeBuildStatus:

  Creating "cmTC_f10be.dir\Debug\cmTC_f10be.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_f10be.dir\Debug\\" /Fd"cmTC_f10be.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj C:\opencv\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c

  Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24213.1 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.



  cl /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_f10be.dir\Debug\\" /Fd"cmTC_f10be.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj C:\opencv\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c



  CheckIncludeFile.c

C:\opencv\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_f10be.vcxproj]

Done Building Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_f10be.vcxproj" (default targets) -- FAILED.



Build FAILED.



"C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_f10be.vcxproj" (default target) (1) ->

(ClCompile target) -> 

  C:\opencv\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_f10be.vcxproj]



    0 Warning(s)

    1 Error(s)



Time Elapsed 00:00:00.45



Determining size of off64_t failed with the following output:
Change Dir: C:/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_91ccd.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.25420.1

Copyright (C) Microsoft Corporation. All rights reserved.



Build started 30/8/2016 2:43:47 AM.

Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj" on node 1 (default targets).

PrepareForBuild:

  Creating directory "cmTC_91ccd.dir\Debug\".

  Creating directory "C:\opencv\build\CMakeFiles\CMakeTmp\Debug\".

  Creating directory "cmTC_91ccd.dir\Debug\cmTC_91ccd.tlog\".

InitializeBuildStatus:

  Creating "cmTC_91ccd.dir\Debug\cmTC_91ccd.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_91ccd.dir\Debug\\" /Fd"cmTC_91ccd.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c

  Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24213.1 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.



  cl /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_91ccd.dir\Debug\\" /Fd"cmTC_91ccd.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c



  OFF64_T.c

C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c(19): error C2065: 'off64_t': undeclared identifier [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj]

C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c(20): error C2065: 'off64_t': undeclared identifier [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj]

C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c(21): error C2065: 'off64_t': undeclared identifier [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj]

C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c(22): error C2065: 'off64_t': undeclared identifier [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj]

C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c(23): error C2065: 'off64_t': undeclared identifier [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj]

Done Building Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj" (default targets) -- FAILED.



Build FAILED.



"C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj" (default target) (1) ->

(ClCompile target) -> 

  C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c(19): error C2065: 'off64_t': undeclared identifier [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj]

  C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c(20): error C2065: 'off64_t': undeclared identifier [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj]

  C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c(21): error C2065: 'off64_t': undeclared identifier [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj]

  C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c(22): error C2065: 'off64_t': undeclared identifier [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj]

  C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c(23): error C2065: 'off64_t': undeclared identifier [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj]



    0 Warning(s)

    5 Error(s)



Time Elapsed 00:00:00.40


C:/opencv/build/CMakeFiles/CheckTypeSize/OFF64_T.c:
#include <sys/types.h>
#include <stdint.h>
#include <stddef.h>


#undef KEY
#if defined(__i386)
# define KEY '_','_','i','3','8','6'
#elif defined(__x86_64)
# define KEY '_','_','x','8','6','_','6','4'
#elif defined(__ppc__)
# define KEY '_','_','p','p','c','_','_'
#elif defined(__ppc64__)
# define KEY '_','_','p','p','c','6','4','_','_'
#endif

#define SIZE (sizeof(off64_t))
char info_size[] =  {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
  ('0' + ((SIZE / 10000)%10)),
  ('0' + ((SIZE / 1000)%10)),
  ('0' + ((SIZE / 100)%10)),
  ('0' + ((SIZE / 10)%10)),
  ('0' +  (SIZE    % 10)),
  ']',
#ifdef KEY
  ' ','k','e','y','[', KEY, ']',
#endif
  '\0'};

#ifdef __CLASSIC_C__
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
  int require = 0;
  require += info_size[argc];
  (void)argv;
  return require;
}


Determining if the function jbg_newlen exists failed with the following output:
Change Dir: C:/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_37858.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.25420.1

Copyright (C) Microsoft Corporation. All rights reserved.



Build started 30/8/2016 2:43:50 AM.

Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_37858.vcxproj" on node 1 (default targets).

PrepareForBuild:

  Creating directory "cmTC_37858.dir\Debug\".

  Creating directory "C:\opencv\build\CMakeFiles\CMakeTmp\Debug\".

  Creating directory "cmTC_37858.dir\Debug\cmTC_37858.tlog\".

InitializeBuildStatus:

  Creating "cmTC_37858.dir\Debug\cmTC_37858.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D CHECK_FUNCTION_EXISTS=jbg_newlen /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_37858.dir\Debug\\" /Fd"cmTC_37858.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj "C:\Program Files\CMake\share\cmake-3.6\Modules\CheckFunctionExists.c"

  Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24213.1 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.



  cl /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D CHECK_FUNCTION_EXISTS=jbg_newlen /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_37858.dir\Debug\\" /Fd"cmTC_37858.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj "C:\Program Files\CMake\share\cmake-3.6\Modules\CheckFunctionExists.c"



  CheckFunctionExists.c

Link:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\opencv\build\CMakeFiles\CMakeTmp\Debug\cmTC_37858.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:/opencv/build/CMakeFiles/CMakeTmp/Debug/cmTC_37858.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/opencv/build/CMakeFiles/CMakeTmp/Debug/cmTC_37858.lib" /MACHINE:X64  /machine:x64 cmTC_37858.dir\Debug\CheckFunctionExists.obj

CheckFunctionExists.obj : error LNK2019: unresolved external symbol jbg_newlen referenced in function main [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_37858.vcxproj]

C:\opencv\build\CMakeFiles\CMakeTmp\Debug\cmTC_37858.exe : fatal error LNK1120: 1 unresolved externals [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_37858.vcxproj]

Done Building Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_37858.vcxproj" (default targets) -- FAILED.



Build FAILED.



"C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_37858.vcxproj" (default target) (1) ->

(Link target) -> 

  CheckFunctionExists.obj : error LNK2019: unresolved external symbol jbg_newlen referenced in function main [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_37858.vcxproj]

  C:\opencv\build\CMakeFiles\CMakeTmp\Debug\cmTC_37858.exe : fatal error LNK1120: 1 unresolved externals [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_37858.vcxproj]



    0 Warning(s)

    2 Error(s)



Time Elapsed 00:00:00.51



Determining if the function mmap exists failed with the following output:
Change Dir: C:/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_05771.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.25420.1

Copyright (C) Microsoft Corporation. All rights reserved.



Build started 30/8/2016 2:43:50 AM.

Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_05771.vcxproj" on node 1 (default targets).

PrepareForBuild:

  Creating directory "cmTC_05771.dir\Debug\".

  Creating directory "C:\opencv\build\CMakeFiles\CMakeTmp\Debug\".

  Creating directory "cmTC_05771.dir\Debug\cmTC_05771.tlog\".

InitializeBuildStatus:

  Creating "cmTC_05771.dir\Debug\cmTC_05771.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D CHECK_FUNCTION_EXISTS=mmap /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_05771.dir\Debug\\" /Fd"cmTC_05771.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj "C:\Program Files\CMake\share\cmake-3.6\Modules\CheckFunctionExists.c"

  Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24213.1 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.



  cl /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D CHECK_FUNCTION_EXISTS=mmap /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_05771.dir\Debug\\" /Fd"cmTC_05771.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj "C:\Program Files\CMake\share\cmake-3.6\Modules\CheckFunctionExists.c"



  CheckFunctionExists.c

Link:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\opencv\build\CMakeFiles\CMakeTmp\Debug\cmTC_05771.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:/opencv/build/CMakeFiles/CMakeTmp/Debug/cmTC_05771.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/opencv/build/CMakeFiles/CMakeTmp/Debug/cmTC_05771.lib" /MACHINE:X64  /machine:x64 cmTC_05771.dir\Debug\CheckFunctionExists.obj

CheckFunctionExists.obj : error LNK2019: unresolved external symbol mmap referenced in function main [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_05771.vcxproj]

C:\opencv\build\CMakeFiles\CMakeTmp\Debug\cmTC_05771.exe : fatal error LNK1120: 1 unresolved externals [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_05771.vcxproj]

Done Building Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_05771.vcxproj" (default targets) -- FAILED.



Build FAILED.



"C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_05771.vcxproj" (default target) (1) ->

(Link target) -> 

  CheckFunctionExists.obj : error LNK2019: unresolved external symbol mmap referenced in function main [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_05771.vcxproj]

  C:\opencv\build\CMakeFiles\CMakeTmp\Debug\cmTC_05771.exe : fatal error LNK1120: 1 unresolved externals [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_05771.vcxproj]



    0 Warning(s)

    2 Error(s)



Time Elapsed 00:00:00.52



Determining if the include file unistd.h exists failed with the following output:
Change Dir: C:/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_1dbf9.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.25420.1

Copyright (C) Microsoft Corporation. All rights reserved.



Build started 30/8/2016 2:43:53 AM.

Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_1dbf9.vcxproj" on node 1 (default targets).

PrepareForBuild:

  Creating directory "cmTC_1dbf9.dir\Debug\".

  Creating directory "C:\opencv\build\CMakeFiles\CMakeTmp\Debug\".

  Creating directory "cmTC_1dbf9.dir\Debug\cmTC_1dbf9.tlog\".

InitializeBuildStatus:

  Creating "cmTC_1dbf9.dir\Debug\cmTC_1dbf9.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_1dbf9.dir\Debug\\" /Fd"cmTC_1dbf9.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj C:\opencv\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c

  Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24213.1 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.



  cl /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_1dbf9.dir\Debug\\" /Fd"cmTC_1dbf9.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj C:\opencv\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c



  CheckIncludeFile.c

C:\opencv\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_1dbf9.vcxproj]

Done Building Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_1dbf9.vcxproj" (default targets) -- FAILED.



Build FAILED.



"C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_1dbf9.vcxproj" (default target) (1) ->

(ClCompile target) -> 

  C:\opencv\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_1dbf9.vcxproj]



    0 Warning(s)

    1 Error(s)



Time Elapsed 00:00:00.37

Cmake cannot configure using 64 bit Visual Studio

Someone please help I beg you !

I am setting up OpenCV on a different computer and I come across a problem with Cmake giving me an error if i select VS community 2015 Win 64 as my compiler.

Everything seems okay when I Cmake and install VTK using the 64 bit VS so I was wondering if I will encounter any future problems if I compile and install OpenCV with VTK support using the 32 bit option. Will my OpenCV be slower ?

Here is the error that I have from CMake

CMake Error at C:/VTK/source/CMake/vtkModuleAPI.cmake:120 (message):
  Requested modules not available:

    vtkRenderingOpenGL
Call Stack (most recent call first):
  C:/VTK/build/VTKConfig.cmake:75 (vtk_module_config)
  cmake/OpenCVDetectVTK.cmake:6 (find_package)
  CMakeLists.txt:597 (include)

CMake Error text file below

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

Determining if the function fseeko exists failed with the following output:
Change Dir: C:/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_8f9f9.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.25420.1

Copyright (C) Microsoft Corporation. All rights reserved.



Build started 30/8/2016 2:43:46 AM.

Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_8f9f9.vcxproj" on node 1 (default targets).

PrepareForBuild:

  Creating directory "cmTC_8f9f9.dir\Debug\".

  Creating directory "C:\opencv\build\CMakeFiles\CMakeTmp\Debug\".

  Creating directory "cmTC_8f9f9.dir\Debug\cmTC_8f9f9.tlog\".

InitializeBuildStatus:

  Creating "cmTC_8f9f9.dir\Debug\cmTC_8f9f9.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D CHECK_FUNCTION_EXISTS=fseeko /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_8f9f9.dir\Debug\\" /Fd"cmTC_8f9f9.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj "C:\Program Files\CMake\share\cmake-3.6\Modules\CheckFunctionExists.c"

  Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24213.1 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.



  cl /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D CHECK_FUNCTION_EXISTS=fseeko /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_8f9f9.dir\Debug\\" /Fd"cmTC_8f9f9.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj "C:\Program Files\CMake\share\cmake-3.6\Modules\CheckFunctionExists.c"



  CheckFunctionExists.c

Link:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\opencv\build\CMakeFiles\CMakeTmp\Debug\cmTC_8f9f9.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:/opencv/build/CMakeFiles/CMakeTmp/Debug/cmTC_8f9f9.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/opencv/build/CMakeFiles/CMakeTmp/Debug/cmTC_8f9f9.lib" /MACHINE:X64  /machine:x64 cmTC_8f9f9.dir\Debug\CheckFunctionExists.obj

CheckFunctionExists.obj : error LNK2019: unresolved external symbol fseeko referenced in function main [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_8f9f9.vcxproj]

C:\opencv\build\CMakeFiles\CMakeTmp\Debug\cmTC_8f9f9.exe : fatal error LNK1120: 1 unresolved externals [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_8f9f9.vcxproj]

Done Building Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_8f9f9.vcxproj" (default targets) -- FAILED.



Build FAILED.



"C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_8f9f9.vcxproj" (default target) (1) ->

(Link target) -> 

  CheckFunctionExists.obj : error LNK2019: unresolved external symbol fseeko referenced in function main [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_8f9f9.vcxproj]

  C:\opencv\build\CMakeFiles\CMakeTmp\Debug\cmTC_8f9f9.exe : fatal error LNK1120: 1 unresolved externals [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_8f9f9.vcxproj]



    0 Warning(s)

    2 Error(s)



Time Elapsed 00:00:00.52



Determining if the include file unistd.h exists failed with the following output:
Change Dir: C:/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_f10be.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.25420.1

Copyright (C) Microsoft Corporation. All rights reserved.



Build started 30/8/2016 2:43:46 AM.

Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_f10be.vcxproj" on node 1 (default targets).

PrepareForBuild:

  Creating directory "cmTC_f10be.dir\Debug\".

  Creating directory "C:\opencv\build\CMakeFiles\CMakeTmp\Debug\".

  Creating directory "cmTC_f10be.dir\Debug\cmTC_f10be.tlog\".

InitializeBuildStatus:

  Creating "cmTC_f10be.dir\Debug\cmTC_f10be.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_f10be.dir\Debug\\" /Fd"cmTC_f10be.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj C:\opencv\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c

  Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24213.1 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.



  cl /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_f10be.dir\Debug\\" /Fd"cmTC_f10be.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj C:\opencv\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c



  CheckIncludeFile.c

C:\opencv\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_f10be.vcxproj]

Done Building Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_f10be.vcxproj" (default targets) -- FAILED.



Build FAILED.



"C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_f10be.vcxproj" (default target) (1) ->

(ClCompile target) -> 

  C:\opencv\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_f10be.vcxproj]



    0 Warning(s)

    1 Error(s)



Time Elapsed 00:00:00.45



Determining size of off64_t failed with the following output:
Change Dir: C:/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_91ccd.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.25420.1

Copyright (C) Microsoft Corporation. All rights reserved.



Build started 30/8/2016 2:43:47 AM.

Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj" on node 1 (default targets).

PrepareForBuild:

  Creating directory "cmTC_91ccd.dir\Debug\".

  Creating directory "C:\opencv\build\CMakeFiles\CMakeTmp\Debug\".

  Creating directory "cmTC_91ccd.dir\Debug\cmTC_91ccd.tlog\".

InitializeBuildStatus:

  Creating "cmTC_91ccd.dir\Debug\cmTC_91ccd.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_91ccd.dir\Debug\\" /Fd"cmTC_91ccd.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c

  Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24213.1 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.



  cl /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_91ccd.dir\Debug\\" /Fd"cmTC_91ccd.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c



  OFF64_T.c

C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c(19): error C2065: 'off64_t': undeclared identifier [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj]

C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c(20): error C2065: 'off64_t': undeclared identifier [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj]

C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c(21): error C2065: 'off64_t': undeclared identifier [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj]

C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c(22): error C2065: 'off64_t': undeclared identifier [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj]

C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c(23): error C2065: 'off64_t': undeclared identifier [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj]

Done Building Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj" (default targets) -- FAILED.



Build FAILED.



"C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj" (default target) (1) ->

(ClCompile target) -> 

  C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c(19): error C2065: 'off64_t': undeclared identifier [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj]

  C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c(20): error C2065: 'off64_t': undeclared identifier [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj]

  C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c(21): error C2065: 'off64_t': undeclared identifier [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj]

  C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c(22): error C2065: 'off64_t': undeclared identifier [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj]

  C:\opencv\build\CMakeFiles\CheckTypeSize\OFF64_T.c(23): error C2065: 'off64_t': undeclared identifier [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_91ccd.vcxproj]



    0 Warning(s)

    5 Error(s)



Time Elapsed 00:00:00.40


C:/opencv/build/CMakeFiles/CheckTypeSize/OFF64_T.c:
#include <sys/types.h>
#include <stdint.h>
#include <stddef.h>


#undef KEY
#if defined(__i386)
# define KEY '_','_','i','3','8','6'
#elif defined(__x86_64)
# define KEY '_','_','x','8','6','_','6','4'
#elif defined(__ppc__)
# define KEY '_','_','p','p','c','_','_'
#elif defined(__ppc64__)
# define KEY '_','_','p','p','c','6','4','_','_'
#endif

#define SIZE (sizeof(off64_t))
char info_size[] =  {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
  ('0' + ((SIZE / 10000)%10)),
  ('0' + ((SIZE / 1000)%10)),
  ('0' + ((SIZE / 100)%10)),
  ('0' + ((SIZE / 10)%10)),
  ('0' +  (SIZE    % 10)),
  ']',
#ifdef KEY
  ' ','k','e','y','[', KEY, ']',
#endif
  '\0'};

#ifdef __CLASSIC_C__
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
  int require = 0;
  require += info_size[argc];
  (void)argv;
  return require;
}


Determining if the function jbg_newlen exists failed with the following output:
Change Dir: C:/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_37858.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.25420.1

Copyright (C) Microsoft Corporation. All rights reserved.



Build started 30/8/2016 2:43:50 AM.

Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_37858.vcxproj" on node 1 (default targets).

PrepareForBuild:

  Creating directory "cmTC_37858.dir\Debug\".

  Creating directory "C:\opencv\build\CMakeFiles\CMakeTmp\Debug\".

  Creating directory "cmTC_37858.dir\Debug\cmTC_37858.tlog\".

InitializeBuildStatus:

  Creating "cmTC_37858.dir\Debug\cmTC_37858.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D CHECK_FUNCTION_EXISTS=jbg_newlen /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_37858.dir\Debug\\" /Fd"cmTC_37858.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj "C:\Program Files\CMake\share\cmake-3.6\Modules\CheckFunctionExists.c"

  Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24213.1 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.



  cl /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D CHECK_FUNCTION_EXISTS=jbg_newlen /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_37858.dir\Debug\\" /Fd"cmTC_37858.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj "C:\Program Files\CMake\share\cmake-3.6\Modules\CheckFunctionExists.c"



  CheckFunctionExists.c

Link:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\opencv\build\CMakeFiles\CMakeTmp\Debug\cmTC_37858.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:/opencv/build/CMakeFiles/CMakeTmp/Debug/cmTC_37858.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/opencv/build/CMakeFiles/CMakeTmp/Debug/cmTC_37858.lib" /MACHINE:X64  /machine:x64 cmTC_37858.dir\Debug\CheckFunctionExists.obj

CheckFunctionExists.obj : error LNK2019: unresolved external symbol jbg_newlen referenced in function main [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_37858.vcxproj]

C:\opencv\build\CMakeFiles\CMakeTmp\Debug\cmTC_37858.exe : fatal error LNK1120: 1 unresolved externals [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_37858.vcxproj]

Done Building Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_37858.vcxproj" (default targets) -- FAILED.



Build FAILED.



"C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_37858.vcxproj" (default target) (1) ->

(Link target) -> 

  CheckFunctionExists.obj : error LNK2019: unresolved external symbol jbg_newlen referenced in function main [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_37858.vcxproj]

  C:\opencv\build\CMakeFiles\CMakeTmp\Debug\cmTC_37858.exe : fatal error LNK1120: 1 unresolved externals [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_37858.vcxproj]



    0 Warning(s)

    2 Error(s)



Time Elapsed 00:00:00.51



Determining if the function mmap exists failed with the following output:
Change Dir: C:/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_05771.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.25420.1

Copyright (C) Microsoft Corporation. All rights reserved.



Build started 30/8/2016 2:43:50 AM.

Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_05771.vcxproj" on node 1 (default targets).

PrepareForBuild:

  Creating directory "cmTC_05771.dir\Debug\".

  Creating directory "C:\opencv\build\CMakeFiles\CMakeTmp\Debug\".

  Creating directory "cmTC_05771.dir\Debug\cmTC_05771.tlog\".

InitializeBuildStatus:

  Creating "cmTC_05771.dir\Debug\cmTC_05771.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D CHECK_FUNCTION_EXISTS=mmap /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_05771.dir\Debug\\" /Fd"cmTC_05771.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj "C:\Program Files\CMake\share\cmake-3.6\Modules\CheckFunctionExists.c"

  Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24213.1 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.



  cl /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D CHECK_FUNCTION_EXISTS=mmap /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_05771.dir\Debug\\" /Fd"cmTC_05771.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj "C:\Program Files\CMake\share\cmake-3.6\Modules\CheckFunctionExists.c"



  CheckFunctionExists.c

Link:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\opencv\build\CMakeFiles\CMakeTmp\Debug\cmTC_05771.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:/opencv/build/CMakeFiles/CMakeTmp/Debug/cmTC_05771.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/opencv/build/CMakeFiles/CMakeTmp/Debug/cmTC_05771.lib" /MACHINE:X64  /machine:x64 cmTC_05771.dir\Debug\CheckFunctionExists.obj

CheckFunctionExists.obj : error LNK2019: unresolved external symbol mmap referenced in function main [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_05771.vcxproj]

C:\opencv\build\CMakeFiles\CMakeTmp\Debug\cmTC_05771.exe : fatal error LNK1120: 1 unresolved externals [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_05771.vcxproj]

Done Building Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_05771.vcxproj" (default targets) -- FAILED.



Build FAILED.



"C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_05771.vcxproj" (default target) (1) ->

(Link target) -> 

  CheckFunctionExists.obj : error LNK2019: unresolved external symbol mmap referenced in function main [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_05771.vcxproj]

  C:\opencv\build\CMakeFiles\CMakeTmp\Debug\cmTC_05771.exe : fatal error LNK1120: 1 unresolved externals [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_05771.vcxproj]



    0 Warning(s)

    2 Error(s)



Time Elapsed 00:00:00.52



Determining if the include file unistd.h exists failed with the following output:
Change Dir: C:/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_1dbf9.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.25420.1

Copyright (C) Microsoft Corporation. All rights reserved.



Build started 30/8/2016 2:43:53 AM.

Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_1dbf9.vcxproj" on node 1 (default targets).

PrepareForBuild:

  Creating directory "cmTC_1dbf9.dir\Debug\".

  Creating directory "C:\opencv\build\CMakeFiles\CMakeTmp\Debug\".

  Creating directory "cmTC_1dbf9.dir\Debug\cmTC_1dbf9.tlog\".

InitializeBuildStatus:

  Creating "cmTC_1dbf9.dir\Debug\cmTC_1dbf9.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_1dbf9.dir\Debug\\" /Fd"cmTC_1dbf9.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj C:\opencv\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c

  Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24213.1 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.



  cl /c /Zi /W3 /WX- /MP4 /Od /Ob0 /Oi /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_1dbf9.dir\Debug\\" /Fd"cmTC_1dbf9.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue  /bigobj C:\opencv\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c



  CheckIncludeFile.c

C:\opencv\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_1dbf9.vcxproj]

Done Building Project "C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_1dbf9.vcxproj" (default targets) -- FAILED.



Build FAILED.



"C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_1dbf9.vcxproj" (default target) (1) ->

(ClCompile target) -> 

  C:\opencv\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory [C:\opencv\build\CMakeFiles\CMakeTmp\cmTC_1dbf9.vcxproj]



    0 Warning(s)

    1 Error(s)



Time Elapsed 00:00:00.37