MAIN FOLDER
- main.cpp/main.h
- CMakeLists.txt :
idf_component_register(SRCS "main.cpp"
INCLUDE_DIRS "."
REQUIRES STC3115_Drivers Filters ICM_20948 ibNavSix driver esp32)
COMPONENT FOLDER
- STC3115_Drivers folder
- Filters folder
- ICM_20948 folder
- ibNavSix folder
- BME680 folder
FILTERS FOLDER
- filters.cpp/filters.h
-CMakeLists.txt :
idf_component_register(SRCS
"filters.cpp"
INCLUDE_DIRS ".")
ICM_20948 FOLDER
- ICM_20948.cpp/.h
- ICM_20948_C.c/.h
- CMakeLists.txt :
idf_component_register(SRCS
"ICM_20948.cpp"
"ICM_20948_C.c"
REQUIRES driver)
IBNAVSIX FOLDER
- ibNavSixInitialization.cpp/.h
- ibNavRoutine.cpp/.h
- CMakeLists.txt :
idf_component_register(SRCS
"ibNavSixInitialization.cpp"
"ibNavRoutine.cpp"
INCLUDE_DIRS "."
REQUIRES ICM_20948 STC3115_Drivers Filters driver esp32 BME680)
in my ibNavSixInitialisation.h :
#include "stc3115_Driver.h"
#include "filters.cpp"
#include "bme680.h" //From another component folder
#include "ICM_20948.h"
I got an error only on ICM_20948
[5/80] Building CXX object esp-idf/ibNavSix/CMakeFiles/__idf_ibNavSix.dir/ibNavSixInitialization.cpp.obj
FAILED: esp-idf/ibNavSix/CMakeFiles/__idf_ibNavSix.dir/ibNavSixInitialization.cpp.obj
ccache C:\Users\lassena\.espressif\tools\xtensa-esp32-elf\esp-2020r2-8.2.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-g++.exe -Iconfig -I../components/ibNavSix -IC:/repos/esp-idf/components/newlib/platform_include -IC:/repos/esp-idf/components/freertos/include -IC:/repos/esp-idf/components/heap/include -IC:/repos/esp-idf/components/log/include -IC:/repos/esp-idf/components/lwip/include/apps -IC:/repos/esp-idf/components/lwip/include/apps/sntp -IC:/repos/esp-idf/components/lwip/lwip/src/include -IC:/repos/esp-idf/components/lwip/port/esp32/include -IC:/repos/esp-idf/components/lwip/port/esp32/include/arch -IC:/repos/esp-idf/components/soc/esp32/include -IC:/repos/esp-idf/components/soc/include -IC:/repos/esp-idf/components/esp_rom/include -IC:/repos/esp-idf/components/esp_common/include -IC:/repos/esp-idf/components/xtensa/include -IC:/repos/esp-idf/components/xtensa/esp32/include -IC:/repos/esp-idf/components/esp32/include -IC:/repos/esp-idf/components/driver/include -IC:/repos/esp-idf/components/driver/esp32/include -IC:/repos/esp-idf/components/esp_ringbuf/include -IC:/repos/esp-idf/components/efuse/include -IC:/repos/esp-idf/components/efuse/esp32/include -IC:/repos/esp-idf/components/vfs/include -IC:/repos/esp-idf/components/esp_wifi/include -IC:/repos/esp-idf/components/esp_wifi/esp32/include -IC:/repos/esp-idf/components/esp_event/include -IC:/repos/esp-idf/components/esp_netif/include -IC:/repos/esp-idf/components/esp_eth/include -IC:/repos/esp-idf/components/tcpip_adapter/include -IC:/repos/esp-idf/components/app_trace/include -I../components/STC3115_Drivers -I../components/Filters -I../components/BME680 -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -std=gnu++11 -fno-exceptions -fno-rtti -D_GNU_SOURCE -DIDF_VER=\"v4.1-dirty\" -DESP_PLATFORM -MD -MT esp-idf/ibNavSix/CMakeFiles/__idf_ibNavSix.dir/ibNavSixInitialization.cpp.obj -MF esp-idf\ibNavSix\CMakeFiles\__idf_ibNavSix.dir\ibNavSixInitialization.cpp.obj.d -o esp-idf/ibNavSix/CMakeFiles/__idf_ibNavSix.dir/ibNavSixInitialization.cpp.obj -c ../components/ibNavSix/ibNavSixInitialization.cpp
In file included from ../components/ibNavSix/ibNavSixInitialization.cpp:1:
../components/ibNavSix/ibNavSixInitialization.h:7:10: fatal error: ICM_20948.h: No such file or directory
#include "ICM_20948.h"
^~~~~~~~~~~~~
compilation terminated.
[6/80] Building CXX object esp-idf/ibNavSix/CMakeFiles/__idf_ibNavSix.dir/ibNavSixRoutine.cpp.obj
FAILED: esp-idf/ibNavSix/CMakeFiles/__idf_ibNavSix.dir/ibNavSixRoutine.cpp.obj
ccache C:\Users\lassena\.espressif\tools\xtensa-esp32-elf\esp-2020r2-8.2.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-g++.exe -Iconfig -I../components/ibNavSix -IC:/repos/esp-idf/components/newlib/platform_include -IC:/repos/esp-idf/components/freertos/include -IC:/repos/esp-idf/components/heap/include -IC:/repos/esp-idf/components/log/include -IC:/repos/esp-idf/components/lwip/include/apps -IC:/repos/esp-idf/components/lwip/include/apps/sntp -IC:/repos/esp-idf/components/lwip/lwip/src/include -IC:/repos/esp-idf/components/lwip/port/esp32/include -IC:/repos/esp-idf/components/lwip/port/esp32/include/arch -IC:/repos/esp-idf/components/soc/esp32/include -IC:/repos/esp-idf/components/soc/include -IC:/repos/esp-idf/components/esp_rom/include -IC:/repos/esp-idf/components/esp_common/include -IC:/repos/esp-idf/components/xtensa/include -IC:/repos/esp-idf/components/xtensa/esp32/include -IC:/repos/esp-idf/components/esp32/include -IC:/repos/esp-idf/components/driver/include -IC:/repos/esp-idf/components/driver/esp32/include -IC:/repos/esp-idf/components/esp_ringbuf/include -IC:/repos/esp-idf/components/efuse/include -IC:/repos/esp-idf/components/efuse/esp32/include -IC:/repos/esp-idf/components/vfs/include -IC:/repos/esp-idf/components/esp_wifi/include -IC:/repos/esp-idf/components/esp_wifi/esp32/include -IC:/repos/esp-idf/components/esp_event/include -IC:/repos/esp-idf/components/esp_netif/include -IC:/repos/esp-idf/components/esp_eth/include -IC:/repos/esp-idf/components/tcpip_adapter/include -IC:/repos/esp-idf/components/app_trace/include -I../components/STC3115_Drivers -I../components/Filters -I../components/BME680 -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -std=gnu++11 -fno-exceptions -fno-rtti -D_GNU_SOURCE -DIDF_VER=\"v4.1-dirty\" -DESP_PLATFORM -MD -MT esp-idf/ibNavSix/CMakeFiles/__idf_ibNavSix.dir/ibNavSixRoutine.cpp.obj -MF esp-idf\ibNavSix\CMakeFiles\__idf_ibNavSix.dir\ibNavSixRoutine.cpp.obj.d -o esp-idf/ibNavSix/CMakeFiles/__idf_ibNavSix.dir/ibNavSixRoutine.cpp.obj -c ../components/ibNavSix/ibNavSixRoutine.cpp
In file included from ../components/ibNavSix/ibNavSixRoutine.cpp:3:
../components/ibNavSix/ibNavSixInitialization.h:7:10: fatal error: ICM_20948.h: No such file or directory
#include "ICM_20948.h"
^~~~~~~~~~~~~
compilation terminated.
[7/80] Building CXX object esp-idf/main/CMakeFiles/__idf_main.dir/main.cpp.obj
FAILED: esp-idf/main/CMakeFiles/__idf_main.dir/main.cpp.obj
ccache C:\Users\lassena\.espressif\tools\xtensa-esp32-elf\esp-2020r2-8.2.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-g++.exe -Iconfig -I../main -IC:/repos/esp-idf/components/newlib/platform_include -IC:/repos/esp-idf/components/freertos/include -IC:/repos/esp-idf/components/heap/include -IC:/repos/esp-idf/components/log/include -IC:/repos/esp-idf/components/lwip/include/apps -IC:/repos/esp-idf/components/lwip/include/apps/sntp -IC:/repos/esp-idf/components/lwip/lwip/src/include -IC:/repos/esp-idf/components/lwip/port/esp32/include -IC:/repos/esp-idf/components/lwip/port/esp32/include/arch -IC:/repos/esp-idf/components/soc/esp32/include -IC:/repos/esp-idf/components/soc/include -IC:/repos/esp-idf/components/esp_rom/include -IC:/repos/esp-idf/components/esp_common/include -IC:/repos/esp-idf/components/xtensa/include -IC:/repos/esp-idf/components/xtensa/esp32/include -IC:/repos/esp-idf/components/esp32/include -IC:/repos/esp-idf/components/driver/include -IC:/repos/esp-idf/components/driver/esp32/include -IC:/repos/esp-idf/components/esp_ringbuf/include -IC:/repos/esp-idf/components/efuse/include -IC:/repos/esp-idf/components/efuse/esp32/include -IC:/repos/esp-idf/components/vfs/include -IC:/repos/esp-idf/components/esp_wifi/include -IC:/repos/esp-idf/components/esp_wifi/esp32/include -IC:/repos/esp-idf/components/esp_event/include -IC:/repos/esp-idf/components/esp_netif/include -IC:/repos/esp-idf/components/esp_eth/include -IC:/repos/esp-idf/components/tcpip_adapter/include -IC:/repos/esp-idf/components/app_trace/include -I../components/STC3115_Drivers -I../components/Filters -I../components/ibNavSix -I../components/BME680 -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -std=gnu++11 -fno-exceptions -fno-rtti -D_GNU_SOURCE -DIDF_VER=\"v4.1-dirty\" -DESP_PLATFORM -MD -MT esp-idf/main/CMakeFiles/__idf_main.dir/main.cpp.obj -MF esp-idf\main\CMakeFiles\__idf_main.dir\main.cpp.obj.d -o esp-idf/main/CMakeFiles/__idf_main.dir/main.cpp.obj -c ../main/main.cpp
In file included from ../main/main.h:11,
from ../main/main.cpp:8:
../components/ibNavSix/ibNavSixInitialization.h:7:10: fatal error: ICM_20948.h: No such file or directory
#include "ICM_20948.h"
^~~~~~~~~~~~~