I just started learning Legato and discovered this issue while following the official website.
(lsh:wp76stable) shaw@shaw-Ubuntu:~/share/leafWorkspace/legato$ make wp76xx
Building Legato for target 'wp76xx'
modules/WiFi/moduleDefs:12: Legato WiFi version is undefined...
KSET build/wp76xx/.config - TARGET_WP76XX
KCONFIG build/wp76xx/.config
GEN build/wp76xx/.config.mk
Building Legato for target 'wp76xx'
modules/WiFi/moduleDefs:12: Legato WiFi version is undefined...
GEN version
GEN build/wp76xx/framework/include/le_config.h
MAKE tools
make[1]: 进入目录“/home/shaw/share/leafWorkspace/legato”
Using ninja installed at: /usr/bin/ninja
GEN /home/shaw/share/leafWorkspace/legato/build/tools/build.ninja
Tools arch: x86_64
MAKE mkPatch
make[2]: 进入目录“/home/shaw/share/leafWorkspace/legato/framework/tools/mkPatch”
CCLD /home/shaw/share/leafWorkspace/legato/bin/mkPatch
make[2]: 离开目录“/home/shaw/share/leafWorkspace/legato/framework/tools/mkPatch”
NINJA /home/shaw/share/leafWorkspace/legato/build/tools/build.ninja
[86/86] Linking tool
make[1]: 离开目录“/home/shaw/share/leafWorkspace/legato”
GEN sources.md5
GEN package.properties
GEN build/wp76xx/config.sh
MAKE framework
make[1]: 进入目录“/home/shaw/share/leafWorkspace/legato”
GEN /home/shaw/share/leafWorkspace/legato/build/wp76xx/framework/build.ninja
NINJA /home/shaw/share/leafWorkspace/legato/build/wp76xx/framework/build.ninja
[71/71] Dynamic linking liblegato
COPY /home/shaw/share/leafWorkspace/legato/build/wp76xx/framework/lib/libComponent_le_pa_start.so
CCLD /home/shaw/share/leafWorkspace/legato/build/wp76xx/framework/bin/startSystem
MKEXE /home/shaw/share/leafWorkspace/legato/build/wp76xx/framework/bin/supervisor
ninja: error: rebuilding '/home/shaw/share/leafWorkspace/legato/build/wp76xx/framework/supervisor/build.ninja': '/home/shaw/share/leafWorkspace/legato/build/tools/mk', needed by '/home/shaw/share/leafWorkspace/legato/build/wp76xx/framework/supervisor/build.ninja', missing and no known rule to make it
make[1]: *** [Makefile.framework:329:/home/shaw/share/leafWorkspace/legato/build/wp76xx/framework/bin/supervisor] 错误 1
make[1]: 离开目录“/home/shaw/share/leafWorkspace/legato”
make: *** [Makefile:561:framework] 错误 2
(lsh:wp76stable) shaw@shaw-Ubuntu:~/share/leafWorkspace/legato$ sudo apt-get install ninja-build cmake
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
ninja-build 已经是最新版 (1.10.0-1build1)。
cmake 已经是最新版 (3.16.3-1ubuntu1.20.04.1)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
(lsh:wp76stable) shaw@shaw-Ubuntu:~/share/leafWorkspace/legato$ make clean
modules/WiFi/moduleDefs:12: Legato WiFi version is undefined...
Cleaning...
CLEAN
(lsh:wp76stable) shaw@shaw-Ubuntu:~/share/leafWorkspace/legato$ make wp76xx
Building Legato for target 'wp76xx'
modules/WiFi/moduleDefs:12: Legato WiFi version is undefined...
KSET build/wp76xx/.config - TARGET_WP76XX
KCONFIG build/wp76xx/.config
GEN build/wp76xx/.config.mk
Building Legato for target 'wp76xx'
modules/WiFi/moduleDefs:12: Legato WiFi version is undefined...
GEN version
GEN build/wp76xx/framework/include/le_config.h
MAKE tools
make[1]: 进入目录“/home/shaw/share/leafWorkspace/legato”
Using ninja installed at: /usr/bin/ninja
GEN /home/shaw/share/leafWorkspace/legato/build/tools/build.ninja
Tools arch: x86_64
MAKE mkPatch
make[2]: 进入目录“/home/shaw/share/leafWorkspace/legato/framework/tools/mkPatch”
CCLD /home/shaw/share/leafWorkspace/legato/bin/mkPatch
make[2]: 离开目录“/home/shaw/share/leafWorkspace/legato/framework/tools/mkPatch”
NINJA /home/shaw/share/leafWorkspace/legato/build/tools/build.ninja
[86/86] Linking tool
make[1]: 离开目录“/home/shaw/share/leafWorkspace/legato”
GEN sources.md5
GEN package.properties
GEN build/wp76xx/config.sh
MAKE framework
make[1]: 进入目录“/home/shaw/share/leafWorkspace/legato”
GEN /home/shaw/share/leafWorkspace/legato/build/wp76xx/framework/build.ninja
NINJA /home/shaw/share/leafWorkspace/legato/build/wp76xx/framework/build.ninja
[71/71] Dynamic linking liblegato
COPY /home/shaw/share/leafWorkspace/legato/build/wp76xx/framework/lib/libComponent_le_pa_start.so
CCLD /home/shaw/share/leafWorkspace/legato/build/wp76xx/framework/bin/startSystem
MKEXE /home/shaw/share/leafWorkspace/legato/build/wp76xx/framework/bin/supervisor
ninja: error: rebuilding '/home/shaw/share/leafWorkspace/legato/build/wp76xx/framework/supervisor/build.ninja': '/home/shaw/share/leafWorkspace/legato/build/tools/mk', needed by '/home/shaw/share/leafWorkspace/legato/build/wp76xx/framework/supervisor/build.ninja', missing and no known rule to make it
make[1]: *** [Makefile.framework:329:/home/shaw/share/leafWorkspace/legato/build/wp76xx/framework/bin/supervisor] 错误 1
make[1]: 离开目录“/home/shaw/share/leafWorkspace/legato”
make: *** [Makefile:561:framework] 错误 2
My CMAKE version is 3.16.3, does this have a significant impact?
I just added the swi-vscode-support package to my existing leaf profile and encountered a new issue. I don’t know why this is happening, I can find this .api file in the directory.