Releases: ctu-vras/opencv
Releases · ctu-vras/opencv
OpenCV 4.2.0+dfsg5 built for Jetpack 5.1.3 with GCC 9 and CUDA support
OpenCV version from Ubuntu Focal built with full CUDA 11.4 support for Jetpack 5.1.3. Intended to be run on Nvidia Jetson AGX Xavier or Orin computers. This version doesn't break ROS Noetic packages as the NVidia-provided one does.
To install the binary packages
Install Jetpack 5.1.3 (5.1.2 should also work) + NVidia SDK. Do not try this on other versions!
wget https://github.com/ctu-vras/opencv/releases/download/4.2.0-jetpack5.1.3/opencv-4.2.0-jetpack5.1.3.tar.gz
tar -xvf opencv-4.2.0-jetpack5.1.3.tar.gz
sudo apt install ./*.deb
sudo apt-mark hold libopencv-dev
To build the binary packages (not usually needed)
Optionally install ccache (but it probably doesn't help much).
git clone https://github.com/ctu-vras/opencv -b 4.2.0-jetpack5.1.3 --depth 1
cd opencv
sudo vim /etc/apt/sources.list # and uncomment all `deb-src` lines.
sudo apt update
sudo apt build-dep opencv
# Now you can again comment the `deb-src` lines.
dpkg-buildpackage -us -uc -b -rfakeroot
# The built deb files are one directory higher.
OpenCV 3.2.0+dfsg4 built for Jetpack 4.5.1 with GCC 8.4.0
OpenCV version from Ubuntu Bionic built with CUDA 10.2 support for Jetpack 4.5.1/L4T 32.5. Intended to be run on Nvidia Jetson computers.
To install the binary packages
- Install Jetpack 4.5.1
sudo apt update
- Install GCC 8:
sudo apt install g++-8 && sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8 --slave /usr/bin/gcov gcov /usr/bin/gcov-8
- Download opencv-3.2.0-jetpack-4.5.1.zip, unpack it.
sudo apt install libjs-mathjax libomp5 libgphoto2-dev libopenexr-dev libgdcm2-dev libilmbase-dev libopenexr-dev libexif-dev libopenexr22 libopenblas-base libopenblas-dev libtbb-dev libtbb-dev libavresample-dev libraw1394-dev libdc1394-22-dev python3-numpy python3-numpy-abi9
sudo dpkg --remove --force-remove-reinstreq --force-depends --force-breaks libopencv-samples libopencv libopencv-licenses libopencv-python opencv-licenses libopencv-ts-dev libopencv3.2-jni libopencv3.2-java
sudo dpkg --force-depends-version --force-conflicts -i *.deb
- if the previous command fails, try running it once more
sudo apt-mark hold libopencv-dev
To build the binary packages (not usually needed)
- Install GCC 8:
sudo apt install g++-8 && sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8 --slave /usr/bin/gcov gcov /usr/bin/gcov-8
- optionally install ccache
git clone https://github.com/ctu-vras/opencv
cd opencv
sudo apt-get install build-essential cmake pkg-config unzip yasm git gfortran libjpeg8-dev libtiff5-dev libpng-dev libavcodec-dev libavformat-dev libswscale-dev libavresample-dev libxvidcore-dev x264 libx264-dev libfaac-dev libmp3lame-dev libtheora-dev libvorbis-dev libgtk-3-dev libgtk2.0-dev python-dev python-pip python3-dev python3-pip libpython3.6-dev python-numpy python3-numpy libtbb-dev libatlas-base-dev gfortran libeigen3-dev libhdf5-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-libav gstreamer1.0-gl gstreamer1.0-opencv gstreamer1.0-plugins-{base,bad,good,ugly} gstreamer1.0-python3-plugin-loader gstreamer1.0-vaapi libdc1394-22-dev libgdal-dev libgdcm2-dev libgoogle-glog-dev libgphoto2-dev liblapack-dev libleptonica-dev libopenexr-dev libprotobuf-dev libraw1394-dev libtesseract-dev libtiff-dev libv4l-dev libvtk6-dev ocl-icd-opencl-dev protobuf-compiler libjs-mathjax doxygen
dpkg-buildpackage -us -uc -b -rfakeroot