c++ - I am unable to compile Mednafen from the source code -
i tried compile medanfen source in windows using code::blocks. (the compiler gcc came mingw.) however, can't figure out problem is. source code available http://mednafen.sourceforge.net/
when click on build button without changing anything, error. here build log:
-------------- build: debug in virtualdragon (compiler: gnu gcc compiler)--------------- mingw32-gcc.exe -wall -g -i..\..\mednafen\src\cdplay -i..\..\mednafen\src\cdrom -i..\..\mednafen\src\compress -i..\..\mednafen\src\cputest -i..\..\mednafen\src\demo -i..\..\mednafen\src\desa68 -i..\..\mednafen\src\drivers -i..\..\mednafen\src\drivers_dos -i..\..\mednafen\src\gb -i..\..\mednafen\src\gba -i..\..\mednafen\src\hash -i..\..\mednafen\src\hw_cpu -i..\..\mednafen\src\hw_cpu\c68k -i..\..\mednafen\src\hw_cpu\huc6280 -i..\..\mednafen\src\hw_cpu\v810 -i..\..\mednafen\src\hw_cpu\z80-fuse -i..\..\mednafen\src\hw_misc -i..\..\mednafen\src\hw_misc\arcade_card -i..\..\mednafen\src\hw_sound -i..\..\mednafen\src\hw_sound\gb_apu -i..\..\mednafen\src\hw_sound\pce_psg -i..\..\mednafen\src\hw_sound\sms_apu -i..\..\mednafen\src\hw_sound\ym2413 -i..\..\mednafen\src\hw_sound\ym2612 -i..\..\mednafen\src\hw_video -i..\..\mednafen\src\hw_video\huc6270 -i..\..\mednafen\src\lynx -i..\..\mednafen\src\md -i..\..\mednafen\src\md\cart -i..\..\mednafen\src\md\cd -i..\..\mednafen\src\md\input -i..\..\mednafen\src\mpcdec -i..\..\mednafen\src\nes -i..\..\mednafen\src\nes\boards -i..\..\mednafen\src\nes\input -i..\..\mednafen\src\nes\ntsc -i..\..\mednafen\src\nes\ppu -i..\..\mednafen\src\nes\ppu\palettes -i..\..\mednafen\src\ngp -i..\..\mednafen\src\ngp\tlcs-900h -i..\..\mednafen\src\pce -i..\..\mednafen\src\pce\input -i..\..\mednafen\src\pce\notes -i..\..\mednafen\src\pce_fast -i..\..\mednafen\src\pcfx -i..\..\mednafen\src\pcfx\input -i..\..\mednafen\src\pcfx\notes -i..\..\mednafen\src\psx -i..\..\mednafen\src\psx\input -i..\..\mednafen\src\psx\notes -i..\..\mednafen\src\quicklz -i..\..\mednafen\src\resampler -i..\..\mednafen\src\sexyal -i..\..\mednafen\src\sexyal\drivers -i..\..\mednafen\src\sms -i..\..\mednafen\src\sms\docs -i..\..\mednafen\src\snes -i..\..\mednafen\src\snes\src -i..\..\mednafen\src\snes\src\cartridge -i..\..\mednafen\src\snes\src\cheat -i..\..\mednafen\src\snes\src\chip -i..\..\mednafen\src\snes\src\chip\bsx -i..\..\mednafen\src\snes\src\chip\cx4 -i..\..\mednafen\src\snes\src\chip\dsp1 -i..\..\mednafen\src\snes\src\chip\dsp2 -i..\..\mednafen\src\snes\src\chip\dsp3 -i..\..\mednafen\src\snes\src\chip\dsp4 -i..\..\mednafen\src\snes\src\chip\obc1 -i..\..\mednafen\src\snes\src\chip\sa1 -i..\..\mednafen\src\snes\src\chip\sa1\bus -i..\..\mednafen\src\snes\src\chip\sa1\dma -i..\..\mednafen\src\snes\src\chip\sa1\memory -i..\..\mednafen\src\snes\src\chip\sa1\mmio -i..\..\mednafen\src\snes\src\chip\sdd1 -i..\..\mednafen\src\snes\src\chip\spc7110 -i..\..\mednafen\src\snes\src\chip\srtc -i..\..\mednafen\src\snes\src\chip\st010 -i..\..\mednafen\src\snes\src\chip\superfx -i..\..\mednafen\src\snes\src\chip\superfx\bus -i..\..\mednafen\src\snes\src\chip\superfx\core -i..\..\mednafen\src\snes\src\chip\superfx\disasm -i..\..\mednafen\src\snes\src\chip\superfx\memory -i..\..\mednafen\src\snes\src\chip\superfx\mmio -i..\..\mednafen\src\snes\src\chip\superfx\timing -i..\..\mednafen\src\snes\src\cpu -i..\..\mednafen\src\snes\src\cpu\core -i..\..\mednafen\src\snes\src\cpu\core\disassembler -i..\..\mednafen\src\snes\src\cpu\scpu -i..\..\mednafen\src\snes\src\cpu\scpu\debugger -i..\..\mednafen\src\snes\src\cpu\scpu\dma -i..\..\mednafen\src\snes\src\cpu\scpu\memory -i..\..\mednafen\src\snes\src\cpu\scpu\mmio -i..\..\mednafen\src\snes\src\cpu\scpu\timing -i..\..\mednafen\src\snes\src\data -i..\..\mednafen\src\snes\src\lib -i..\..\mednafen\src\snes\src\lib\libco -i..\..\mednafen\src\snes\src\lib\libco\blargg_libco_ppc64-5 -i..\..\mednafen\src\snes\src\lib\libco\blargg_libco_ppc64-5\libco -i..\..\mednafen\src\snes\src\lib\nall -i..\..\mednafen\src\snes\src\memory -i..\..\mednafen\src\snes\src\memory\smemory -i..\..\mednafen\src\snes\src\ppu -i..\..\mednafen\src\snes\src\ppu\debugger -i..\..\mednafen\src\snes\src\ppu\memory -i..\..\mednafen\src\snes\src\ppu\mmio -i..\..\mednafen\src\snes\src\ppu\render -i..\..\mednafen\src\snes\src\sdsp -i..\..\mednafen\src\snes\src\smp -i..\..\mednafen\src\snes\src\smp\core -i..\..\mednafen\src\snes\src\smp\core\disassembler -i..\..\mednafen\src\snes\src\smp\ssmp -i..\..\mednafen\src\snes\src\smp\ssmp\debugger -i..\..\mednafen\src\snes\src\smp\ssmp\memory -i..\..\mednafen\src\snes\src\smp\ssmp\timing -i..\..\mednafen\src\snes\src\system -i..\..\mednafen\src\snes\src\system\audio -i..\..\mednafen\src\snes\src\system\config -i..\..\mednafen\src\snes\src\system\debugger -i..\..\mednafen\src\snes\src\system\input -i..\..\mednafen\src\snes\src\system\interface -i..\..\mednafen\src\snes\src\system\scheduler -i..\..\mednafen\src\snes\src\system\video -i..\..\mednafen\src\sound -i..\..\mednafen\src\string -i..\..\mednafen\src\tremor -i..\..\mednafen\src\trio -i..\..\mednafen\src\vb -i..\..\mednafen\src\video -i..\..\mednafen\src\wswan -i..\..\mednafen\src\wswan\dis -i..\..\mednafen -i..\..\mednafen\include -i..\..\mednafen\include\trio -i..\..\mednafen\intl -i..\..\mednafen\m4 -i..\..\mednafen\po -i..\..\external -c f:\mednafen\intl\dcigettext.c -o obj\debug\mednafen\intl\dcigettext.o in file included f:\mednafen\intl\dcigettext.c:94:0: f:\mednafen\intl\gettextp.h:72:25: fatal error: libgnuintl.h: no such file or directory compilation terminated. process terminated status 1 (0 minute(s), 6 second(s)) 1 error(s), 0 warning(s) (0 minute(s), 6 second(s))
as can see, asks me header file named libgnuintl.h. downloaded file official apple website: http://www.opensource.apple.com/source/bash/bash-86.1/libgnuintl.h
but when import code, gives me 3 errors:
-------------- build: debug in virtualdragon (compiler: gnu gcc compiler)--------------- mingw32-gcc.exe -wall -g -i..\..\mednafen\src\cdplay -i..\..\mednafen\src\cdrom -i..\..\mednafen\src\compress -i..\..\mednafen\src\cputest -i..\..\mednafen\src\demo -i..\..\mednafen\src\desa68 -i..\..\mednafen\src\drivers -i..\..\mednafen\src\drivers_dos -i..\..\mednafen\src\gb -i..\..\mednafen\src\gba -i..\..\mednafen\src\hash -i..\..\mednafen\src\hw_cpu -i..\..\mednafen\src\hw_cpu\c68k -i..\..\mednafen\src\hw_cpu\huc6280 -i..\..\mednafen\src\hw_cpu\v810 -i..\..\mednafen\src\hw_cpu\z80-fuse -i..\..\mednafen\src\hw_misc -i..\..\mednafen\src\hw_misc\arcade_card -i..\..\mednafen\src\hw_sound -i..\..\mednafen\src\hw_sound\gb_apu -i..\..\mednafen\src\hw_sound\pce_psg -i..\..\mednafen\src\hw_sound\sms_apu -i..\..\mednafen\src\hw_sound\ym2413 -i..\..\mednafen\src\hw_sound\ym2612 -i..\..\mednafen\src\hw_video -i..\..\mednafen\src\hw_video\huc6270 -i..\..\mednafen\src\lynx -i..\..\mednafen\src\md -i..\..\mednafen\src\md\cart -i..\..\mednafen\src\md\cd -i..\..\mednafen\src\md\input -i..\..\mednafen\src\mpcdec -i..\..\mednafen\src\nes -i..\..\mednafen\src\nes\boards -i..\..\mednafen\src\nes\input -i..\..\mednafen\src\nes\ntsc -i..\..\mednafen\src\nes\ppu -i..\..\mednafen\src\nes\ppu\palettes -i..\..\mednafen\src\ngp -i..\..\mednafen\src\ngp\tlcs-900h -i..\..\mednafen\src\pce -i..\..\mednafen\src\pce\input -i..\..\mednafen\src\pce\notes -i..\..\mednafen\src\pce_fast -i..\..\mednafen\src\pcfx -i..\..\mednafen\src\pcfx\input -i..\..\mednafen\src\pcfx\notes -i..\..\mednafen\src\psx -i..\..\mednafen\src\psx\input -i..\..\mednafen\src\psx\notes -i..\..\mednafen\src\quicklz -i..\..\mednafen\src\resampler -i..\..\mednafen\src\sexyal -i..\..\mednafen\src\sexyal\drivers -i..\..\mednafen\src\sms -i..\..\mednafen\src\sms\docs -i..\..\mednafen\src\snes -i..\..\mednafen\src\snes\src -i..\..\mednafen\src\snes\src\cartridge -i..\..\mednafen\src\snes\src\cheat -i..\..\mednafen\src\snes\src\chip -i..\..\mednafen\src\snes\src\chip\bsx -i..\..\mednafen\src\snes\src\chip\cx4 -i..\..\mednafen\src\snes\src\chip\dsp1 -i..\..\mednafen\src\snes\src\chip\dsp2 -i..\..\mednafen\src\snes\src\chip\dsp3 -i..\..\mednafen\src\snes\src\chip\dsp4 -i..\..\mednafen\src\snes\src\chip\obc1 -i..\..\mednafen\src\snes\src\chip\sa1 -i..\..\mednafen\src\snes\src\chip\sa1\bus -i..\..\mednafen\src\snes\src\chip\sa1\dma -i..\..\mednafen\src\snes\src\chip\sa1\memory -i..\..\mednafen\src\snes\src\chip\sa1\mmio -i..\..\mednafen\src\snes\src\chip\sdd1 -i..\..\mednafen\src\snes\src\chip\spc7110 -i..\..\mednafen\src\snes\src\chip\srtc -i..\..\mednafen\src\snes\src\chip\st010 -i..\..\mednafen\src\snes\src\chip\superfx -i..\..\mednafen\src\snes\src\chip\superfx\bus -i..\..\mednafen\src\snes\src\chip\superfx\core -i..\..\mednafen\src\snes\src\chip\superfx\disasm -i..\..\mednafen\src\snes\src\chip\superfx\memory -i..\..\mednafen\src\snes\src\chip\superfx\mmio -i..\..\mednafen\src\snes\src\chip\superfx\timing -i..\..\mednafen\src\snes\src\cpu -i..\..\mednafen\src\snes\src\cpu\core -i..\..\mednafen\src\snes\src\cpu\core\disassembler -i..\..\mednafen\src\snes\src\cpu\scpu -i..\..\mednafen\src\snes\src\cpu\scpu\debugger -i..\..\mednafen\src\snes\src\cpu\scpu\dma -i..\..\mednafen\src\snes\src\cpu\scpu\memory -i..\..\mednafen\src\snes\src\cpu\scpu\mmio -i..\..\mednafen\src\snes\src\cpu\scpu\timing -i..\..\mednafen\src\snes\src\data -i..\..\mednafen\src\snes\src\lib -i..\..\mednafen\src\snes\src\lib\libco -i..\..\mednafen\src\snes\src\lib\libco\blargg_libco_ppc64-5 -i..\..\mednafen\src\snes\src\lib\libco\blargg_libco_ppc64-5\libco -i..\..\mednafen\src\snes\src\lib\nall -i..\..\mednafen\src\snes\src\memory -i..\..\mednafen\src\snes\src\memory\smemory -i..\..\mednafen\src\snes\src\ppu -i..\..\mednafen\src\snes\src\ppu\debugger -i..\..\mednafen\src\snes\src\ppu\memory -i..\..\mednafen\src\snes\src\ppu\mmio -i..\..\mednafen\src\snes\src\ppu\render -i..\..\mednafen\src\snes\src\sdsp -i..\..\mednafen\src\snes\src\smp -i..\..\mednafen\src\snes\src\smp\core -i..\..\mednafen\src\snes\src\smp\core\disassembler -i..\..\mednafen\src\snes\src\smp\ssmp -i..\..\mednafen\src\snes\src\smp\ssmp\debugger -i..\..\mednafen\src\snes\src\smp\ssmp\memory -i..\..\mednafen\src\snes\src\smp\ssmp\timing -i..\..\mednafen\src\snes\src\system -i..\..\mednafen\src\snes\src\system\audio -i..\..\mednafen\src\snes\src\system\config -i..\..\mednafen\src\snes\src\system\debugger -i..\..\mednafen\src\snes\src\system\input -i..\..\mednafen\src\snes\src\system\interface -i..\..\mednafen\src\snes\src\system\scheduler -i..\..\mednafen\src\snes\src\system\video -i..\..\mednafen\src\sound -i..\..\mednafen\src\string -i..\..\mednafen\src\tremor -i..\..\mednafen\src\trio -i..\..\mednafen\src\vb -i..\..\mednafen\src\video -i..\..\mednafen\src\wswan -i..\..\mednafen\src\wswan\dis -i..\..\mednafen -i..\..\mednafen\include -i..\..\mednafen\include\trio -i..\..\mednafen\intl -i..\..\mednafen\m4 -i..\..\mednafen\po -i..\..\external -c f:\mednafen\intl\dcigettext.c -o obj\debug\mednafen\intl\dcigettext.o f:\mednafen\intl\dcigettext.c:335:36: error: 'localedir' undeclared here (not in function) in file included f:\mednafen\intl\dcigettext.c:473:0: f:\mednafen\intl\eval-plural.h:27:1: error: static declaration of 'plural_eval' follows non-static declaration in file included f:\mednafen\intl\dcigettext.c:95:0: f:\mednafen\intl\plural-exp.h:120:26: note: previous declaration of 'plural_eval' here f:\mednafen\intl\dcigettext.c: in function 'libintl_dcigettext': f:\mednafen\intl\dcigettext.c:504:30: warning: variable 'search' set not used [-wunused-but-set-variable] in file included f:\mednafen\intl\dcigettext.c:1668:0: f:\mednafen\intl\tsearch.c: @ top level: f:\mednafen\intl\tsearch.c:89:20: fatal error: config.h: no such file or directory compilation terminated. process terminated status 1 (0 minute(s), 12 second(s)) 3 error(s), 1 warning(s) (0 minute(s), 12 second(s))
it looks these errors easy fix, not ver experienced c/c++ codes, don't know how fix them myself. looks file config.h missing, don't know should one. there thousands of config.h's on internet.
i hope can me.
thanks in advance,
thomas
edit: realized used name virtualdragon instead of mednafen. guess can't problem.
Comments
Post a Comment