Error of "make wp76xx"

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

how about doing this?


sudo apt-get install ninja-build
sudo apt-get install cmake
make clean
make wp76xx

Still not possible, it’s still the same problem.

(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

can you try with CMAKE version 3.10.2?

I have tried this version with Ubuntu 18, no problem is found

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.

make[1]: 离开目录“/home/shaw/share/leafWorkspace/legato”
  MKSYS     modules/WiFi/wifi.sdef
** ERROR:
/home/shaw/share/leafWorkspace/legato/platformAdaptor/at/components/le_pa_avc/Component.cdef:15:8: error: Can't find dependent .api file: 'le_atLimits.api'.
make: *** [Makefile:566:system] 错误 1

i don’t know if this is significant impact, but i can compile in Ubuntu 16 and Ubuntu 18
which WP76 package are you compiling?

I’m not very familiar with this yet
I just pulled the source code and wanted to execute “make wp76xx”.

are you compiling inside VSCode with “leaf shell”?

yes,I followed the steps on the manual page.

are you installing like this?

oh,thanks :partying_face:
I just tried this method and it successfully.