本文最后更新于 2024-04-22,文章内容可能已经过时。

使用WSL尝试进入QG3101的图形化内核配置时提示缺少依赖

Build dependency: Please install the GNU C Compiler (gcc)
Build dependency: Please reinstall the GNU C Compiler - it appears to be broken
Build dependency: Please install the GNU C++ Compiler (g++)
Build dependency: Please reinstall the GNU C++ Compiler - it appears to be broken
Build dependency: Please install ncurses. (Missing libncurses.so or ncurses.h)
Build dependency: Please install a static zlib. (Missing libz.a or zlib.h)
Build dependency: Please install the openssl library (with development headers)
Build dependency: Please install 'unzip'

/home/zzr/project/qg3101/build/prereq.mk:12: recipe for target 'prereq' failed
Prerequisite check failed. Use FORCE=1 to override.
/home/zzr/project/qg3101/build/toplevel.mk:263: recipe for target 'out/host/.prereq-build' failed
make: *** [out/host/.prereq-build] Error 1

#### make failed to build some targets (1 seconds) ####

依照提示安装依赖即可

sudo apt install gcc
sudo apt install g++
sudo apt-get install libncurses5-dev
sudo apt-get install zlib1g-dev
sudo apt-get install libssl-dev
sudo apt install unzip