2

Hi guys really new to Visual Studio 2017 and im trying to get openCV into it to play around with the stuff, tried following the instructions from this How to can I install/configure OpenCV3.2.0 with Visual Studio 2017?

but my cmake keeps showing the error that the cmakelist is not in the folder, not sure what i should do any ideas?

C.K
  • 21
  • 4
  • CMake Error: The source directory "C:/_OpenCv3/opencv" does not appear to contain CMakeLists.txt. – C.K Jun 21 '17 at 04:22
  • not sure if im doing anything wrong too – C.K Jun 21 '17 at 04:48
  • but where is the CMake list located?? – ΦXocę 웃 Пepeúpa ツ Jun 21 '17 at 07:54
  • theres one in there openCV master folder and one more in the CMake 3.82 folder, not sure which one i should use and where to put it – C.K Jun 21 '17 at 08:05
  • tried one of it and this is the error it showed :CMake Error at CMakeLists.txt:18 (include): include could not find load file: cmake/OpenCVMinDepVersions.cmake CMake Error at CMakeLists.txt:113 (include): include could not find load file: cmake/OpenCVUtils.cmake CMake Error at CMakeLists.txt:116 (ocv_update): Unknown CMake command "ocv_update". – C.K Jun 21 '17 at 08:05
  • use the one from master folder because that is the branch with the code – ΦXocę 웃 Пepeúpa ツ Jun 21 '17 at 08:08
  • ok so do i put the one from the master folder into the opencv folder? – C.K Jun 21 '17 at 08:14
  • nope, put the path to it in cmake – ΦXocę 웃 Пepeúpa ツ Jun 21 '17 at 08:15
  • showing this error CMake Error at CMakeLists.txt:18 (include): include could not find load file: cmake/OpenCVMinDepVersions.cmake CMake Error at CMakeLists.txt:113 (include): include could not find load file: cmake/OpenCVUtils.cmake CMake Error at CMakeLists.txt:116 (ocv_update): Unknown CMake command "ocv_update". think its the same as the one up top – C.K Jun 21 '17 at 08:16
  • ok sorry one sec – C.K Jun 21 '17 at 08:16
  • yeah still showing the same errors D: sorry man still rly confused over this – C.K Jun 21 '17 at 08:23
  • thanks for the help... managed to get it in now trying to fix the build problems and stuff...wondering, if you could help me out – C.K Jun 22 '17 at 05:29
  • are you using VS2017? – ΦXocę 웃 Пepeúpa ツ Jun 22 '17 at 05:29
  • yeap its the free version though.....for students...dont know if it has differences compared to the paid versions and stuff – C.K Jun 22 '17 at 06:25
  • doesnt matter, it works! – ΦXocę 웃 Пepeúpa ツ Jun 22 '17 at 06:27
  • ok i seem to be getting errors though after i debug the thing....going to re-do the process – C.K Jun 22 '17 at 06:28
  • compiling a list of errors now – C.K Jun 22 '17 at 06:59
  • For steps 9 & 10) (Debug conf -> Build -> Build ->All Build Error: 18>Done building project "opencv_hdf.vcxproj" -- FAILED.) (Release Conf -> Build -> Build -> All Build Error line: 18>Done building project "opencv_hdf.vcxproj" -- FAILED.) (Debug Conf ->Build -> Build ->Install Error Message: 3>Done building project "opencv_hdf.vcxproj" -- FAILED.) (Release Conf ->Build ->Build ->install Error Message: 1>Done building project "opencv_hdf.vcxproj" -- FAILED.) @ΦXocę웃Пepeúpaツ – C.K Jun 22 '17 at 07:18

1 Answers1

0

I have encountered the same problem. I just comment # ocv_update(CUDA_LINK_LIBRARIES_KEYWORD "PRIVATE") in the file cmake/OpenCVDetectCUDA.cmake