Search found 28 matches

by william.ferguson.au
Mon Aug 12, 2019 8:44 pm
Forum: ESP32 IDF
Topic: Setting CPPFLAGS with CMake and idf.py
Replies: 3
Views: 550

Re: Setting CPPFLAGS with CMake and idf.py

Scratch that - clearly need some sleep.

As you indicated above - this works.

Code: Select all

# To pass in the ESP32 CPPFlag
target_compile_definitions(${COMPONENT_TARGET} PUBLIC "-DESP32")
by william.ferguson.au
Mon Aug 12, 2019 8:41 pm
Forum: ESP32 IDF
Topic: Setting CPPFLAGS with CMake and idf.py
Replies: 3
Views: 550

Re: Setting CPPFLAGS with CMake and idf.py

Angus, I still can't seem to get this to work. This is the CMakeLists.txt for the component: SET (COMPONENT_REQUIRES arduino-esp32 lwip ) SET (COMPONENT_ADD_INCLUDEDIRS src src/libb64 src/libsha1) SET (COMPONENT_SRCS "src/libb64/cdecode.c" "src/libb64/cencode.c" "src/libsha1/libsha1.c" # "src/Socket...
by william.ferguson.au
Wed Aug 07, 2019 9:33 am
Forum: ESP32 IDF
Topic: Using CMake add_custom_command() to perform POST_BUILD action
Replies: 17
Views: 949

Re: Using CMake add_custom_command() to perform POST_BUILD action

Thanks Angus. NB I couldn't get the COMMENT to appear so I ended up adding an extra COMMAND to echo the comment I wanted. add_custom_command( OUTPUT ${target_bin} DEPENDS "${app_bin}" COMMAND "${CMAKE_COMMAND}" -E copy "${app_bin}" "${target_bin}" # NB I couldn't get comment to work, so I used an ex...
by william.ferguson.au
Fri Aug 02, 2019 9:33 pm
Forum: ESP32 IDF
Topic: Using CMake add_custom_command() to perform POST_BUILD action
Replies: 17
Views: 949

Re: Using CMake add_custom_command() to perform POST_BUILD action

Thanks Angus, I can get the command to execute, but I still can't get the correct build output file. ${IDF_PROJECT_EXECUTABLE} resolves to "my-project.elf" but I need "my-project.bin" Is there another variable that I can/should use? Where can I find a description/definition of variables like IDF_PRO...
by william.ferguson.au
Thu Aug 01, 2019 7:27 pm
Forum: ESP32 IDF
Topic: Using CMake add_custom_command() to perform POST_BUILD action
Replies: 17
Views: 949

Re: Using CMake add_custom_command() to perform POST_BUILD action

Hi Angus, any progress on how to get POST_BUILD to work for 3.3?

William
by william.ferguson.au
Wed Jul 24, 2019 12:35 pm
Forum: ESP32 IDF
Topic: Using CMake add_custom_command() to perform POST_BUILD action
Replies: 17
Views: 949

Re: Using CMake add_custom_command() to perform POST_BUILD action

Build directory deleted and/or renamed.

Think I've found it.
I'm using arduino-esp32 (1.0.2). It lists:

Code: Select all

set(COMPONENT_REQUIRES spi_flash mbedtls mdns ethernet)
by william.ferguson.au
Wed Jul 24, 2019 9:38 am
Forum: ESP32 IDF
Topic: Using CMake add_custom_command() to perform POST_BUILD action
Replies: 17
Views: 949

Re: Using CMake add_custom_command() to perform POST_BUILD action

A 100% clean build of my project (not esp-idf)? No, still fails with the same error. -- Building ESP-IDF components for target esp32 CMake Error at E:/Dev/Espressif/esp-idf/tools/cmake/build.cmake:185 (message): Failed to resolve component 'ethernet'. Call Stack (most recent call first): E:/Dev/Espr...
by william.ferguson.au
Wed Jul 24, 2019 7:21 am
Forum: ESP32 IDF
Topic: Using CMake add_custom_command() to perform POST_BUILD action
Replies: 17
Views: 949

Re: Using CMake add_custom_command() to perform POST_BUILD action

Thanks Angus. 'git status' isn't showing anything on master that would explain the "Failed to resolve component 'Ethernet'" E:\Dev\Espressif\esp-idf>git status On branch master Your branch is up to date with 'origin/master'. Untracked files: (use "git add <file>..." to include in what will be commit...
by william.ferguson.au
Tue Jul 23, 2019 7:05 pm
Forum: ESP32 IDF
Topic: Using CMake add_custom_command() to perform POST_BUILD action
Replies: 17
Views: 949

Re: Using CMake add_custom_command() to perform POST_BUILD action

Hi Angus, I'm using the esp-idf release/v3.3 branch 91f29bef172a082cbd8f0208ed1757ede0e1d635 (which still identifies as -- IDF_VER: v3.3-beta1-864-g91f29bef1 during the build for some reason). I tried adding a custom command to the app target (in both the project folder and main folder) but it keeps...

Go to advanced search