Cmake cannot configure using 64 bit Visual Studio

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

Nbb gravatar image

updated 2016-08-29 23:39:25 -0600

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 ...
(more)
edit retag flag offensive close merge delete

Comments

How about disabling VTK in CMAKE? It is not like it is an essential backend on Windows?

StevenPuttemans gravatar imageStevenPuttemans ( 2016-08-30 03:52:50 -0600 )edit

I am using Viz so i need VTK. Would it have anything to do with python because I cant seem to find any option to disable python

Nbb gravatar imageNbb ( 2016-08-30 04:17:50 -0600 )edit