Ask Your Question
0

is img_hash a standalone module like opencv_world or a bug from cmake?

asked 2019-02-11 10:02:40 -0600

blaisexen gravatar image

is img_hash a standalone module like opencv_world or a bug from cmake? . because when I make build file of opencv_worldxxx, img_hash doesn't merge with opencv_worldXXX.DLL, instead acts like another module opencv_img_hashXXX.DLL

edit retag flag offensive close merge delete

Comments

that's why I don't include img_hash module from my opencv_worldXXX build.

blaisexen gravatar imageblaisexen ( 2019-02-11 10:19:10 -0600 )edit
1

unless someone will quid me a way to merge this 2 DLL(opencv_worldXXX.dll and opencv_img_hashXXX.dll) into 1

blaisexen gravatar imageblaisexen ( 2019-02-11 10:26:25 -0600 )edit

you can't, so don't. see below.

berak gravatar imageberak ( 2019-02-11 10:27:56 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-02-11 10:26:55 -0600

berak gravatar image

if you want to use ANY modules from opencv_contrib, you have to DISABLE the opencv_world module, else you get into serious cross-dependancy trouble.

so:

cmake -DBUILD_opencv_world=OFF

and later link to "single module libs", like opencv_core, opencv_imgproc, opencv_-dnn, opencv_img_hash , etc.

edit flag offensive delete link more

Comments

Hello there, I understand what you meant, but what I'm asking or question is WHY is is img_hash a standalone module like opencv_world or a bug from cmake? . because when I make build file of opencv_worldxxx, img_hash doesn't merge with opencv_worldXXX.DLL, instead acts like another module opencv_img_hashXXX.DLL, that's why I don't include img_hash module from my opencv_worldXXX build. unless someone will quid me a way to merge this 2 DLL(opencv_worldXXX.dll and opencv_img_hashXXX.dll) into 1

blaisexen gravatar imageblaisexen ( 2019-02-11 10:38:48 -0600 )edit

idk, what you mean with "standalone" here, but the img_hash module depends on core and imgproc

berak gravatar imageberak ( 2019-02-11 10:44:51 -0600 )edit

can you also try to be a bit more concise ? e.g. you don't "include" modules, and you don't link dll's (but libs)

berak gravatar imageberak ( 2019-02-11 10:46:27 -0600 )edit

hi, I can build with TBB so I have tbb.dll, with GStreamer then I have dlls too, but with OpenCv_World I want only 1 DLL file.

I understand, I can build opencv_worldXXX.DLL without "img_hash" module, because when I try to include "img_hash" module in makes another standalone module, like opencv_img_hashXXX.DLL, I want to build 1 single standalone for opencv_worldXXX.DLL, because every time I build img_hash doesn't merge into opencv_world modules, it makes another file "opencv_img_hashXXX.DLL"

that's why I ask if "is img_hash" module a standalone module?

blaisexen gravatar imageblaisexen ( 2019-02-11 11:00:28 -0600 )edit

but with OpenCv_World I want only 1 DLL file.

you cannot use opencv_world with contrib modules. full stop.

berak gravatar imageberak ( 2019-02-11 11:08:11 -0600 )edit

@berak, I can include all the contrib modules without dependencies, including img_hash,,,,all of them, BUT during build ONLY 1 module is not responding to be merge or embedded into "OpenCv_WorldXXX" and that is img_hash that makes another external file which is "opencv_img_hash401.dll",,,, I know it's a CMAKE issue, I already reported it or that's why I ask if OpenCV team knows this, thank you.

blaisexen gravatar imageblaisexen ( 2019-02-11 11:30:03 -0600 )edit

@blaisexen, sorry, i have no idea, what you mean

berak gravatar imageberak ( 2019-02-11 11:47:43 -0600 )edit

@berak my bad, I'm not good in Grammar and explanation, but I hope you understand now what I meant. thank you

blaisexen gravatar imageblaisexen ( 2019-02-11 12:31:41 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2019-02-11 10:02:40 -0600

Seen: 602 times

Last updated: Feb 11 '19