找不到libopencv_core.so.3.4.0的位置,即使程序安装完美且工作正常 [英] Can't find location of libopencv_core.so.3.4.0 even though program is installed and working perfectly
问题描述
我通过apt-get安装了openCV库。我正在尝试安装BGSLibrary并且cmake文件试图找到/usr/local/lib/libopencv_core.so.3.4.0脚本失败并手动查找文件夹不在那里。我已经尝试过搜索它并且没有任何东西在转动,事实上除了usr / local / share中的一个文件夹之外没有任何东西可以用于openCV,它只包含一些关于haar级联的cmake文件和文件夹。我甚至不知道openCV的安装位置,即使它工作正常。
我在openCV 3.4.0中使用python 2.7
重要的是让你的cMake报告(输出日志文件)直到你的问题中包含的错误报告,而不是黑盒子。无论如何..为下面的弓射击。
查看你的cMake输出/日志:
CMakeFiles / Makefile2:123456:目标'modules / python2 / CMakeFiles / opencv_python2.dir / all'的配方失败。
后跟类似的内容:
make [1]:*** [modules / python2 / CMakeFiles / opencv_python2.dir / all]错误2
make [1]:离开目录'/tmp/opencv32018MMDD7-12345-abcdefg/opencv-3.4.0/>OS system<'
Makefile:123:目标'all'的配方失败
make:*** [all]错误2
然后看看下面是否显示:
make [2]:***没有规则来制作'lib / cv2.so'所需的目标'/libpython2.7.so'。停止。
如果是这样,你需要检查CMake / Modules / FindPythonLibs.cmake
文件该怎么做。 Github查看此处L30-L35 在cMake pythonlib文件中如何正确设置python lib路径...以防止一系列潜在错误。
...但是没有cMake输出/ log文件已经给出,操作系统仍未确定..在黑暗中拍摄。不过,我希望它指出你正确的方向如何解决它。
I installed the openCV library through apt-get. I am trying to install the BGSLibrary and the cmake file tries to find " /usr/local/lib/libopencv_core.so.3.4.0" The script fails and looking manually the folder isn't there. I have tried searching for it and nothing is turning, infact nothing is turning up for openCV, apart from a folder in usr/local/share which only contains a few cmake files and folders about the haar cascade. I don't even know where openCV is installed even though it is working perfectly.
I am using python 2.7 with openCV 3.4.0
Its important to have your cMake report (outputlog file) up to the error reporting included into your question without it a black box is presented. Anyhow.. a shot for the bow below.
Look into your cMake output/log for:
CMakeFiles/Makefile2:123456: recipe for target 'modules/python2/CMakeFiles/opencv_python2.dir/all' failed.
followed by something like:
make[1]: *** [modules/python2/CMakeFiles/opencv_python2.dir/all] Error 2 make[1]: Leaving directory '/tmp/opencv32018MMDD7-12345-abcdefg/opencv-3.4.0/>OS system <' Makefile:123: recipe for target 'all' failed make: *** [all] Error 2
Then see if below is showing up:
make[2]: *** No rule to make target '/libpython2.7.so', needed by 'lib/cv2.so'. Stop.
If so you need to check CMake/Modules/FindPythonLibs.cmake file what to do. Github check here at L30-L35 in the cMake pythonlib file what to do exactly to set python lib path correctly... to prevent a cascade of underlying errors.
...but as no cMake output/log file was given and OS remains undetermined ..its a shot in the dark. Nevertheless, I hope it points you in the right direction how to fix it.
这篇关于找不到libopencv_core.so.3.4.0的位置,即使程序安装完美且工作正常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!