CMake编译

 

安装CMake

sudo apt  install cmake-curses-gui

 

切换到CMakeLists.txt目录

ccmake .       生成Makefile

make             开始编译

 

 

https://blog.csdn.net/kai_zone/article/details/82656964

 

(10条消息) ubuntu中USB摄像头gstreamer方式图像采集、显示、录像及回放功能设计——(1)_一,阵,风的博客-CSDN博客_gstreamer 摄像头

 

使用Gstreamer 作为数据源输出视频数据 - 简书 (jianshu.com)

 

(10条消息) Gstreamer读取摄像头 - CSDN

 

CUDA安装

https://blog.csdn.net/m0_37605642/article/details/114059682

 

CUDA下载地址:https://developer.nvidia.com/cuda-toolkit-archive

 

wget https://developer.download.nvidia.com/compute/cuda/11.5.0/local_installers/cuda_11.5.0_495.29.05_linux.run

sudo sh cuda_11.5.0_495.29.05_linux.run

 

 

  1. 配置环境变量
    >>> sudo gedit ~/.bashrc
     
    export PATH=/usr/local/cuda-11.5/bin${PATH:+:${PATH}}
    export LD_LIBRARY_PATH=/usr/local/cuda-11.5/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
     
  2. 更新环境变量
    >>> source ~/.bashrc
  1. 查看cuda是否安装成功
    >>> nvcc -V

 安装numpy

sudo apt-get install python-numpy

 

ubuntu

查看系统版本

sudo lsb_release -a

 

posted @ 2022-05-19 16:33  agui2022  阅读(78)  评论(0编辑  收藏  举报