Open makerawei opened 1 month ago
Got it. Let me ask @abrender maybe he knows the issue.
@abrender could you please help me to solve the error;)thanks a lot !
@makerawei take a look at this branch, i was able to build it without errors -> https://github.com/jnthas/clockwise/pull/70
I dont know you are aware but you don't need to use esp-idf to compile the project, just open it in platform.io and it will work fine with arduino framework
@jnthas thanks a lot;)
I tested your commit, and for success building there should be a CMakeList.txt in PNGdec
if(ESP_PLATFORM)
idf_component_register(INCLUDE_DIRS src)
return()
endif()
project(PNGdec VERSION 1.0.1)
add_subdirectory(src)
And a code line in cw-cf-0x07/Clockface.cpp:198 is always true.
bool shouldReturnToOrigin = doc["loop"][sprite->_spriteReference]["shouldReturnToOrigin"].as<bool>() ? : false;
this code would be error in my ESP-IDF env.
After change it to
bool shouldReturnToOrigin = doc["loop"][sprite->_spriteReference]["shouldReturnToOrigin"].as<bool>() ? true : false;
I build pacman success !
Great! As PNGdec don't have the CMakesList file, you could open a PR there if you want.
I put PNGdec in clockwise\components and add a CMakeLists.txt file as below