Open candrews opened 5 years ago
Good day Have same error:
libretro/libretro.cpp: In function ‘void retro_init()’:
libretro/libretro.cpp:671:40: error: aggregate ‘retro_midi_interface midi_interface’ has incomplete type and cannot be defined
static struct retro_midi_interface midi_interface;
^~~~~~~~~~~~~~
libretro/libretro.cpp: In function ‘void retro_run()’:
libretro/libretro.cpp:806:53: error: invalid use of incomplete type ‘struct retro_midi_interface’
if (retro_midi_interface && retro_midi_interface->output_enabled())
^~
libretro/libretro.cpp:94:15: note: forward declaration of ‘struct retro_midi_interface’
extern struct retro_midi_interface *retro_midi_interface;
^~~~~~~~~~~~~~~~~~~~
libretro/libretro.cpp:807:29: error: invalid use of incomplete type ‘struct retro_midi_interface’
retro_midi_interface->flush();
^~
libretro/libretro.cpp:94:15: note: forward declaration of ‘struct retro_midi_interface’
extern struct retro_midi_interface *retro_midi_interface;
^~~~~~~~~~~~~~~~~~~~
Makefile.libretro:189: recipe for target 'libretro/libretro.o' failed
make: *** [libretro/libretro.o] Error 1
make: *** Waiting for unfinished jobs....
/home/pi
Could not successfully build lr-dosbox - DOS emulator (/home/pi/RetroPie-Setup/tmp/build/lr-dosbox/dosbox_libretro.so not found).
gcc --version
gcc (Raspbian 6.3.0-18+rpi1+deb9u1) 6.3.0 20170516
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
It appears that this is because of a PR that I made that removed one of the two struct
definitions for retro_midi_interface. Turns out that the commit right after removes the other struct definition.
I'll add back the one that I removed in my commit and see if that fixes anything. :+1:
Addendum: Well, if the commit below this message is any indication, it didn't work out well. I wasn't 100% sure on whether or not the struct I added was the "correct" one, so I closed the commit. Paging @twinaphex for input on which struct defintion should be kept and which should be removed.
Hello. Duplicate the post, if you have not seen - https://github.com/libretro/dosbox-libretro/pull/104#issuecomment-421413955
Any update on this yet?
Trying to compile current master (2d6bfbfe9ae82be17afbadf41f24950c2f9e2db9), I'm getting this error: