[英]How do I include VL53L0X headers into my STM32L project
Language: C 语言:C
MCU: STM32L151C8T6 单片机:STM32L151C8T6
IDE: Atollic TRUEstudio IDE:Atollic TRUEstudio
Library: https://www.st.com/content/st_com/en/products/embedded-software/proximity-sensors-software/stsw-img005.html 资料库: https : //www.st.com/content/st_com/en/products/embedded-software/proximity-sensors-software/stsw-img005.html
Problem: "fatal error: vl53l0x_api.h: No such file or directory #include "vl53l0x_api.h"
问题: "fatal error: vl53l0x_api.h: No such file or directory #include "vl53l0x_api.h"
I have included the library(core & platform folder) that was extracted from "en.STSW-IMG005" into my project, I have checked my [build settings > include directories] and both the folders are there, however it keeps failing to compile. 我已经将从“ en.STSW-IMG005”中提取的库(核心和平台文件夹)包含到我的项目中,我已经检查了[构建设置>包含目录],并且两个文件夹都在那儿,但是它始终无法编译。
It always show "fatal error: vl53l0x_api.h" but it jumps from file to file every time I compile eg. 它总是显示“致命错误:vl53l0x_api.h”,但是每次我编译时它都会从文件跳到另一个文件。 "vl53l0x_api_core.c", "vl53l0x_api_calibration.c", etc. “ vl53l0x_api_core.c”,“ vl53l0x_api_calibration.c”等
Reason why I must use the library provided by STM is because they did not release the I2C registers for this distance sensor, so I'm forced to use their library. 我必须使用STM提供的库的原因是因为它们没有释放该距离传感器的I2C寄存器,所以我不得不使用它们的库。 I have tried referencing guides provided for VL53L1X but it didnt quite work. 我尝试了为VL53L1X提供的参考指南,但效果不佳 。
You need to add the path where the header file is to the project. 您需要将头文件所在的路径添加到项目中。 Right click on the project > properties > build > paths and symbols 右键单击项目>属性>构建>路径和符号
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.