Compiling snes9x 1.54.1

If you're having problems with Snes9x, or think you've found a bug, this is the place to be.
Post Reply
Wizard
Snes9x White Belt
Posts: 1
Joined: Sat Aug 12, 2017 4:30 pm

Compiling snes9x 1.54.1

Post by Wizard »

Linux Mint Debian, Mate edition, 64-bit.

Output of ./configure --enable-debugger

Code: Select all

~/Downloads/snes9x-1.54/unix $ ./configure --enable-debugger
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ accepts -O3... yes
checking whether g++ accepts -fomit-frame-pointer... yes
checking whether g++ accepts -fno-exceptions... yes
checking whether g++ accepts -fno-rtti... yes
checking whether g++ accepts -pedantic... yes
checking whether g++ accepts -Wall... yes
checking whether g++ accepts -W... yes
checking whether g++ accepts -Wno-unused-parameter... yes
checking whether the OS is Linux... yes
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for gzread in -lz... yes
checking png.h usability... no
checking png.h presence... no
checking for png.h... no
configure: WARNING: libpng not found. Build without screenshot support.
checking for mkstemp... yes
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for strings.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking whether right shift int8 is arithmetic... yes
checking whether right shift int16 is arithmetic... yes
checking whether right shift int32 is arithmetic... yes
checking whether right shift int64 is arithmetic... yes
checking X11/extensions/Xv.h usability... yes
checking X11/extensions/Xv.h presence... yes
checking for X11/extensions/Xv.h... yes
checking whether sound is supported on this platform... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes

build information:
cc...............,,,. gcc
c++.................. g++
options.............. -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter 
defines.............. -DJOYSTICK_SUPPORT -DDEBUGGER -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS
libs................. -lz -lSM -lICE -lX11 -lXext -lXv -lpthread

features:
Xvideo support....... yes
sound support........ yes
screenshot support... no
netplay support...... no
gamepad support...... yes
GZIP support......... yes
ZIP support.......... yes
JMA support.......... yes
debugger............. yes

configure: creating ./config.status
config.status: creating Makefile
Output of make:

Code: Select all

~/Downloads/snes9x-1.54.1/unix $ make
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DDEBUGGER -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../apu/apu.cpp -o ../apu/apu.o
In file included from ../apu/bapu/snes/../smp/smp.hpp:128:0,
                 from ../apu/bapu/snes/snes.hpp:30,
                 from ../apu/apu.cpp:188:
../apu/bapu/snes/../smp/debugger/debugger.hpp:1:53: error: expected class-name before ‘{’ token
 class SMPDebugger : public SMP, public ChipDebugger {
                                                     ^
../apu/bapu/snes/../smp/debugger/debugger.hpp:3:30: error: ‘string’ has not been declared
   bool property(unsigned id, string &name, string &value);
                              ^
../apu/bapu/snes/../smp/debugger/debugger.hpp:3:44: error: ‘string’ has not been declared
   bool property(unsigned id, string &name, string &value);
                                            ^
../apu/bapu/snes/../smp/debugger/debugger.hpp:5:3: error: ‘function’ does not name a type
   function<bool ()> step_event;
   ^
../apu/bapu/snes/../smp/debugger/debugger.hpp:10:22: warning: comma at end of enumerator list [-Wpedantic]
     UsageExec  = 0x20,
                      ^
../apu/apu.cpp: In function ‘void S9xDeinitAPU()’:
../apu/apu.cpp:505:15: warning: deleting object of abstract class type ‘Resampler’ which has non-virtual destructor will cause undefined behaviour [-Wdelete-non-virtual-dtor]
   delete spc::resampler;
               ^
Makefile:72: recipe for target '../apu/apu.o' failed
make: *** [../apu/apu.o] Error 1
User avatar
OV2
Official Win32 Porter/Dev
Posts: 679
Joined: Thu Aug 30, 2007 10:15 pm

Re: Compiling snes9x 1.54.1

Post by OV2 »

The APU debugger is currently not working, if you do not need that you can compile with the patch I posted here: https://github.com/snes9xgit/snes9x/issues/215
Post Reply