2020-10-27 09:26 AM
Hi, I have problem to add vl53l1 library to my project created whit STM32CUBE ide , i use mcu
STM32G030FX, i unzip the file en.STSW-IMG007 under drivers/vl53l1/core and drivers/vl53l1/plattform ,after build the project i had this error
16:37:31 **** Build of configuration Debug for project TOF ****
make -j2 all
arm-none-eabi-gcc "../Drivers/VL53L1/platform/vl53l1_platform.c" -mcpu=cortex-m0plus -std=gnu11 -g3 -c -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/VL53L1/platform/vl53l1_platform.d" -MT"Drivers/VL53L1/platform/vl53l1_platform.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Drivers/VL53L1/platform/vl53l1_platform.o"
arm-none-eabi-gcc "../Drivers/VL53L1/core/vl53l1_api.c" -mcpu=cortex-m0plus -std=gnu11 -g3 -c -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/VL53L1/core/vl53l1_api.d" -MT"Drivers/VL53L1/core/vl53l1_api.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Drivers/VL53L1/core/vl53l1_api.o"
In file included from ../Drivers/VL53L1/platform/vl53l1_platform.c:65:0:
../Drivers/VL53L1/platform/vl53l1_platform.h:67:10: fatal error: vl53l1_ll_def.h: No such file or directory
#include "vl53l1_ll_def.h"
^~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Drivers/VL53L1/platform/subdir.mk:18: Drivers/VL53L1/platform/vl53l1_platform.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from ../Drivers/VL53L1/core/vl53l1_ll_def.h:74:0,
from ../Drivers/VL53L1/core/vl53l1_def.h:74,
from ../Drivers/VL53L1/core/vl53l1_api_strings.h:74,
from ../Drivers/VL53L1/core/vl53l1_api.h:67,
from ../Drivers/VL53L1/core/vl53l1_api.c:63:
../Drivers/VL53L1/core/vl53l1_ll_device.h:73:10: fatal error: vl53l1_types.h: No such file or directory
#include "vl53l1_types.h"
^~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Drivers/VL53L1/core/subdir.mk:51: Drivers/VL53L1/core/vl53l1_api.o] Error 1
"make -j2 all" terminated with exit code 2. Build might be incomplete.
16:37:50 Build Failed. 5 errors, 0 warnings. (took 18s.959ms)
2020-10-27 10:31 AM
> fatal error: vl53l1_types.h: No such file or directory
This is your error. Make sure this file exists and the path is included in your include directories.
Project Properties -> C/C++ Build -> Settings -> Tool Settings -> Include Paths