linux编译动态&静态opencv

       动态:

              mkdir build_shared
              cd build_shared
              cmake ..
              make
              sudo make install

       静态:

              mkdir build_static
              cd build_static
              cmake .. -OpenCV_SHARED=OFF
              make
              sudo make install 

你可能感兴趣的:(第三方库编译)