编辑/etc/apt/sources.list文件, 在文件最前面添加以下条目(操作前做好相应备份)
cd /etc/apt
sudo cp sources.list sources.list.bak
sudo gedit sources.list
增加阿里云,在source.list文件开头增加如下内容
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
sudo apt update
sudo apt upgrade
sudo apt install gcc-10 g++-10 build-essential git dkms
git clone https://github.com/brektrou/rtl8821CU.git
cd rtl8821CU
sudo ./dkms-install.sh
下载cmake3.16.6:https://download.csdn.net/download/qq_46107892/87517469
tar -zxvf cmake-3.16.6-linux-x86_64.tar.gz
sudo gedit /etc/profile
export CMAKE_HOME=/home/youzhu/Anzen/cmake-3.16.6-Linux-x86_64/bin
export PATH=$CMAKE_HOME:$PATH
source /etc/profile
cmake --version
在/usr/src/目录下新建cmake目录,cd /usr/src/cmake/,将源码下载到此目录,之后都在该目录下操作。
将压缩包解压
tar xf cmake-3.16.6.tar.gz
sudo chmod -R 777 cmake-3.16.6
安装build依赖包
sudo apt-get install build-essential
sudo apt-get install libssl-dev
./bootstrap
sudo make -j4
sudo make install
https://github.com/stevenlovegrove/Pangolin/tree/v0.5
sudo apt install libgl1-mesa-dev
sudo apt install libglew-dev
mkdir build && cd build
cmake分析源代码
cmake ..
Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY
OPENGL_INCLUDE_DIR)
sudo apt-fast install libgl1-mesa-dev
sudo make -j4
sudo make install
cd examples/HelloPangolin
./HelloPangolin