Compile error: API components not found
Posted: Mon Aug 07, 2023 9:34 am
Hi, I hv to take over a old project to make modification and I encounter some problem on compiling the project.
I hv imported the project and try to compile. Expectedly lot of error come out.
Most of them could be solved by adding "REQUIRES xxx" which add back the required components.
But at the very last 2 errors I couldn't resolve.
1. fatal error: driver/spi_master.h: No such file or directory
2. implicit declaration of function 'esp_efuse_mac_get_default" [-Werro=implicit-function-declaration]
I hv added "REQUIRES driver" & "REQUIRES esp_hw_support" to the CMakeList to according directory.
Also I could navigate to both src files using open declaration.
Do any one have a clue and similar situation for me to take a reference?
Thanks!
System info:
Operating System: windows 10
Java Runtime Version: 18.0.1+10
Eclipse Version: 4.25.0.v20220831-1800
Eclipse CDT Version: 10.7.1.202208160035
IDF Eclipse Plugin Version: 2.9.1.202304060814
ESP-IDF v5.1-dev-437-g5c1044d84d-dirty
Python set for IDF_PYTHON_ENV: Python 3.10.7
I hv imported the project and try to compile. Expectedly lot of error come out.
Most of them could be solved by adding "REQUIRES xxx" which add back the required components.
But at the very last 2 errors I couldn't resolve.
1. fatal error: driver/spi_master.h: No such file or directory
2. implicit declaration of function 'esp_efuse_mac_get_default" [-Werro=implicit-function-declaration]
I hv added "REQUIRES driver" & "REQUIRES esp_hw_support" to the CMakeList to according directory.
Also I could navigate to both src files using open declaration.
Do any one have a clue and similar situation for me to take a reference?
Thanks!
System info:
Operating System: windows 10
Java Runtime Version: 18.0.1+10
Eclipse Version: 4.25.0.v20220831-1800
Eclipse CDT Version: 10.7.1.202208160035
IDF Eclipse Plugin Version: 2.9.1.202304060814
ESP-IDF v5.1-dev-437-g5c1044d84d-dirty
Python set for IDF_PYTHON_ENV: Python 3.10.7