mamedev / mame

MAME
https://www.mamedev.org/
Other
8.4k stars 2.04k forks source link

NO_USE_MIDI does not appear to work #1092

Closed jmallach closed 8 years ago

jmallach commented 8 years ago

Hi, I am setting NO_USE_MIDI=1 and USE_SYSTEM_LIB_PORTMIDI=, however I am hitting this:

Compiling src/osd/modules/midi/none.cpp...
g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -g0 -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -MMD -MP -MP -DNDEBUG -DCRLF=2 -DLSB_FIRST -DXMD_H -DFLAC__NO_DLL -DMAME_NOASM -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DNO_AFFINITY_NP -DUSE_NETWORK -DOSD_NET_USE_TAPTUN -D'INI_PATH="/etc/mame"' -DSDLMAME_X11 -DUSE_XINPUT=0 -DSDLMAME_SDL2=1 -DOSD_SDL -DSDLMAME_UNIX -DUSE_OPENGL=1 -D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -DIMGUI_DISABLE_OBSOLETE_FUNCTIONS -DUSE_QTDEBUG=1 -I/usr/X11/include -I/usr/X11R6/include -I/usr/openwin/include -I../../../../../3rdparty/libuv/include -I../../../../../3rdparty/bgfx/examples/common -I../../../../../3rdparty/bgfx/include -I../../../../../3rdparty/bgfx/3rdparty -I../../../../../3rdparty/bx/include -I../../../../../3rdparty/rapidjson/include -I../../../../../scripts/src/osd -I../../../../../src/emu -I../../../../../src/devices -I../../../../../src/osd -I../../../../../src/lib -I../../../../../src/lib/util -I../../../../../src/osd/modules/file -I../../../../../src/osd/modules/render -I../../../../../3rdparty -I../../../../../src/osd/sdl   -pipe -Wno-deprecated-declarations -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wundef -Wformat-security -Wwrite-strings -Wno-sign-compare -Wno-conversion -Wno-unused-result -Wno-array-bounds  -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/freetype2 -I/usr/include/i386-gnu/qt5 -x c++ -std=c++14 -Woverloaded-virtual -include /home/jordi/mame-0.175/src/osd/sdl/sdlprefix.h -o "obj/Release/osd_sdl/src/osd/modules/midi/none.o" -c "../../../../../src/osd/modules/midi/none.cpp"
Compiling src/osd/modules/midi/portmidi.cpp...
g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -g0 -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -MMD -MP -MP -DNDEBUG -DCRLF=2 -DLSB_FIRST -DXMD_H -DFLAC__NO_DLL -DMAME_NOASM -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DNO_AFFINITY_NP -DUSE_NETWORK -DOSD_NET_USE_TAPTUN -D'INI_PATH="/etc/mame"' -DSDLMAME_X11 -DUSE_XINPUT=0 -DSDLMAME_SDL2=1 -DOSD_SDL -DSDLMAME_UNIX -DUSE_OPENGL=1 -D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -DIMGUI_DISABLE_OBSOLETE_FUNCTIONS -DUSE_QTDEBUG=1 -I/usr/X11/include -I/usr/X11R6/include -I/usr/openwin/include -I../../../../../3rdparty/libuv/include -I../../../../../3rdparty/bgfx/examples/common -I../../../../../3rdparty/bgfx/include -I../../../../../3rdparty/bgfx/3rdparty -I../../../../../3rdparty/bx/include -I../../../../../3rdparty/rapidjson/include -I../../../../../scripts/src/osd -I../../../../../src/emu -I../../../../../src/devices -I../../../../../src/osd -I../../../../../src/lib -I../../../../../src/lib/util -I../../../../../src/osd/modules/file -I../../../../../src/osd/modules/render -I../../../../../3rdparty -I../../../../../src/osd/sdl   -pipe -Wno-deprecated-declarations -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wundef -Wformat-security -Wwrite-strings -Wno-sign-compare -Wno-conversion -Wno-unused-result -Wno-array-bounds  -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/freetype2 -I/usr/include/i386-gnu/qt5 -x c++ -std=c++14 -Woverloaded-virtual -include /home/jordi/mame-0.175/src/osd/sdl/sdlprefix.h -o "obj/Release/osd_sdl/src/osd/modules/midi/portmidi.o" -c "../../../../../src/osd/modules/midi/portmidi.cpp"
../../../../../src/osd/modules/midi/portmidi.cpp:13:22: fatal error: portmidi.h: No such file or directory
h0tw1r3 commented 8 years ago

Unable to reproduce, but your g++ line should contain -DNO_USE_MIDI which is the reason for the compile errors.

Try make REGENIE=1 NO_USE_MIDI=1

jmallach commented 8 years ago

Please ignore me, this appears to have been caused by a local problem.