0

I have two versions of libjpeg library. One is the system library /usr/lib/x86_64-linux-gnu/libjpeg.so, and the another is the newer one that I have built manually /vol/me/lib/libjpeg.so. I want to install opencv that uses the new library instead of the system one. How can I use cmake/cmake-gui to do that?

Tu Bui
  • 1,660
  • 5
  • 26
  • 39
  • Take a look inside _CMakeLists.txt_ file and figure out which environment variable is used to locate libjpeg library. You can then modify that environment variable to make it point to your newer _libjpeg_ library location. – yildirim Dec 30 '14 at 09:59
  • @yildirim in CMakeList.txt I only see two options: "do not build libjpeg" (which means CMake found the existing libjpeg in the system), and "Build libjpeg from source shifted with opencv"). There is no option for me to choose a specific path to libjpeg – Tu Bui Dec 30 '14 at 15:34
  • 1
    http://stackoverflow.com/a/10465735/724461 – Andrey Kamaev Jan 02 '15 at 14:16
  • 2
    Possible duplicate of [How to compile OpenCV with libjpeg-turbo?](http://stackoverflow.com/questions/10465209/how-to-compile-opencv-with-libjpeg-turbo) – usr1234567 Dec 20 '15 at 10:17
  • @AndreyKamaev It works. Please make it as an answer so that I can accept. – Tu Bui Jan 06 '16 at 10:31

0 Answers0