OpenCV 3.0 beta was once built from source. I connected it to QtCreator 3.4.0 (Qt5.4.1) via pkg-config in Ubuntu 14.10:
unix { CONFIG += link_pkgconfig PKGCONFIG += opencv } Projects normally collected, started and worked.
New Ubuntu 15.04 and OpenCV 3.0 rc1 have been released. Updated the first and rebuilt the second.
Building your own projects goes off well, all external dependencies are connected, but now when you start the program from QtCreator or simply from the terminal it shows that it cannot find the OpenCV plug-in libraries. I understand that you can simply specify the environment variable LD_LIBRARY_PATH, but I would like to understand in general terms what has changed and how to make it so that it was before.
Update: The ldd command on the project issues the following:
linux-gate.so.1 => (0xb77cc000) libopencv_core.so.3.0 => not found libopencv_features2d.so.3.0 => not found libopencv_highgui.so.3.0 => not found libopencv_imgcodecs.so.3.0 => not found libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xb76ae000) libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb7661000) libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb7644000) libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb7488000) /lib/ld-linux.so.2 (0xb77cd000) OpenCV is installed in "/ usr / local / lib". One gets the feeling that "/ usr / local" has ceased to be seen as a storage location for libraries. I understand correctly?
lddorreadelfwhich libraries it is associated with. - velikodniy 2:49 pmLD_LIBRARY_PATH="путь к библиотекам"or use the-rpathparameter ingccduring the build. If it works, then it just does not see the library and it is necessary to delve into the system settings. Other reasons I do not see. - velikodniy