I'm having trouble building Darknet with the configuration:
GPU=1
CUDNN=1
CUDNN_HALF=0
OPENCV=1
The error when running the Makefile is:
/usr/include/opencv4/opencv2/stitching/detail/warpers.hpp:47:10: fatal error: opencv2/core/cuda.hpp: No such file or directory 47 |
#include "opencv2/core/cuda.hpp"
I have installed cuda-11.2 and cudann successfully, and verified the installations.
I have tried running sudo apt install libopencv-dev and this was up-to-date.
My setup is:
os: Ubuntu 20.04
cuda version: 11.2
cudann version: 8.1
Can anyone help me install OpenCV such that I can build darknet with OpenCV?
I was able to solve the issue by running:
sudo apt-get purge --auto-remove libopencv-dev
which purged the package, along with any dependencies required for the package. I then reinstalled the package by running:
sudo apt install libopencv-dev
and Darknet then built without error.
Related
I am trying to install the CUDA toolkit on Ubuntu 16.04 with
sudo apt-get install cuda
and keep getting the following error:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
cuda : Depends: cuda-9-2 (>= 9.2.148) but it is not going to be
installed
E: Unable to correct problems, you have held broken packages
any help?
Option 1:
sudo apt-get install cuda-runtime-9-2
sudo apt-get install cuda-9-2
sudo apt-get install cuda
Option 2:
sudo apt-get install aptitude
sudo aptitude install cuda
I want to install a precompiled version of OpenCV 3.4.2 in the Raspberry using the following commands:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install pip3
sudo pip3 install opencv-python
But it failed and the error message was: "Could not find a version that satisfies the requirement opencv-python (from versions: ) No matching distribution found for opencv-python"
Then tried the following commands but the result was the same:
sudo apt-get install python3-pip
sudo pip install opencv-python
I had not problems installing it on my PC with ubuntu 16 using the same commands. This is the page im using for reference https://pypi.org/project/opencv-python/
I'm using Raspbian Jessie Lite, Python 3.4
The list of downloadable files for opencv includes binary wheels for many Python versions but for limited set of architectures: MacOSX on Intel, Linux on Intel 32 and 64 bits, Windows on Intel 32 and 64 bits. Raspberry Pi processors absent and there is no source code so pip cannot compile it.
The FAQ recommends to look up Pi wheels at https://www.piwheels.org/.
While trying to install artoolkit 6 on my ubuntu I get multiple errors.
First I tried installing artoolkit6-dev_6.0.2_amd64.deb which gave an error complaining not installed package artoolkit6-lib then I tried below.
sudo dpkg -i artoolkit6-lib_6.0.2_amd64.deb
Selecting previously unselected package artoolkit6-lib.
(Reading database ... 286474 files and directories currently installed.)
Preparing to unpack artoolkit6-lib_6.0.2_amd64.deb ...
Unpacking artoolkit6-lib (6.0.2) ...
dpkg: dependency problems prevent configuration of artoolkit6-lib:
artoolkit6-lib depends on libgoogle-glog0v5; however:
Package libgoogle-glog0v5 is not installed.
dpkg: error processing package artoolkit6-lib (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
artoolkit6-lib
But I cannot find libgoogle0v5 anywhere to install.
Where can I find this package ?
My machine info:
Linux xxxxx-ThinkPad-T410 3.19.0-84-generic #92-Ubuntu SMP Fri Mar 24 15:46:19 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
I ran into the same behavior ...
It seems that libgoogle-glog0v5 is a logger at application level.
I found a DL link here:
https://pkgs.org/download/libgoogle-glog0v5
Additionally I had to install the libgflags2v5 package, because the .deb file for libgoogle was missing that dependency.
https://packages.debian.org/stretch/libgflags2v5
Installation Process:
libgflags2v5
The installation via Ubuntu softwarecenter failed, but worked in a
terminal window:
sudo dpkg -i libgflags2v5_2.1.2-4_amd64.deb
libgoogle-glog0v5
sudo - libgoogle-glog0v5_0.3.4-0.1_amd64.deb
artoolkit6-lib
sudo dpkg -i artoolkit6-lib_6.0.2_amd64.deb
artoolkit6-dev
sudo dpkg -i artoolkit6-dev_6.0.2_amd64.deb
for installing the examples folder of ARToolkit 6 I also had to install
sudo dpkg -i libgflags2v5_2.1.2-4_amd64.deb
... and some others more. just follow the names of the missing dependency packages and install them.
sudo apt-get install libsndio6.1
sudo apt-get install x11proto-video-dev
libsdl2-2.0-0: Simple DirectMedia Layer:
sudo apt-get install libsdl2-2.0-0
sudo dpkg -i libsdl2-dev.deb
sudo dpkg -i artoolkit6-examples_6.0.2_amd64
finally the installation of the artoolkit6 samples is finished.
Description: Ubuntu 16.04.2 LTS
I hope this helps!
I'm installing Opencv on Ubuntu with VMWARE following this website.
I finished installing opencv and at Step #6, I put import cv2 and got this error:
[libprotobuf fatal /home/psh/opencv-master/3rdparty/protobuf/src/google
/protobuf/stubs/common.cc:78] This program was compiled against version
2.6.1 of the protocol Buffer runtime library, which is not compatible
with the installed version(3.1.0)...
How can I fix it?
I don't know exactly What is the reason. But I got the same problem like you. But instead of fix this error. I try new way to install OpenCV.
And I follow steps in this website: http://milq.github.io/install-opencv-ubuntu-debian/
Run these commands
sudo apt-get install libopencv-dev python-opencv
sudo apt-get autoremove libopencv-dev python-opencv
Download this script and Run
source install-opencv.sh
After about 1-hour installation, we can test by:
python
import cv2
cv2.__version__
If you want to install OpenCV in your virtualenv too, follow step #5 at this tutorial (your tutorial)
When I try to install scikit-image with pip2 there is show error. I have tried to find this problem solution.
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/scikit-image
Storing debug log for failure in /home/nshakib/.pip/pip.log
My guess is that you might have missing dependencies. I don't think Ubuntu 14.04 comes out of the box with any of the SciPy stack.
To answer your question try,
sudo apt-get install python-matplotlib python-numpy python-pil python-scipy
Then
sudo apt-get install build-essential cython
Finally
sudo apt-get install python-skimage
If that still doesn't work, you could try using the Anaconda Distribution for Python 2.7 from Continuum Analytics.
It comes with many of the major packages built-in and has a great package manager that manages dependencies.
https://docs.continuum.io/anaconda/install#anaconda-install
The conda package would be installed with conda install scikit-image