简体   繁体   English

linux Mint上opencv的编译(安装)错误?

[英]Compilation (installation) error of opencv at linux Mint?

I am following that tutorial to install and compile opencv but it produces following errors after some point (%22 of installation) of execution of make我正在按照该教程安装和编译 opencv,但在执行make某个时间点(安装的 %22)后会产生以下错误

...
[ 22%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/system.cpp.o
[ 22%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/tables.cpp.o
Linking CXX shared library ../../lib/libopencv_core.so
CMake Error: cmake_symlink_library: System Error: Operation not permitted
CMake Error: cmake_symlink_library: System Error: Operation not permitted
make[2]: *** [lib/libopencv_core.so.2.4.9] Error 1
make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
make: *** [all] Error 2

I don't see the reason of the problem.我看不出问题的原因。 I am running it as root but it gives not permitted error in any ways.我以 root 身份运行它,但它以任何方式都not permitted error I also changed to different folders for installation, but it does not work.我也换了不同的文件夹进行安装,但还是不行。

Any Suggestion to solve ?有什么建议可以解决吗?

I have this problem as well.我也有这个问题。 Finally, I realized that I put opencv source code in the folder which is a symbol link to another folder.最后,我意识到我将 opencv 源代码放在文件夹中,这是到另一个文件夹的符号链接。 I simply put the folder in my home folder and make again.我只是将文件夹放在我的主文件夹中并再次制作。 The problem solved.问题解决了。 I do not know how you get this problem, and hope my solution will be useful for you.我不知道你是怎么得到这个问题的,希望我的解决方案对你有用。

I have solved this problem .... actually I have very low memory on my root file system so I mounted my pendrive to system using "ntfs-3g" driver using this tutorial我已经解决了这个问题......实际上我的根文件系统上的内存非常低,所以我使用本教程使用“ntfs-3g”驱动程序将我的pendrive安装到系统

https://help.ubuntu.com/community/Mount/USB https://help.ubuntu.com/community/Mount/USB

but be alert don't follow blind steeps.但要注意不要盲目攀登。

After this when I compiled files from my pendrive I did not get the error "CMake Error: cmake_symlink_library: System Error: Operation not permitted"在此之后,当我从 Pendrive 编译文件时,我没有收到错误“CMake 错误:cmake_symlink_library:系统错误:不允许操作”

Do not compile opencv on FAT systems, as its fails as a result of not being able of setting the executable bit on those filesystems.不要在 FAT 系统上编译 opencv,因为它由于无法在这些文件系统上设置可执行位而失败。 Using ext4 should be enough to avoid this kind of problems.使用 ext4 应该足以避免此类问题。

There's a good set of tutorials for installing opencv over here:这里有一组很好的安装 opencv 的教程:

https://www.pyimagesearch.com/2018/05/28/ubuntu-18-04-how-to-install-opencv/#comment-475432 https://www.pyimagesearch.com/2018/05/28/ubuntu-18-04-how-to-install-opencv/#comment-475432

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM