Build OpenCv_World24135.DLL

asked 2018-02-16 17:36:47 -0600

blaisexen gravatar image

updated 2018-03-11 22:19:54 -0600

I used to compile from vc12 or msvstudio12 2013,, i like using vc12 because it only needs the basic files, like msvcp120.dll and msvcr120.dll in which in could be run or open from windows XP.

so, that's the reason why I used vc12 only.

I compiled win32 or x86 with opencv 3.4.0 in vc12 and it has a good result. BUT I did not include opencv_DNN because it also cause an error, it can't build opencv_world340.

NOW, I can't compile opencv2.4.13.5 with opencv_world, because I know with opencv_world will have only 1 DLL file, so it's neat.

I can't compile because of this following reason, and btw I came from cmake website but I don't find forum to help me with this:

Configuring done

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

Can someone expert here, make changes or edit the cmake file to I could get the opencv_world from opencv2.4.13.5?

I think this is the cmake file that errors, OpenCVGenPkgconfig.cmake from opencv2.4.13.5 cmake folder.

Do you have any idea that I can make this compilation possible?

edit retag flag offensive close merge delete

Comments

To me it seems your trying to do a static build, which also needs zlib, libjpeg and so on... but those are specific libraries for Linux and not Windows .... you will need to explicitly disable them using CMAKE-GUI for example!

StevenPuttemans gravatar imageStevenPuttemans ( 2018-02-19 03:38:10 -0600 )edit

try -DBUID_ZLIB:BOOL=OFF -DBUID_JPEG:BOOL=OFF -DBUILD_PNG:BOOL=OFF -DWITH_JPEG:BOOL=OFF -DWITH_PNG:BOOL=OFF

LBerger gravatar imageLBerger ( 2018-02-19 04:10:35 -0600 )edit

hi, I manually copied the obj files to 3rd party lib released folder and it's ok, but new issue come-in, like this lines:

1>surf_ocl.obj : error LNK2011: precompiled object not linked in; image may not run 1>selfsimilarity.obj : error LNK2011: precompiled object not linked in; image may not run 1>util.obj : error LNK2011: precompiled object not linked in; image may not run 1>input_array_utility.obj : error LNK2011: precompiled object not linked in; image may not run 1>stabilizer.obj : error LNK2011: precompiled object not linked in; image may not run 1>C:\bin\bin\Release\opencv_world2413.dll : fatal error LNK1120: 20 unresolved externals ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Now, I'm stack building opencv_world24135.dll

blaisexen gravatar imageblaisexen ( 2018-02-19 15:23:12 -0600 )edit

I also thought about this: https://msdn.microsoft.com/en-us/libr...

blaisexen gravatar imageblaisexen ( 2018-02-19 15:38:37 -0600 )edit

May I know what are the command lines to link those files? maybe: link /dll:opencv_world2413.dll util.obj stabilizer.obj selfsimilarity.obj

is that it?

blaisexen gravatar imageblaisexen ( 2018-02-20 02:57:08 -0600 )edit

To me it seems you are randomly linking libs you did not compile yourself?

StevenPuttemans gravatar imageStevenPuttemans ( 2018-02-21 04:04:05 -0600 )edit

no, no, I compiled it my self, it's very simple but needs time when done because of my dual core cpu only. I can compile any version of opencv, to make opencv_world, but I can't make opencv_world with opencv version 2.4.13.5 or below, that's my goal to make opencv_world24135.dll BUT problems on object not linked.

blaisexen gravatar imageblaisexen ( 2018-02-21 13:34:22 -0600 )edit

The "requires target" like zlib are already fixed, the version control is already fixed, the last problem is the object not linked.

blaisexen gravatar imageblaisexen ( 2018-02-21 13:36:28 -0600 )edit

Please help 1 Lib for OpenCv 24135

blaisexen gravatar imageblaisexen ( 2018-03-11 22:20:54 -0600 )edit