Ai-Thinker-Open / Ai-Thinker-LoRaWAN-Ra-08

basic AiThinker Ra-08 ASR6601 SoC LoRaWAN Module 基于 ASR6601 安信可 Ra-08 LoRaWAN模组二次开发
45 stars 27 forks source link

/build/make/common.mk: No such file or directory #16

Open dzanis opened 6 months ago

dzanis commented 6 months ago

The description says that you need to run source build/envsetup.sh, but this does not work in Linux Mint The point is probably that in Linux Mint setting environment variables is different from Ubuntu I did this by adding environment variables to the end of the bashrc file ( for example like here How to Change User PATH variables on Linux)

xed ~/.bashrc

Added to the end of the file

export TREMO_SDK_PATH=/YOUR_PATH/Ai-Thinker-LoRaWAN-Ra-08
export PATH=$PATH:$TREMO_SDK_PATH

Like this

Screenshot_2024-05-06_11-39-39

Saved and called in the console

source  ~/.bashrc

Compilation started. But then an error popped up

zanis@Lenovo-B50-30:~/Documents/Ai-Thinker-LoRaWAN-Ra-08/projects/ASR6601CB-EVAL/examples/lora/pingpong$ make 
Compiling printf-stdarg.c...
/home/zanis/Documents/Ai-Thinker-LoRaWAN-Ra-08/platform/system/printf-stdarg.c:35:10: fatal error: stdint-gcc.h: No such file or directory
   35 | #include <stdint-gcc.h>
      |          ^~~~~~~~~~~~~~
compilation terminated.
make: *** [/home/zanis/Documents/Ai-Thinker-LoRaWAN-Ra-08/build/make/common.mk:66: out/printf-stdarg.o] Error 1

This error must be corrected manually in the file Ai-Thinker-LoRaWAN-Ra-08/platform/system/printf-stdarg.c by simply changing stdint-gcc.h to stdint.h