Ask Your Question
0

Getting error while building opencv extra modules

asked 2018-05-15 16:51:18 -0500

faysal gravatar image

updated 2018-05-15 18:05:45 -0500

I am trying to run an opencv project using Microsoft visual studio 2015. in that, I was required to include opencv2/face .hpp. Then from the Google I found that I should download

https://github.com/opencv/opencv_contrib

and follow the instruction stated there. But in doing so I was getting the following error while using make -j5 command.

make: *** No targets specified and no makefile found.  Stop.

Can anyone please tell me what I should do now?

edit retag flag offensive close merge delete

Comments

cmake probably did not build a makefile, but an opencv.sln. open that with VS and build the INSTALL project. if that finished successfully, you'll find your new headers/libs/dlls in opencv/build/install

berak gravatar imageberak ( 2018-05-16 00:28:53 -0500 )edit

Thank you for the reply. But now when I am trying to build https://www.learnopencv.com/facemark-facial-landmark-detection-using-opencv/ I am getting following error: 'CV_OVERRIDE': unknown override specifier error. Not Sure whether I have successfully included the library or not.

faysal gravatar imagefaysal ( 2018-05-17 09:31:15 -0500 )edit

that means, you do't have exact same versions of opencv and opencv_contrib (your main opencv is older than the contrib one)

please download latest master branch for both, clean your build folder, and start again with cmake

berak gravatar imageberak ( 2018-05-17 09:48:22 -0500 )edit

No, Actually there is still the problem with the build. When I tried to build Install from opencv.sln it is not building successfully. I am getting following error though I have downloaded both opencv and opencv_contrib from the GitHub : 'CV_OVERRIDE': unknown override specifier error (I am getting this error in face.hpp file)

faysal gravatar imagefaysal ( 2018-05-17 12:17:35 -0500 )edit

Finally, I resolved this problem by reinstalling. But facing this problem while running the sample project: OpenCV(4.0.0-pre) Error: Unknown error code -49 (Input file is empty)

And I am trying to build my sample project in x64 architecture but whenever I choose the x64 in opencv.sln it is outputting me the libraies for x86. How to solve that?

faysal gravatar imagefaysal ( 2018-05-17 14:30:10 -0500 )edit

@faysal, it's unclear, to what context your last question is refering to.

berak gravatar imageberak ( 2018-05-22 12:15:39 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-05-23 09:57:39 -0500

faysal gravatar image

So I found the solution. I need to build the Install from Opencv.sln file. After that it will create all the necessary library which I need to include in my project.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-05-15 16:28:04 -0500

Seen: 132 times

Last updated: May 15