Link thirdparty dynamically
I'm building static OpenCV 3.0.0 using DBUILD_SHARED_LIBS=OFF
working fine producing a beautiful .a file. However, thirdparty libraries such as libjasper and libwebp are linked into this static library (libopencv_imgproc). I would like to create static opencv libraries, but link libjasper and libwebp dynamically as these are very easy to install using apt.
". However, thirdparty libraries such as libjasper and libwebp are linked into this static library (libopencv_imgproc)" -- this is simply not true. you're responsible to link your program to all of opencv_imgproc's dependancies (also in the correct order) in the end.
what are you trying to achieve here ? to my knowledge, it's much better, to use the opencv supplied 3rdparty libs (statically), than depend on your system's dynamic libs (which always might differ in subtle, unforseen ways, causing trouble)