HaarigerHarald / omxiv

OpenMax image viewer for the Raspberry Pi
GNU General Public License v2.0
222 stars 66 forks source link

multiple definition of OMX_RENDER_TRANSITION - fixes build failure with gcc-10 #35

Closed ghost closed 3 years ago

ghost commented 3 years ago

Fixes a build failure with gcc-10. Resolve #33.

cc -o omxiv.bin omxiv.o omx_image.o omx_render.o soft_image.o ./libnsbmp/libnsbmp.o ./libnsgif/libnsgif.o -lilclient -ljpeg -lpng -lrt -ldl -Wl,--gc-sections -s -L/opt/vc/lib/ -lopenmaxil -lbcm_host -lvcos -lpthread -L./libs/ilclient
/usr/bin/ld: omx_render.o:/home/pi/RetroPie-Setup/tmp/build/omxiv/omx_render.h:71: multiple definition of `OMX_RENDER_TRANSITION'; omxiv.o:/home/pi/RetroPie-Setup/tmp/build/omxiv/omx_render.h:71: first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:14: omxiv.bin] Error 1