-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmake error (IDFGH-11271) #12429
Comments
Hi @epicdenver1, would you mind sharing the actual error message? "cmake error" can mean a lot to us, we need more details to trace down the error. Thank you! |
this is the error, i get the same one with both idf v 4.4.4 , 5.2 dev , and 5.1.1 -- Configuring incomplete, errors occurred! |
Looks like you are trying to run |
idf_py_stdout_output_1924.txt |
Over here: if(${IDF_TARGET} STREQUAL "esp32")
set(links "-L ${CMAKE_CURRENT_SOURCE_DIR}/../../../lib/esp32")
elseif(${IDF_TARGET} STREQUAL "esp32s2")
set(links "-L ${CMAKE_CURRENT_SOURCE_DIR}/../../../lib/esp32s2")
elseif(${IDF_TARGET} STREQUAL "esp32s3")
set(links "-L ${CMAKE_CURRENT_SOURCE_DIR}/../../../lib/esp32s3")
elseif(${IDF_TARGET} STREQUAL "esp32c3")
set(links "-L ${CMAKE_CURRENT_SOURCE_DIR}/../../../lib/esp32c3")
endif()
target_link_libraries(${COMPONENT_TARGET} ${links})
you are only specifying the directory where to search for the pre-compiled libraries, but you aren't actually linking any specific library. Hence,
some of the references from |
thanks for that, how do i fix that, those are from the guide i was using to develop this model but if you have an idea i'm willing to give it a shot. thanks |
Could you please link to the guide you are reading? |
i made the changes, still get deploy.elf issues Build files have been written to: C:/Espressif/Blogs/ESP-DL/model_deployment/build |
Can you check if there is (If it is in some other place, edit your CMakeLists.txt to pass the correct directory to the linker.) |
if i had that library in my /main or in the directory how would i edit the cmake file |
@epicdenver1 I checked with the creator of the tutorial. Unfortunately, the example is only made for IDF v4.4. It won't work out-of-the-box on IDF v5.2. |
Answers checklist.
General issue report
i have a fresh install of 5.2-dev and this code has worked before on a windows based visual studio machine. i am using a tinly ml conversion of a TensorFlow lite model to try and get it to work on my esp32-s3.
bellow is my cmake file
CMakeLists.txt
i am aware that in 5.0 updating to 5.1 they changed the way idf_component_register changed but this was not an issue on 5.11 on windows. the other files such as the project file and model will be attached bellow. i have been working on this for 8 hours and have been racking my brain; any expertise even if it makes me look dump is appreciated.
app_main.txt
handrecognition_coefficient.txt
i converted the c++ format of the above two files
thanks in advance -ryan
The text was updated successfully, but these errors were encountered: