Cannot install artoolkit 6 - artoolkit

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!

Related

Building Darknet: Installing OpenCV for CUDA

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.

Nvidia 9.2 CUDA toolkit nvcc install error

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

error while loading shared libraries: libMagickCore-7.Q16HDRI.so.6

I have been trying to install ImageMagick in Ubuntu 16.04 to use with movie.py
I have installed ImageMagick 7 but when I check the version from the command line
convert --version
It gives error as
convert: error while loading shared libraries: libMagickCore-7.Q16HDRI.so.6: cannot open shared object file: No such file or directory
I also tried running
sudo ldconfig /user/local/lib
But, still getting same error.
Edit 2: How I installed
Downloaded two rpm files from imagemagick.org
run following commands to install in Ubuntu 16.04
sudo alien -i ImageMagick-libs-7.0.7-37.x86_64.rpm
sudo alien -i ImageMagick-7.0.7-37.x86_64.rpm
You may need to run this: ldconfig /usr/local/lib
Found that the LD_LIBRARY_PATH variable isn't being created by the installation of ImageMagick, so when I created it manually (on Linux Mint 19) -
LD_LIBRARY_PATH=/usr/local/lib
export LD_LIBRARY_PATH
Then the ImageMagick commands work, without generating the error message -
convert: error while loading shared libraries: libMagickCore-7.Q16HDRI.so.6: cannot open shared object file: No such file or directory
I also encountered this error when attempting to install ImageMagick 7.0.10 on Ubuntu 20.04 (using WSL on Windows 10).
Running this fixed my problem:
sudo ldconfig /usr/lib64
I found this folder by examining the deb:
dpkg -c imagemagick-libs_7.0.10-57_amd64.deb | grep libMagickCore-7.Q16HDRI.so.8
This showed:
lrwxrwxrwx root/root 0 2021-01-09 09:59 ./usr/lib64/libMagickCore-7.Q16HDRI.so.8 -> libMagickCore-7.Q16HDRI.so.8.0.0
I would suggest you find where the missing library is located:
sudo find /usr /opt / -type f -name libMagickCore-7.Q16HDRI.so.6
Then check your ldconfig settings match in:
/etc/ld.so.conf
What worked for me:
Uninstall native version (if you have installed from tar.gz)
cd ImageMagick-7.1.0-19/
sudo make uninstall
Remove apt version
sudo apt remove imagemagick
sudo apt purge imagemagick
Do simple install
sudo apt install imagemagick

Problems installing scikit-image in ubuntu 14.04

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

Installing ROS Indigo on Ubuntu 14.04.2

System Information:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.2 LTS
Release: 14.04
Codename: trusty
Error message we get:
The following packages have unmet dependencies:
ros-indigo-desktop-full : Depends: ros-indigo-desktop but it is not going to be installed
Depends: ros-indigo-perception but it is not going to be installed
Depends: ros-indigo-simulators but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
If I explore the error message further, this is what I get:
ros-indigo-cpp-common : Depends: libconsole-bridge0.2 but it is not installable
Depends: libboost-all-dev but it is not installable
Depends: libconsole-bridge-dev but it is not installable
I have successfully installed ROS Indigo on Ubuntu 14.04. So be assured that it can be done.
I have seen many of these errors when installing ROS packages. There seems to be some error in the package management system in Ubuntu (aptitude). You may try
sudo apt-get update
sudo apt-get install -f
If it doesn't work, try to manually install some dependencies by
sudo apt-get install ros-indigo-simulators
sudo apt-get install ros-indigo-perception
Hope it helps.
My suggestion would be to delete the old installation as manual installations of dependencies may be too much. I have written a complete end to end blog on the installation of ROS Indigo over Ubuntu 14.04.
For those whom still had problems after trying everything.
I have tracked dependencies and found out that the problem is libboost, I had the version 1.55 but some of ros-indigo modules require the 1.54 version
Try these commands
sudo apt-get install libboost1.54-tools-dev
sudo apt-get install libboost-tools-dev
sudo apt-get install libboost-mpi-python1.54.0
sudo apt-get install libboost-mpi-python1.54-dev
sudo apt-get install libboost-mpi-python-dev
then you can finally
sudo apt-get install ros-indigo-desktop-full
Hope this helps

Resources