您的位置:首页 > 编程语言

ubuntu 18.04 64bit 编译qgroundcontrol 源代码

2020-06-28 04:57 120 查看

安装sudo apt-get install libsdl2-dev

安装qt 5.12.05

下载地址是:http://iso.mirrors.ustc.edu.cn/qtproject/archive/qt/5.12/5.12.5/qt-opensource-linux-x64-5.12.5.run

执行安装;

下载 qgroundcontrol 源代码

需要 echo " export Qt5_DIR=/opt/Qt5.12.5/5.12.5/gcc_64/lib/cmake/Qt5" >> ~/.bashrc

source ~/.bashrc

否则编译会报错;

git clone https://github.com/mavlink/qgroundcontrol.git
cd qgroundcontrol/
git submodule update --init --recursive

下载完成后,在 qgroundcontrol 源代码目录下执行:

cmake .

make -j4 

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: