opencv/build/lib vs installation/OpenCV-3.4/lib/

asked 2020-03-22 11:54:15 -0600

andrei186 gravatar image

After installing openCV 3.4.10 two lib directories appear:

installation/OpenCV-3.4/lib/

and

opencv/build/lib

They have sets .so files of the same names. What is the purpose of these two sets? Perhaps one is for Python, the other for C++? If so, which one is for which?

edit retag flag offensive close merge delete

Comments

In opencv/build/lib all intermidiate files can be found. In tallation/OpenCV-3.4/lib/ you have got only file needed to build an application using opencv. python binding must be in site_pasckages repo.

LBerger gravatar imageLBerger ( 2020-03-22 16:24:19 -0600 )edit

Thank you, but you comment asks for more questions:

  1. What are intermidiate files and what are they for?

  2. OpenCV-3.4/lib/ you have got only file needed to build an application using opencv - I thought that all opencv libraries are intended to build an application using opencv. What else one can do with opencv libraries other than building applications using opencv?

  3. Do you mean that installation/OpenCV-3.4/lib/ is a subset of opencv/build/lib?

  4. When compiling a C++ application with g++ command, should -L point to installation/OpenCV-3.4/lib/ or to opencv/build/lib?

andrei186 gravatar imageandrei186 ( 2020-03-23 02:07:58 -0600 )edit

1 to build a .lib or .so linker needs all .o .o are intermediate files

2 compiler needs include and libs

3 No

4 use cmake to build your makefile

LBerger gravatar imageLBerger ( 2020-03-23 05:27:05 -0600 )edit