当前位置:网站首页>Ubantu1804 two opencv versions coexist
Ubantu1804 two opencv versions coexist
2022-06-11 20:40:00 【On the way 1216】
ubantu18.04 Bring their own opencv3.2.0
Due to the use indemind The binocular module needs to be installed opencv343;
First go opencv Download from the official website 343source Source code and extract ;
mkdir build && cd buildcmake Be sure to pay attention to the path , This installation is in /usr/local/opencv/opencv343
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local/opencv/opencv343 ..
Next, compile
sudo make -j4Execute the installation command
sudo make installtake OpenCV Add the library to the path , So that the system can find
sudo gedit /etc/ld.so.conf.d/opencv.conf
After executing this command, a blank file is opened , Never mind , Copy the following code , Save and close
/usr/local/opencv/opencv343
/usr/local/opencv/opencv343/libExecute the following command to make the configuration path effective
sudo ldconfig
To configure bash
sudo gedit /etc/bash.bashrc
Add... At the end of the text
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/opencv/opencv343/lib/pkgconfig
export PKG_CONFIG_PATHExecute the following command to make the configuration take effect
source /etc/bash.bashrc
perhaps
sudo ~/.bashrc
Open and add the following sentence
source /etc/bash.bashrc
to update
sudo updatedb
End pro test available .
Test the version , Back to client input
pkg-config opencv --modversionShow
3.4.3Express opencv Installation successful .
In the use of opencv343 when , Can be found in cmakelist Add... To the file
set(OpenCV_DIR "/home/tianbot/Downloads/opencv-3.4.3/build")
set(OpenCV_LIB_PATH "/usr/local/opencv/opencv343/lib")
set(OpenCV_INCLUDE_DIRS "/usr/local/opencv/opencv343/include") 边栏推荐
- unity package manager starting server stuck(Unity啟動卡在starting server,然後報錯)
- 2022-2028 global and Chinese thermopile infrared sensor market status and future development trend
- JMeter installation
- moderlarts第一次培訓
- 29. location對象
- php pcntl_fork 创建多个子进程解析
- The world's first public chain integrating commercial and financial fields
- Calculation of Zeno paradox
- Oracle case: ora-00600: internal error code, arguments: [4187]
- Redis第四话 -- redis高性能原理(多路复用)和高可用分析(备份、主从)
猜你喜欢

Using the flask framework to write the bezel

First modelarts training

STC hardware only automatic download circuit V2

修改本地微信小程序的AppID

【数据可视化】使用 Apache Superset 可视化 ClickHouse 数据

Interpretation of OCP function of oceanbase Community Edition

Weekly 02 | pour être honnête, je suis un étudiant du MIT

Role of RESNET residual block

Gestionnaire de paquets d'Unit é Starting Server Stuck

sql优化之DATE_FORMAT()函数
随机推荐
Log in with password and exit with error for three times.
unity package manager starting server stuck(Unity启动卡在starting server,然后报错)
8 r subset
Database introduction
29. Objet de localisation
频域滤波器
使用flask框架写挡板
The principle that the picture of QQ Post Bar changes when it is opened
UDP、TCP
[unity plug-in] shader keyword analysis tool shadercontrol
moderlarts第二次作业
ubantu1804 两个opencv版本共存
Modify appid of local wechat applet
Volcano engine, Alibaba cloud and Tencent cloud jointly released the 'ultra low delay' live broadcast technical standard
Recompile kubeadm to solve the problem of certificate expiration in one year
28. JS执行机制
Chrome V8 source code 48 The secret of weak type addition,'+'source code analysis
My favorite product management template - Lenny
【指标体系】最新数仓指标体系建模方法
Weekly 02 | pour être honnête, je suis un étudiant du MIT