First of all install update and upgrade your system:
$ sudo apt update
$ sudo apt upgradeThen, install required libraries:
| !#/bin/bash | |
| # original: https://github.com/CMU-Perceptual-Computing-Lab/openpose/issues/912#issue-377202823 | |
| find src utils \( -name '*.cpp' -or -name '*.hpp' -or -name '*.h' \) \ | |
| -exec sed -i \ | |
| -e 's/CV_IMWRITE_/cv::IMWRITE_/g' \ | |
| -e 's/CV_LOAD_IMAGE_ANYDEPTH/cv::IMREAD_ANYDEPTH/g' \ | |
| -e 's/CV_LOAD_IMAGE_COLOR/cv::IMREAD_COLOR/g' \ | |
| -e 's/CV_L2/cv::NORM_L2/g' \ |
| # ATTENTION: this only helped me at building projects but not when installing | |
| # libcublas | |
| sudo cp /usr/lib/x86_64-linux-gnu/libcublas.so.10.2.2.89 /usr/local/cuda-10.2/lib64/ | |
| sudo ln -s /usr/local/cuda-10.2/lib64/libcublas.so.10.2.2.89 /usr/local/cuda-10.2/lib64/libcublas.so.10.2 | |
| sudo ln -s /usr/local/cuda-10.2/lib64/libcublas.so.10.2 /usr/local/cuda-10.2/lib64/libcublas.so | |
| # libcusolver, libcurand, libcufft | |
| sudo ln -s /usr/local/cuda-10.2/targets/x86_64-linux/lib/libcusolver.so.10 /usr/local/cuda-10.2/lib64/libcusolver.so.10.2 | |
| sudo ln -s /usr/local/cuda-10.2/targets/x86_64-linux/lib/libcurand.so.10 /usr/local/cuda-10.2/lib64/libcurand.so.10.2 |
| nmcli dev wifi list |
| [Name] | |
| Python Logs | |
| [Message pattern] | |
| ^(\d{4}-\d{2}-\d{2}\s[\S]+)\s\[?(\w+)\]?\s(.*) | |
| [Message start pattern] | |
| ^\d{4}-\d{2}-\d{2}\s[\S]+ | |
| [Time format] |
| # import for instances returned from class methods | |
| from __future__ import annotations | |
| import sys | |
| from typing import Optional, List, Any | |
| import cv2 | |
| from cars.colab.model.Global import CvRect | |
| from cars.colab.util import Units |
| @echo off | |
| :: when cmake-gui shows the error 'CXX compiler identification unknown' when trying to use the VS 2015 generator | |
| :: this script can help. It goes back to the following solution: | |
| :: https://stackoverflow.com/questions/14372706/visual-studio-cant-build-due-to-rc-exe/46166632#46166632 | |
| :: The reason is that cmake-gui always ends up using the Win 10 SDK where tools are missing for VS2015 | |
| :: This script opens a console and prompts it to use the 8.1 SDK | |
| cd "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\" | |
| %comspec% /k "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64 8.1 | |
| start cmake-gui |