It builds fine, following the instructions in the first post, but sadly every time I start it up I get a segfault sometime between when the main window appears and when it first draws itself:
Code: Select all
(gdb) run
Starting program: /home/st/Downloads/snes9x-1.51-src/snes9x-gtk
[Thread debugging using libthread_db enabled]
[New Thread 0xf7fc0000 (LWP 4224)]
Reading config file /etc/snes9x/snes9x.conf
Starting sound
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xf7fc0000 (LWP 4224)]
0x1020d1d8 in S9xOpenSoundDevice ()
Current language: auto; currently asm
(gdb) bt
#0 0x1020d1d8 in S9xOpenSoundDevice ()
#1 0x100834ec in S9xInitSound (mode=5, stereo=56 '8', buffer_size=0)
at soundux.cpp:2276
#2 0x1020d4e8 in S9xPortSoundInit ()
#3 0x10205780 in main ()
I tried looking for some kind of command-line switch to configure sound, but couldn't find one. The same crash occurrs if I configure --without-sound.
For what it's worth, Debian's portaudio doesn't seem to link with ALSA:
Code: Select all
$ pkg-config --libs portaudio-2.0
-lportaudio -lm -lpthread
Code: Select all
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable'), (499, 'experimental')
Architecture: powerpc (ppc64)
Kernel: Linux 2.6.25-2-powerpc64 (SMP w/1 CPU core)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Code: Select all
gtk/gtk_s9x.o: In function `main':
gtk_s9x.cpp:(.text+0x1078): undefined reference to `gtk_gl_init'
gtk/gtk_s9xwindow.o: In function `Snes9xWindow::Snes9xWindow(Snes9xConfig*)':
gtk_s9xwindow.cpp:(.text+0x2a84): undefined reference to `gdk_gl_config_new_by_mode'
gtk_s9xwindow.cpp:(.text+0x2ab8): undefined reference to `gtk_widget_set_gl_capability'
gtk/gtk_s9xwindow.o: In function `Snes9xWindow::Snes9xWindow(Snes9xConfig*)':
gtk_s9xwindow.cpp:(.text+0x2de4): undefined reference to `gdk_gl_config_new_by_mode'
gtk_s9xwindow.cpp:(.text+0x2e18): undefined reference to `gtk_widget_set_gl_capability'
gtk/gtk_display.o: In function `S9xInitDriver()':
gtk_display.cpp:(.text+0x11a8): undefined reference to `S9xOpenGLDisplayDriver::S9xOpenGLDisplayDriver(Snes9xWindow*, Snes9xConfig*)'
collect2: ld returned 1 exit status
make: *** [snes9x-gtk] Error 1