Undefined reference to `BYTECLIP'

Linking .pio\build\esp-wrover-kit\firmware.elf
c:/users/fa19-bee-083.cui/.platformio/packages/toolchain-xtensa-esp32@8.4.0+2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp-wrover-kit\libe26\libTJpg_Decoder.a(tjpgd.c.o):(.literal.jd_decomp+0x14): undefined reference to `BYTECLIP'
c:/users/fa19-bee-083.cui/.platformio/packages/toolchain-xtensa-esp32@8.4.0+2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp-wrover-kit\libe26\libTJpg_Decoder.a(tjpgd.c.o): in function `block_idct':
C:\Users\FA19-BEE-083.cui\Documents\PlatformIO\Projects\cam/.pio/libdeps/esp-wrover-kit/TJpg_Decoder/src/tjpgd.c:1435: undefined reference to `BYTECLIP'
c:/users/fa19-bee-083.cui/.platformio/packages/toolchain-xtensa-esp32@8.4.0+2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\FA19-BEE-083.cui\Documents\PlatformIO\Projects\cam/.pio/libdeps/esp-wrover-kit/TJpg_Decoder/src/tjpgd.c:1433: undefined reference to `BYTECLIP'
c:/users/fa19-bee-083.cui/.platformio/packages/toolchain-xtensa-esp32@8.4.0+2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\FA19-BEE-083.cui\Documents\PlatformIO\Projects\cam/.pio/libdeps/esp-wrover-kit/TJpg_Decoder/src/tjpgd.c:1436: undefined reference to `BYTECLIP'
c:/users/fa19-bee-083.cui/.platformio/packages/toolchain-xtensa-esp32@8.4.0+2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\FA19-BEE-083.cui\Documents\PlatformIO\Projects\cam/.pio/libdeps/esp-wrover-kit/TJpg_Decoder/src/tjpgd.c:1437: undefined reference to `BYTECLIP'
c:/users/fa19-bee-083.cui/.platformio/packages/toolchain-xtensa-esp32@8.4.0+2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp-wrover-kit\libe26\libTJpg_Decoder.a(tjpgd.c.o):C:\Users\FA19-BEE-083.cui\Documents\PlatformIO\Projects\cam/.pio/libdeps/esp-wrover-kit/TJpg_Decoder/src/tjpgd.c:1438: more undefined references to `BYTECLIP' follow
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\esp-wrover-kit\firmware.elf] Error 1

i am #include <TJpg_Decoder.h> using this library gives me issue while in arduino ide people say they dont face issue

and i am using code from this website

trying to show pic from esp32 cam please fix this issue!

This is a known fixed issue per

but the library hasn’t yet been updated in the registry.

I was able to successfully compile this example by using the latest git version of the library:

[env:esp-wrover-kit]
platform = espressif32
board = esp-wrover-kit
framework = arduino
lib_deps =
   https://github.com/Bodmer/TJpg_Decoder.git
   adafruit/Adafruit ILI9341@^1.5.12
1 Like

yes thats so helpful its solve my issue i didnt know that we can add github link also there