Unfortunately I can't get to compile (o)snes9x from imp13:
$ make
[...]
g++ -fno-rtti -I/home/doofy/Desktop/emu/compile/snes9x-1.43-improvement-src -I/home/doofy/Desktop/emu/compile/snes9x-1.43-improvement-src/unzip -Ii386 -o osnes9x i386/cpuops.o i386/cpuexec.o i386/sa1ops.o spc700.o soundux.o apu.o i386/SPC.O apudebug.o i386/fxemu2b.o i386/fxemu2.o i386/fxemu2c.o i386/fxtable.o i386/sfxproc.o i386/ZSNES.O i386/C4.O i386/zsnesc4.o c4.o cpu.o sa1.o debug.o sdd1.o tile.o srtc.o gfx.o memmap.o clip.o dsp1.o ppu.o dma.o snes9x.o data.o globals.o reader.o conffile.o logger.o lua-engine.o spc7110.o obc1.o seta.o seta010.o seta011.o seta018.o i386/2XSAIMMX.O i386/bilinear.o 2xsai.o sdd1emu.o cheats.o cheats2.o unix/unix.o unix/config.o snaporig.o snapshot.o screenshot.o movie.o netplay.o server.o loadzip.o unzip/unzip.o unzip/explode.o unzip/unreduce.o unzip/unshrink.o jma/s9x-jma.o jma/7zlzma.o jma/crc32.o jma/iiostrm.o jma/inbyte.o jma/jma.o jma/lzma.o jma/lzmadec.o jma/winout.o unix/x11.o unix/opengl.o -lGL -lGLU -ldl -lz -L -lX11 -lXext -lXxf86dga -lXxf86vm -lnsl -lX11 -lXext -lXext -lX11 -lpthread -lm
lua-engine.o: In function `savestate_create(lua_State*)':
lua-engine.cpp:(.text+0x17f7): warning: the use of `tempnam' is dangerous, better use `mkstemp'
lua-engine.o: In function `S9xLuaGui(unsigned short*, int, int, int)':
lua-engine.cpp:(.text+0x170): undefined reference to `lua_getfield'
lua-engine.cpp:(.text+0x186): undefined reference to `lua_type'
lua-engine.cpp:(.text+0x1a2): undefined reference to `lua_settop'
lua-engine.cpp:(.text+0x265): undefined reference to `lua_pcall'
lua-engine.cpp:(.text+0x289): undefined reference to `lua_tolstring'
lua-engine.cpp:(.text+0x2b0): undefined reference to `lua_pushnil'
lua-engine.cpp:(.text+0x2ca): undefined reference to `lua_setfield'
lua-engine.o: In function `S9xLuaStop()':
lua-engine.cpp:(.text+0x400): undefined reference to `lua_close'
lua-engine.o: In function `S9xLoadLuaCode(char const*)':
[more messages like this]
collect2: ld returned 1 exit status
make: *** [(o)snes9x] Error 1
$
I gave configure "--with-zlib --with-x". If I also supply "--with-opengl", the error occurs for osnes9x instead of snes9x.
Ironically, I do have Lua 5.1.3 installed and there's no comlaining previous to this point that the files in /usr/include were missing. Any idea on what's going wrong?
Some specs:
x86, 2.6.25.4
gcc 4.1.2
glibc 2.6.1