Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error compilation after upgrade library #97

Open
yo2ldk opened this issue Jul 2, 2024 · 1 comment
Open

error compilation after upgrade library #97

yo2ldk opened this issue Jul 2, 2024 · 1 comment

Comments

@yo2ldk
Copy link

yo2ldk commented Jul 2, 2024

I have it some example who work it good with Atom Lite Display HDMI, and now after update of library, I have many errors and cannot compile.. :(
what was changed ?

c:/users/yo2ldk/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\M5GFX-master\lgfx\utility\miniz.c.o: in function tdefl_get_png_row_default':
C:\Users\yo2ldk\Documents\Arduino\libraries\M5GFX-master\src\lgfx\utility/miniz.c:2815: multiple definition of tdefl_get_png_row_default'; libraries\M5GFX-master\lgfx\utility\lgfx_miniz.c.o:C:\Users\yo2ldk\Documents\Arduino\libraries\M5GFX-master\src\lgfx\utility/lgfx_miniz.c:2815: first defined here c:/users/yo2ldk/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\M5GFX-master\lgfx\utility\miniz.c.o: in function tdefl_compress':
C:\Users\yo2ldk\Documents\Arduino\libraries\M5GFX-master\src\lgfx\utility/miniz.c:2653: multiple definition of tdefl_compress'; libraries\M5GFX-master\lgfx\utility\lgfx_miniz.c.o:C:\Users\yo2ldk\Documents\Arduino\libraries\M5GFX-master\src\lgfx\utility/lgfx_miniz.c:2653: first defined here c:/users/yo2ldk/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\M5GFX-master\lgfx\utility\miniz.c.o: in function tdefl_compress_buffer':
C:\Users\yo2ldk\Documents\Arduino\libraries\M5GFX-master\src\lgfx\utility/miniz.c:2709: multiple definition of tdefl_compress_buffer'; libraries\M5GFX-master\lgfx\utility\lgfx_miniz.c.o:C:\Users\yo2ldk\Documents\Arduino\libraries\M5GFX-master\src\lgfx\utility/lgfx_miniz.c:2709: first defined here c:/users/yo2ldk/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\M5GFX-master\lgfx\utility\miniz.c.o: in function tdefl_init':
C:\Users\yo2ldk\Documents\Arduino\libraries\M5GFX-master\src\lgfx\utility/miniz.c:2714: multiple definition of tdefl_init'; libraries\M5GFX-master\lgfx\utility\lgfx_miniz.c.o:C:\Users\yo2ldk\Documents\Arduino\libraries\M5GFX-master\src\lgfx\utility/lgfx_miniz.c:2714: first defined here c:/users/yo2ldk/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\M5GFX-master\lgfx\utility\miniz.c.o: in function tdefl_get_prev_return_status':
C:\Users\yo2ldk\Documents\Arduino\libraries\M5GFX-master\src\lgfx\utility/miniz.c:2733: multiple definition of tdefl_get_prev_return_status'; libraries\M5GFX-master\lgfx\utility\lgfx_miniz.c.o:C:\Users\yo2ldk\Documents\Arduino\libraries\M5GFX-master\src\lgfx\utility/lgfx_miniz.c:2733: first defined here c:/users/yo2ldk/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\M5GFX-master\lgfx\utility\miniz.c.o: in function tdefl_get_adler32':
C:\Users\yo2ldk\Documents\Arduino\libraries\M5GFX-master\src\lgfx\utility/miniz.c:2738: multiple definition of tdefl_get_adler32'; libraries\M5GFX-master\lgfx\utility\lgfx_miniz.c.o:C:\Users\yo2ldk\Documents\Arduino\libraries\M5GFX-master\src\lgfx\utility/lgfx_miniz.c:2738: first defined here c:/users/yo2ldk/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\M5GFX-master\lgfx\utility\miniz.c.o: in function tdefl_compress_mem_to_output':
C:\Users\yo2ldk\Documents\Arduino\libraries\M5GFX-master\src\lgfx\utility/miniz.c:2743: multiple definition of tdefl_compress_mem_to_output'; libraries\M5GFX-master\lgfx\utility\lgfx_miniz.c.o:C:\Users\yo2ldk\Documents\Arduino\libraries\M5GFX-master\src\lgfx\utility/lgfx_miniz.c:2743: first defined here c:/users/yo2ldk/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\M5GFX-master\lgfx\utility\miniz.c.o: in function tdefl_compress_mem_to_heap':
C:\Users\yo2ldk\Documents\Arduino\libraries\M5GFX-master\src\lgfx\utility/miniz.c:2774: multiple definition of tdefl_compress_mem_to_heap'; libraries\M5GFX-master\lgfx\utility\lgfx_miniz.c.o:C:\Users\yo2ldk\Documents\Arduino\libraries\M5GFX-master\src\lgfx\utility/lgfx_miniz.c:2774: first defined here c:/users/yo2ldk/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\M5GFX-master\lgfx\utility\miniz.c.o: in function tdefl_compress_mem_to_mem':
C:\Users\yo2ldk\Documents\Arduino\libraries\M5GFX-master\src\lgfx\utility/miniz.c:2783: multiple definition of tdefl_compress_mem_to_mem'; libraries\M5GFX-master\lgfx\utility\lgfx_miniz.c.o:C:\Users\yo2ldk\Documents\Arduino\libraries\M5GFX-master\src\lgfx\utility/lgfx_miniz.c:2783: first defined here c:/users/yo2ldk/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\M5GFX-master\lgfx\utility\miniz.c.o: in function tdefl_write_image_to_png_file_in_memory_ex_with_cb':
C:\Users\yo2ldk\Documents\Arduino\libraries\M5GFX-master\src\lgfx\utility/miniz.c:2830: multiple definition of tdefl_write_image_to_png_file_in_memory_ex_with_cb'; libraries\M5GFX-master\lgfx\utility\lgfx_miniz.c.o:C:\Users\yo2ldk\Documents\Arduino\libraries\M5GFX-master\src\lgfx\utility/lgfx_miniz.c:2830: first defined here c:/users/yo2ldk/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\M5GFX-master\lgfx\utility\miniz.c.o: in function tdefl_write_image_to_png_file_in_memory_ex':
C:\Users\yo2ldk\Documents\Arduino\libraries\M5GFX-master\src\lgfx\utility/miniz.c:2825: multiple definition of tdefl_write_image_to_png_file_in_memory_ex'; libraries\M5GFX-master\lgfx\utility\lgfx_miniz.c.o:C:\Users\yo2ldk\Documents\Arduino\libraries\M5GFX-master\src\lgfx\utility/lgfx_miniz.c:2825: first defined here c:/users/yo2ldk/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\M5GFX-master\lgfx\utility\miniz.c.o: in function tdefl_write_image_to_png_file_in_memory':
C:\Users\ \Documents\Arduino\libraries\M5GFX-master\src\lgfx\utility/miniz.c:2880: multiple definition of tdefl_write_image_to_png_file_in_memory'; libraries\M5GFX-master\lgfx\utility\lgfx_miniz.c.o:C:\Users\ \Documents\Arduino\libraries\M5GFX-master\src\lgfx\utility/lgfx_miniz.c:2880: first defined here collect2.exe: error: ld returned 1 exit status exit status 1 Error compiling for board M5Stack-ATOM.

@lovyan03
Copy link
Collaborator

Hello, @yo2ldk

What version of M5GFX are you using?
The latest version is 0.1.16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants