Opencv_world300.dll build from scratch [closed]
I tried building OpenCV using CMake with VS 2013 following all the following steps given everywhere. Build was successful with a few projects skipped. Then I installed it by building the INSTALL project. The thing is, I have got the libraries built for individual tasks but I need opencv_world300.dll for use.(I have already used opencv_world300.dll from pre-built libs but its been a year and there have many commits to master GIT ripository and I have encountered bugs in pre-built version, so I need to build from scratch).
There is no project to build opencv_world300.dll in MS VC2013 solution explorer. How do I build it or find it?
As of now, I did some exploring and did this:
While following the steps for building OpenCV binaries from scratch, I found the option to checkmark WITH_OPENCV_WORLD. I checked it and hit configure. It configured successfully, then I hit Generate, it is showing error as the following(in red):
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_world" which requires target "zlib" that is not in the export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_world" which requires target "zlib" that is not in the export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_world" which requires target "libjpeg" that is not in the export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_world" which requires target "libwebp" that is not in the export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_world" which requires target "libpng" that is not in the export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_world" which requires target "libtiff" that is not in the export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_world" which requires target "libjasper" that is not in the export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_world" which requires target "IlmImf" that is not in the export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_world" which requires target "zlib" that is not in the export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_world" which requires target "zlib" that is not in the export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_world" which requires target "libjpeg" that is not in the export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_world" which requires target "libwebp" that is not in the export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_world" which requires target "libpng" that is not in the export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_world" which requires target "libtiff" that is not in the export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_world" which requires target "libjasper" that is not in the export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_world" which requires target "IlmImf" that is not in the export set.
Generating done
Seeing it, I would estimate that there i dependency problem as opencv_world300 uses all the other modules.
Is anyone knowledgeable on OpenCV or CMake perhaps, to tell me the resolution of this issue. Do ...
Have you got folders libjasper,libjpeg ... in folder opencv/3rdparty? In cmakegui in windows you can disable some lib : check checkbox "grouped" in cmakegui Open build tree and check or uncheck lib
Yeah, I have got the folders in 3rdparty folder. And I checked to Group View. But, What do I uncheck? Actually I need opencv_world300.dll for use. If I uncheck it, I won't be able to build it but If I check it, it gives me errors. Can you elaborate on the "unchecking" thing you said.?
What is your cmake version? Can you build opencv without opencv_world?
CMake Version :3.2.1
Yes, I can build Opencv without OpenCV_World? I have tried it many times.
2 weeks ago I was able to build opencv_world. Now i cannot. I 've got same errors like you. I have done a git clone 7 april.
I was thinking that, if I could find the statement "EXPORT "OpenCVModules" ..." somewhere in the CMake files, maybe we could do something. If you have any idea....
Also, are you suggesting that the newer commits might have introduced this problem.
I have got my old version of opencv. I can generate project using cmake with opencv_world. Something has changed.
Try to use INSTALL_CREATE_DISTRIB option:
Then build:
Please make sure your VS2013, Cmake-gui and opencv3 are the most recent versions. Today I buildOpenCV using CMake with VS 2013 update5 successfully. Don't forget check the option WITH_OPENCV_WORLD.