Skip to content

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

@dzanis

Description

@dzanis

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions