Ask Your Question
0

Recompile just one module

asked 2016-03-02 13:45:07 -0600

Hi all, I would like to modify the objectdetect module to expand its capabilities. I was wondering if it is necessary to recompile everything from source or if it exist a way to compile just that module, leaving the remaining untouched. Thank you.

edit retag flag offensive close merge delete

Comments

If you just adapt that sourcecode and do a rebuilt of the OpenCV library then only that part will get rebuilt. This will be the fastest. Else you will have to adapt the CMAKE pipeline, which will take in the end much longer than just building everything again.

StevenPuttemans gravatar imageStevenPuttemans ( 2016-03-03 04:33:38 -0600 )edit

1 answer

Sort by » oldest newest most voted
1

answered 2016-03-04 00:58:05 -0600

berak gravatar image

updated 2016-03-04 01:06:49 -0600

imho, it's impossible to compile objdetect as a single module, but you could try to build a "minimal" version of opencv, while youre working on that.

objdetect's own dependancies are:

opencv_core;opencv_imgproc;opencv_ml;opencv_imgcodecs;opencv_videoio;opencv_highgui

so you definitely need those, but i'd try (maybe even in a seperate build folder) to tick off any other BUILD_opencv_XXX module option (also, BUILD_TESTS,BUILD_opencv_apps, etc) in cmake

PS: a complete build takes ~1 min on my box then ;)

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-03-02 13:45:07 -0600

Seen: 838 times

Last updated: Mar 04 '16