Ubuntu 16.04 Cmake+GDAL+OpenCV3.0

本文记录了在Ubuntu 16.04上使用Cmake、GDAL和OpenCV3.0进行项目构建的过程。首先确保安装了所有依赖,然后选择工作目录并创建子目录。接着创建CMakeLists.txt文件,指定项目名称和cmake版本。在src目录中创建另一个CMakeLists.txt文件,链接OpenCV和GDAL库。最后,在build目录下运行cmake命令生成可执行文件。
摘要由CSDN通过智能技术生成

Ubuntu 16.04 Cmake+GDAL+OpenCV3.0

These days I have to generate some projects with GDAL and OpenCV on the Ubuntu platform. And the use of cmake makes it quite simple. Here, I would like to record the way of using cmake for a better understanding.
In order to use this combination, you have to make sure that you have install all the stuff above properly. And then we can ues these to generate the project.

At first, you need to choose a proper directiory as the work place. Assuming it as the /home/tsubasa/CGO (which means Cmake+GDAL+OpenCV3.0), use the command as to create some subdirectories.

cd /home/tsubasa/CGO
mkdir src
mkdir build

Also, you need to create a txt named CMakeLists.txt to describe the thing cmake needs to do. Open it and copy the text below into it.

<
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值