Page 1 of 1

CMake cannot find files, but I've listed the directories. Please help!

Posted: Fri Oct 22, 2021 5:53 pm
by dfrenkel
I am receiving this fatal error because 3 files cannot be found:

Code: Select all

Warning! Could not find file "rmaker_mqtt_server.crt"
Warning! Could not find file "rmaker_claim_service_server.crt"
Warning! Could not find file "rmaker_ota_server.crt"
Reading CMake configuration...
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
*** [.pio\build\esp32dev\rmaker_mqtt_server.crt.S] Source `components\esp_rainmaker\server_certs\rmaker_mqtt_server.crt' not found, needed by target `.pio\build\esp32dev\rmaker_mqtt_server.crt.S'.
However, I think my CMakeLists.txt is fine. The folder for those files is the "server_certs" which is part of the INCLUDE_DIRS

Code: Select all

set(include_dirs "."
                 "../components"
                 "../components/AccelStepper"
                 "../components/TMCSTEPPER"
                 "../components/RMaker"
                 "../components/arduino"
                 "../components/esp-rainmaker"
                 "../components/esp-rainmaker/components"
                 "../components/esp-rainmaker/examples/common"
                 "../components/esp-rainmaker/components/esp-insights/components"
                 "../components/esp-rainmaker/components/esp_rainmaker/server_certs"
                 )

idf_component_register(SRCS "app_main.cpp" "${srcs}"
                       INCLUDE_DIRS "${include_dirs}" )
Why isn't CMake finding those files???

Re: CMake cannot find files, but I've listed the directories. Please help!

Posted: Fri Oct 22, 2021 7:18 pm
by chegewara