Closed f4exb closed 4 years ago
Verified, thanks!
The fix for this is to run:
sudo apt install libopencv-calib3d-dev libopencv-contrib-dev libopencv-features2d-dev libopencv-highgui-dev libopencv-imgcodecs-dev libopencv-objdetect-dev libopencv-shape-dev libopencv-stitching-dev libopencv-superres-dev libopencv-video-dev libopencv-videoio-dev libopencv-videostab-dev libopencv4.2-java libopencv-calib3d4.2 libopencv-contrib4.2 libopencv-features2d4.2 libopencv-highgui4.2 libopencv-imgcodecs4.2 libopencv-videoio4.2 libgdal26 libodbc1
I repeatedly added every package that Ubuntu said it would not install, and it looks like this is the full list of everything it needs. After running this installing libopencv-dev went without a hitch. A little interesting that Ubuntu knows which packages are needed but doesn't want to install them.
Thanks 4a454646, it worked for me.
The fix for this is to run:
sudo apt install libopencv-calib3d-dev libopencv-contrib-dev libopencv-features2d-dev libopencv-highgui-dev libopencv-imgcodecs-dev libopencv-objdetect-dev libopencv-shape-dev libopencv-stitching-dev libopencv-superres-dev libopencv-video-dev libopencv-videoio-dev libopencv-videostab-dev libopencv4.2-java libopencv-calib3d4.2 libopencv-contrib4.2 libopencv-features2d4.2 libopencv-highgui4.2 libopencv-imgcodecs4.2 libopencv-videoio4.2 libgdal26 libodbc1
I repeatedly added every package that Ubuntu said it would not install, and it looks like this is the full list of everything it needs. After running this installing libopencv-dev went without a hitch. A little interesting that Ubuntu knows which packages are needed but doesn't want to install them.
I've try this command, but it comes up with another dependencies that is libavresample-dev. I tried to install it too, but again it's needs another dependencies. thus loop never end to me
The fix for this is to run:
sudo apt install libopencv-calib3d-dev libopencv-contrib-dev libopencv-features2d-dev libopencv-highgui-dev libopencv-imgcodecs-dev libopencv-objdetect-dev libopencv-shape-dev libopencv-stitching-dev libopencv-superres-dev libopencv-video-dev libopencv-videoio-dev libopencv-videostab-dev libopencv4.2-java libopencv-calib3d4.2 libopencv-contrib4.2 libopencv-features2d4.2 libopencv-highgui4.2 libopencv-imgcodecs4.2 libopencv-videoio4.2 libgdal26 libodbc1
I repeatedly added every package that Ubuntu said it would not install, and it looks like this is the full list of everything it needs. After running this installing libopencv-dev went without a hitch. A little interesting that Ubuntu knows which packages are needed but doesn't want to install them.I've try this command, but it comes up with another dependencies that is libavresample-dev. I tried to install it too, but again it's needs another dependencies. thus loop never end to me
It looks like the loop will never end but just keep going, all the dependecies will be covered eventually
Thanks for the comment @4a454646 , I've did it, and as i said before it never end. But i've actually managed those issue by replacing apt-get into aptitude. So it'd looks like "sudo aptitude install libopencv-dev"
It looks like the loop will never end but just keep going, all the dependecies will be covered eventually
This did work for me and I could run my opencv projects in C++ as intended, but then I had another problem. After successfully doing this and running my codes, if I restarted my computer, my ubuntu wouldn't boot. I've tested this 4 times getting the same issue consistently, and then I formatted and reinstalled ubuntu 16, 18, and 20 and it happened all over again with all 3 OSs. Is anyone facing the same problem?
I'd also like to point out that the same is happening when I try to install SDL2 libraries, with those dependencies errors, with it being "fixed" when I install all the required versions, and with my ubuntu boot being messed up in the end.
That can happen unfortunately, it has happened to me on occasion (though not this one specifically). Installing packages as sudo can remove other necessary packages or create faults that, in worst case scenarios, brick the entire operating system.
Generally when I am installing packages, I save the output of apt list --installed
beforehand, if it bricks my system I go to tty, do a diff betewen the two and revert changes back.
Thanks for the comment @4a454646 , I've did it, and as i said before it never end. But i've actually managed those issue by replacing apt-get into aptitude. So it'd looks like "sudo aptitude install libopencv-dev"
This works for me! I have installed a fresh Ubuntu20.04 but the problem persists with apt, with aptitude the packages are installed successfully.
This helped me install libopencv-contrib-dev
vim /etc/apt/sources.list
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
sudo apt-get update
sudo apt install -y libopencv-dev
I am trying to install
libopencv-dev
in the Ubuntu 20.04 image but it fails:This doesn't seem consistent. In an Ubuntu 20.04 VM using Virtualbox it works fine.
libopencv-dev
and its dependencues are correctly installed:The
appveyor.yaml
can be found here: https://github.com/f4exb/sdrangel/blob/5c1de1510f702378e5eecf616a24cbca1a6cf32d/.appveyor.yml Complete link to failing job: https://ci.appveyor.com/project/f4exb/sdrangel/build/job/1djkuttwmcv4gnc4Thanks and best regards.