Bodmer / TJpg_Decoder

Jpeg decoder library based on Tiny JPEG Decompressor
Other
227 stars 43 forks source link

ESP32 Arduino core 2.0.1 RC1 - undefined reference to `BYTECLIP' #28

Closed dsilletti closed 2 years ago

dsilletti commented 2 years ago

Hi, I upgraded ESP32 Arduino core to v2.0.1 RC1 today and I cannot compile anymore my script, I get the following errors:

/Users/user/Documents/Arduino/hardware/espressif/esp32/tools/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: 
/Users/user/Documents/Arduino/libraries/TJpg_Decoder/src/tjpgd.c:1430: undefined reference to `BYTECLIP'
/Users/user/Documents/Arduino/libraries/TJpg_Decoder/src/tjpgd.c:1431: undefined reference to `BYTECLIP'
/Users/user/Documents/Arduino/libraries/TJpg_Decoder/src/tjpgd.c:1432: undefined reference to `BYTECLIP'
TJpg_Decoder/tjpgd.c.o:/Users/user/Documents/Arduino/libraries/TJpg_Decoder/src/tjpgd.c:1433: more undefined references to `BYTECLIP' follow
collect2: error: ld returned 1 exit status
exit status 1
alextief commented 2 years ago

Same Problem here...

Bodmer commented 2 years ago

Now solved, thanks for reporting this.

summerfind commented 1 year ago

Hi, how to solve please.

Bodmer commented 1 year ago

I have tested with the Arduino board package 2.0.5 and it works fine. Please download the master from github if you are using an older version of the jpeg library. 1.0.9 is the latest.