Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

there is a BUILD_LIST option for cmake, where you can specify exactly the opencv modules you want / need.

looking at the bioinspired's cmakelists.txt we see, that we need at least: opencv_core

(though, no idea, what your program really does, i guess you still need some more, e.g. for loading images, gui, etc.)

i'd propose the following cmake options:

-DOPENCV_EXTRA_MODULES=/where/you/put/contrib/modules/bioinspired
-DBUILD_LIST=bioinspired,core,imgcodecs,imgproc,highgui
-DBUILD_SHARED_LIBS=OFF

but note, that linking your program later to static libs is much more difficult, than the dynamic case, because you

  • have to use the libs in dependancy order, e.g. anything dependant on core has to go before that in the list,
  • have to add all the nessecary system libs (that were conveniently linked already when using so's) , like -llibjpeg -lz -ldl now, those have to go to the end of the list


getting this right, might prove a bit painful, just saying...

there is a BUILD_LIST option for cmake, where you can specify exactly the opencv modules you want / need.need. (comma seperated list)

looking at the bioinspired's cmakelists.txt we see, that we need at least: opencv_core

(though, no idea, what your program really does, i guess you still need some more, e.g. for loading images, gui, etc.)

i'd propose the following cmake options:

-DOPENCV_EXTRA_MODULES=/where/you/put/contrib/modules/bioinspired
-DBUILD_LIST=bioinspired,core,imgcodecs,imgproc,highgui
-DBUILD_SHARED_LIBS=OFF

but note, that linking your program later to static libs is much more difficult, than the dynamic case, because you

  • have to use the libs in dependancy order, e.g. anything dependant on core has to go before that in the list,
  • have to add all the nessecary system libs (that were conveniently linked already when using so's) , like -llibjpeg -lz -ldl now, those have to go to the end of the list


getting this right, might prove a bit painful, just saying...