How do I install different openCV versions without conflict?
I have the 2.4.10 version running fine, but want to install the 3.0.0 beta. I am using Linux. How do I install them so they do not conflict?
one way to do that would be:
cmake -BUILD_SHARED_LIBS=OFF
cmake -DCMAKE_INSTALL_PREFIX=/app/ocv3
you'll have to explicitly specify your include and libs path when building your app later, but at least you can have as many different opencv versions as you want this way, without them ever interfering.
What does a static build do exactly? So the include would be something like this -> #include </app> ?
g++ -I/app/ocv3/include
and link path like-L/app/ocv3/lib
So if I were to compile a basic program it would be something like this? --> g++ -I/app/ocv3/inlcude -L/app/ocv/lib
pkg-config --libs --cflags opencv
-o program program.cpp ?no, not with pkg-config (that's kind of xor), more like :
g++ -I /app/ocv3/include -L /app/ocv3/lib -lopencv_imgcodecs -lopencv_imgproc -lopencv_core -ljpeg -lpng -lrt -ldl -lz -lpthread -o program program.cpp
(that's probably missing some imglibs)
Just a follow up. I did a static install and everything looks right. I do have a question though.
In the non standard library(/app/ocv3/lib) there is a pkg-config file that has been created. Is there anyway I can use this for a static program build instead of typing the entire library list?
sorry, idk.
No issues, thanks for your help again.