Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

Opencv contrib modules on VS15

$
0
0
Hi! I have been trying to build the opencv_contrib module for OpenCV 3.1 on Visual Studio 15. These are the steps I've done so far: 1) Downloaded the OpenCV 3.1 from [http://opencv.org/downloads.html](http://opencv.org/downloads.html) and extracted the content to my chosen directory (C:\opencv). 2) Cloned the opencv_contrib repository from here [https://github.com/opencv/opencv_contrib](https://github.com/opencv/opencv_contrib) and chosen a directory for it (C:\opencv_contrib) 3) I tried running the Cmake GUI from standard command line using admin rights. I chose the VS15 as generator for this. ![image description](/upfiles/14785966505711409.png) It got me this error: ![image description](/upfiles/14785966778603635.png) Here it seems to me that Cmake is unable to find the VS C++ compiler, and thus is unable to generate the build. To fix this i tried running the cmake-gui from the developer command line for VS15. ![image description](/upfiles/14785968138063947.png) This seemed to have done the trick. ![image description](/upfiles/14785969477685244.png) I wrote in the path for the OPENCV_EXTRA_MODULES_PATH: ![image description](/upfiles/14785971022704604.png) I also ticked OFF the opencv_aruco module as I know it causes problems with my current project. ![image description](/upfiles/14785972317789475.png) After this i hit "configure" and let Cmake run. It does this with no error. I then hit "generate" and let it finish. All still good. ![image description](/upfiles/14785973252488613.png) 4) I then opened the created OpenCV.sln project in the C:\opencv\build folder in VS. 5) I then tried to build the ALL_BUILD and INSTALL project files and get this error output for the building the debug solution of ALL_BUILD: ![image description](/upfiles/14785980623866824.png) It seems here to me that the problem lies in Cmake trying to generate a 32bit solution, while VS15 expects a 64bit solution. I have no idea how this happens! Any help would be appreciated!

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>