先把这个多看几遍
https://github.com/Stellarium/stellarium/blob/master/BUILDING.md
源码从 https://gitee.com/mirrors/stellarium 下载速度快
拿编译0.20.2举例
1.Stellarium Linux编译
Deepin 15.11和1002下均编译成功,Qt5.12.3。
很容易,照着guide走一遍就行,没试过打包,直接点击release就可以运行
sudo apt install build-essential cmake zlib1g-dev libgl1-mesa-dev libdrm-dev gcc g++ \
graphviz doxygen gettext git \
qtbase5-dev qtscript5-dev libqt5svg5-dev qttools5-dev-tools qttools5-dev libqt5opengl5-dev \
qtmultimedia5-dev libqt5multimedia5-plugins libqt5serialport5 libqt5serialport5-dev qtpositioning5-dev \
libgps-dev libqt5positioning5 libqt5positioning5-plugins
2.Stellarium Windows编译
VS 2017 community 选上C++安装,Qt5.12.5按照guide安装,然后安装cmake
stellarium源码下载时可以按照tag来git clone。如果单独下载release source code会漏掉util\spout2
如果需要,还要spou