i download opencv 3.1.0
and build it with cmake i unchecked BUILD_SHARED_LIBS
after building finish i try to compile an c++ code as static lib and this is my
CMakeListed.txt
file
cmake_minimum_required(VERSION 2.8)
PROJECT(word)
set(OpenCV_DIR "/home/medozeus/videos/opencv/share/opencv")
FIND_PACKAGE( OpenCV REQUIRED )
INCLUDE_DIRECTORIES( ${OpenCV_INCLUDE_DIRS} )
ADD_EXECUTABLE(wordx main.cpp)
TARGET_LINK_LIBRARIES (wordx ${OpenCV_LIBS})
its compiled without error and i run the program also without error but when i send the program to another pc and run it its give me
error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or directory
this is my 3rdparty
folder content after build
and the lib inside 3rdparty
content
but the source code have all the library i don't know why when i build it only build one library in 3rdparty mabye this cause the error
error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or directory
this is my 3rdparty
folder content in source code of open cv
any idea