bitbank2 / JPEGDEC

An optimized JPEG decoder suitable for microcontrollers and PCs.
Apache License 2.0
389 stars 46 forks source link

Misconfigured idf_component_register? #45

Closed acoth closed 2 years ago

acoth commented 2 years ago

Using in a pure idf environment, with the supplied CMakeLists, I get:

CMake Error at /Users/acoth/esp/esp-idf/tools/cmake/build.cmake:201 (message):
  Failed to resolve component 'jpegdec'

Which is fixed by changing to REQUIRES "JPEGDEC" instead of REQUIRES "jpegdec" I am not knowledgeable enough about CMake or idf.py to know if this is a typo or serves a purpose

bitbank2 commented 2 years ago

Martin Fasani created that CMakelists file. He puts the JPEGDEC library in a subdirectory named "jpegdec". This is why it works for him. I'm not sure why he did that, but the fix is simple.