2024-10-11 05:56 AM - edited 2024-10-11 06:09 AM
Hi,
I have a server in AWS which I want to use to build and release my firmware. I installed v1.16.0 on my system as well as on the server.
I cloned the project on both the systems and build is successful on my system. But, on the server, I am getting the following error for some reason:
In file included from ../Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_i2c.c:323:
../Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal.h:30:10: fatal error: SEGGER_RTT.h: No such file or directory
30 | #include "SEGGER_RTT.h"
| ^~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Drivers/STM32L4xx_HAL_Driver/Src/subdir.mk:97: Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_i2c.o] Error 1
make: *** [makefile:84: all] Error 2
make: Leaving directory '/home/ubuntu/projects/hotel_lock_test/fw_dev_project_hotel_lock_host/Release'
Same project build is successful on my system without making any changes. what could be the issue?
Solved! Go to Solution.
2024-10-14 12:40 AM
Hi All,
I managed to fix the issue.
As it turns out, STM32CubeIDE uses relative paths of the system for all the include folders and not absolute paths(Default behaviour of the IDE as far as I can tell). So, I had to manually configure the project to use relative paths.
After updating the project to use relative paths, its building on the server.
2024-10-11 06:02 AM
Hi,
-> missing or wrong path /includes etc.
2024-10-11 06:11 AM
Hi,
If paths are not proper, then it should not build on my system as well right? Even from CLI/STM32CubeIDE. But firmware gets built on my system.
Also, its not like I have to configure any path when I clone the project. It works out of the box when I clone on my system.
2024-10-11 07:19 PM
2024-10-14 12:40 AM
Hi All,
I managed to fix the issue.
As it turns out, STM32CubeIDE uses relative paths of the system for all the include folders and not absolute paths(Default behaviour of the IDE as far as I can tell). So, I had to manually configure the project to use relative paths.
After updating the project to use relative paths, its building on the server.