Ubuntu中用到的软件库安装汇总

本篇博客将介绍在ubuntu系统下软件库安装问题。
阿里软件源,sources.list

一、OPENCV+QT安装

1.下载opencv,
2. 安装QT
3. 然后编译opencv,参考:https://blog.csdn.net/baidu_34971492/article/details/81665538。
注意在cmake时改成以下命令:
cmake -D CMAKE_BUILD_TYPE=Release -D WITH_QT=ON -D CMAKE_INSTALL_PREFIX=/usr/local … 然后 make ,sudo make install 一切不变

二、安装Proto

1… 源码安装protobuf:仿照:https://www.jianshu.com/p/d06f59e78297。其中./configure 那句改成:./configure --prefix=/usr/local。
2. 在工程中使用proto时,需要添加common文件夹下的utils文件夹。然后在cmakelists里面添加加:
#找到proto头文件
find_package( Protobuf REQUIRED )
PROTOBUF_GENERATE_CPP(SOURCES_PROTOBUF HEADERS_PROTOBUF
proto/proto_utils_test.proto
)
#找到proto解包生成的文件
include_directories(KaTeX parse error: Expected 'EOF', got '#' at position 29: …T_BINARY_DIR}) #̲编译utils文件夹,同时找到…{PROJECT_NAME} src/lidar_detector.cpp KaTeX parse error: Expected 'EOF', got '#' at position 21: …CES_PROTOBUF}) #̲链接库,将utils库链接上 …{PROJECT_NAME} ${OpenCV_LIBS} ${PCL_LIBRARIES} ${EIGEN3_LIBS} utils)
注意:proto源文件下的目录可能对输入路径后有更改,需要手动更改为“std::string whole_file_name = file_name;”

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值