fukuen / Maixduino_M5Compat

for easy porting m5stack apps into maixduino
GNU General Public License v3.0
1 stars 0 forks source link

multiple definition #2

Open concon opened 2 years ago

concon commented 2 years ago

Hi,

i am getting error with this,

c:/users/salon/documents/arduinodata/packages/maixduino/tools/riscv64-unknown-elf-gcc/8.2.0_20190409/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: libraries\Maixduino_M5Compat-master\utility\rom\tjpgd.c.o: in function jd_prepare': C:\Users\salon\Documents\Arduino\libraries\Maixduino_M5Compat-master\src\utility\rom/tjpgd.c:760: multiple definition of jd_prepare'; libraries\Maixduino_M5Compat-master\utility\tjpgd.c.o:C:\Users\salon\Documents\Arduino\libraries\Maixduino_M5Compat-master\src\utility/tjpgd.c:760: first defined here c:/users/salon/documents/arduinodata/packages/maixduino/tools/riscv64-unknown-elf-gcc/8.2.0_20190409/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: libraries\Maixduino_M5Compat-master\utility\rom\tjpgd.c.o: in function jd_decomp': C:\Users\salon\Documents\Arduino\libraries\Maixduino_M5Compat-master\src\utility\rom/tjpgd.c:945: multiple definition of jd_decomp'; libraries\Maixduino_M5Compat-master\utility\tjpgd.c.o:C:\Users\salon\Documents\Arduino\libraries\Maixduino_M5Compat-master\src\utility/tjpgd.c:945: first defined here collect2.exe: error: ld returned 1 exit status

fukuen commented 2 years ago

Hi Lemi,

Thanks for your contact. I had not maintained this project for a long time, so I almost forgot, It took me a while to remember ;)

I tried to build in my environment, like bellow,

  1. Check out repository that use this Maixduino_M5Compat library. git clone https://github.com/fukuen/mp3-player-m5stack —recursive

  2. Open this project by Visual Studio Code with PlatformIO.

  3. Build this project by click Build button. First, build failed. So I added pgmspace.h file into /lib/Maixduino_M5Compat/include/ folder. pgmspace.h from https://github.com/arduino/ArduinoCore-sam/blob/master/cores/arduino/avr/pgmspace.h

Finally build succeeded. I could not be reproduced this issue. Let me know how to reproduce this issue. Thanks in advance.

concon commented 2 years ago

Hi fukuen,

Thank you very much for your quick reply, I will do what you wrote as soon as possible,

Best regards,

Lemi fukuen @.**@.>> şunları yazdı (6 Nis 2022 10:53):

Hi Lemi,

Thanks for your contact. I had not maintained this project for a long time, so I almost forgot, It took me a while to remember ;)

I tried to build in my environment, like bellow,

  1. Check out repository that use this Maixduino_M5Compat library. git clone https://github.com/fukuen/mp3-player-m5stack —recursive

  2. Open this project by Visual Studio Code with PlatformIO.

  3. Build this project by click Build button. First, build failed. So I added pgmspace.h file into /lib/Maixduino_M5Compat/include/ folder. pgmspace.h from https://github.com/arduino/ArduinoCore-sam/blob/master/cores/arduino/avr/pgmspace.h

Finally build succeeded. I could not be reproduced this issue. Let me know how to reproduce this issue. Thanks in advance.