Opencv_world300.dll build from scratch [closed]

asked 2015-04-11 09:30:38 -0600

pulp_fiction gravatar image

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 ... (more)

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-10-13 16:43:19.678924

Comments

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

LBerger gravatar imageLBerger ( 2015-04-11 09:40:01 -0600 )edit

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.?

pulp_fiction gravatar imagepulp_fiction ( 2015-04-11 09:48:58 -0600 )edit

What is your cmake version? Can you build opencv without opencv_world?

LBerger gravatar imageLBerger ( 2015-04-11 09:58:54 -0600 )edit

CMake Version :3.2.1
Yes, I can build Opencv without OpenCV_World? I have tried it many times.

pulp_fiction gravatar imagepulp_fiction ( 2015-04-11 10:00:13 -0600 )edit

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.

LBerger gravatar imageLBerger ( 2015-04-11 10:10:06 -0600 )edit

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....

pulp_fiction gravatar imagepulp_fiction ( 2015-04-11 10:13:21 -0600 )edit

Also, are you suggesting that the newer commits might have introduced this problem.

pulp_fiction gravatar imagepulp_fiction ( 2015-04-11 10:14:32 -0600 )edit

I have got my old version of opencv. I can generate project using cmake with opencv_world. Something has changed.

LBerger gravatar imageLBerger ( 2015-04-11 10:36:08 -0600 )edit

Try to use INSTALL_CREATE_DISTRIB option:

cmake -G"Visual Studio 12 Win64" -DINSTALL_CREATE_DISTRIB=ON -DCMAKE_INSTALL_PREFIX=C:\ocv-install -DBUILD_SHARED_LIBS=ON ../opencv

Then build:

 cmake --build . --config release --target install
mshabunin gravatar imagemshabunin ( 2015-04-13 04:39:57 -0600 )edit

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.

Sheng Liu gravatar imageSheng Liu ( 2015-08-14 07:44:59 -0600 )edit