You are not logged in.

#1 2005-04-07 17:09:24

Father
Member
From: Australia
Registered: 2004-06-01
Posts: 209

[ Emulators ] mupen64 - Nintendo 64 Emulator

its a rough bird, it was crashing on me if i used the glide driver, which is the default, and requires a kill -9..
use the glN64 one instead

im not sure where it should go, probably /usr/share/mupen64
but its in /usr/local for the moment.. heh.. oh well

anyway.. here it is..

PKGBUILD

#contributor: Adam Griffiths
pkgname=mupen64
pkgver=0.4
pkgrel=1
pkgdesc="A Nintendo 64 Emulator"
url="http://muppen64.emulation64.net/"
depends=('x-server' 'sdl' 'gtk')
conflicts=()
backup=()
source=(http://mupen64.emulation64.com/files/0.4/$pkgname-$pkgver.tar.bz2)

build()
{
  cd $startdir/src/$pkgname-$pkgver

  mkdir -p $startdir/pkg/usr/local/games/mupen64
  mv * $startdir/pkg/usr/local/games/mupen64

  mkdir -p $startdir/pkg/usr/local/bin
  echo "/usr/local/games/mupen64/mupen64" > $startdir/pkg/usr/local/bin/mupen64
  chmod 755 $startdir/pkg/usr/local/bin/mupen64
}
md5sums=('11d6c60def68fc0f6bd3d521d4d5ab6b')

Offline

#2 2005-04-08 14:39:41

droog
Member
Registered: 2004-11-18
Posts: 877

Re: [ Emulators ] mupen64 - Nintendo 64 Emulator

Heres the alsa plugin http://emulationrealm.com/n64_plugins/l … .4.tar.bz2
I'm having a hard time getting it to compile,  so if you want to give it a go.  I found some patches for it  yesterday but havent tried them yet. 

And heres all the mupen64+plugins source code if you want to play with that instead of the binary http://www.emutalk.net/showthread.php?t=21930 it compiles ok, just skip configure.

Offline

#3 2005-04-09 06:38:45

Father
Member
From: Australia
Registered: 2004-06-01
Posts: 209

Re: [ Emulators ] mupen64 - Nintendo 64 Emulator

I'll have a look at the plugin in a few days.. im a bit busy atm..
unless someone else wants to take a shot..

but im interested in it since SDL doesnt like my mixer very much.. OSS.. bleugh.. im really getting sick of soundless games!!

Offline

#4 2005-04-12 06:08:33

Father
Member
From: Australia
Registered: 2004-06-01
Posts: 209

Re: [ Emulators ] mupen64 - Nintendo 64 Emulator

it seems the gtk1 / 2 code is broken..

its only a small file so it should be easy to fix.. just one compile error.. but i havent coded any GTK and i dont have a GTK API infront of me.. so i cant fix it atm.. sorry

Offline

#5 2005-04-16 16:54:55

droog
Member
Registered: 2004-11-18
Posts: 877

Re: [ Emulators ] mupen64 - Nintendo 64 Emulator

here's a patch i found from gentoo for the gtk problem.

--- Makefile.orig    2003-12-27 04:24:26.397424080 -0500
+++ Makefile    2003-12-27 04:25:01.939020936 -0500
@@ -1,4 +1,3 @@
-GRAPHICAL_INTERFACE=gtk1
 
 ifeq ($(GRAPHICAL_INTERFACE),gtk1)
     GUICFLAGS = -DUSE_GTK `gtk-config --cflags`
@@ -21,7 +20,7 @@
 all: $(PLUGIN) instructions
 
 DEBUGCXXFLAGS = -g -Wall -DDEBUG
-CXXFLAGS = -DNO_DEBUG -DNDEBUG -O3 -Wall -mcpu=athlon -march=athlon -fomit-frame-pointer -ffast-math -fno-rtti
+CXXFLAGS += -DNO_DEBUG -DNDEBUG -fno-rtti
 OBJECTS += string.o audio.o snd_plugin.o gui.o
 
 string.o: string_class.cpp string_class.h

Offline

#6 2005-04-17 08:51:08

Father
Member
From: Australia
Registered: 2004-06-01
Posts: 209

Re: [ Emulators ] mupen64 - Nintendo 64 Emulator

ill take a look at it in another few days.. insanely tired atm.. thanks for finding the patch though.. it looks like that might fix it

Offline

#7 2005-05-08 05:44:44

Father
Member
From: Australia
Registered: 2004-06-01
Posts: 209

Re: [ Emulators ] mupen64 - Nintendo 64 Emulator

_that_ patch is actually to make it gentoo compatible, it strips the makefile of all the cflags and defines and lets the gentoo system cflags take over

its the second patch in the gentoo repos that we want..

--- alsa_plugin/Makefile.old    2005-02-28 20:54:40.718370614 -0800
+++ alsa_plugin/Makefile        2005-02-28 20:55:54.048853201 -0800
@@ -4,6 +4,11 @@
        GUILDFLAGS = `gtk-config --libs`
        OBJECTS = gtk1_gui.o
 endif
+ifeq ($(GRAPHICAL_INTERFACE),gtk2)
+       GUICFLAGS = -D_GTK2 `pkg-config --cflags gtk+-2.0`
+       GUILDFLAGS = `pkg-config --libs gtk+-2.0`
+       OBJECTS = gtk1_gui.o
+endif
 ifeq ($(GRAPHICAL_INTERFACE),qt3)
        GUICFLAGS = -DUSE_QT -I$(QTDIR)/include -I$(QTDIR)/mkspecs/linux-g++ -DQT_NO_DEBUG -DQT_THREAD_SUPPOR
T -D_REENTRANT
        GUILDFLAGS = -L$(QTDIR)/lib -lqt-mt
@@ -46,7 +51,6 @@
 
 $(PLUGIN): $(OBJECTS)
        $(LD) $(LDFLAGS) -o $@ $(OBJECTS)
-       strip --strip-all $@
 
 instructions:
        $(warning please copy $(PLUGIN) in the plugins/ folder of the emulator)
--- alsa_plugin/gtk1_gui.cpp.old        2005-02-28 20:54:50.072190695 -0800
+++ alsa_plugin/gtk1_gui.cpp    2005-02-28 20:55:45.015049773 -0800
@@ -56,7 +56,7 @@
 
 void CreateGUIObject( Plugin_Graphical_Interface **GUI, Plugin_Audio_Driver *drv )
 {
-       ( ( GTK1_Interface * )( *GUI ) ) = new GTK1_Interface( drv );
+       *GUI = dynamic_cast<Plugin_Graphical_Interface *>(new GTK1_Interface( drv ));
 }
 
 void DeleteGUIObject( Plugin_Graphical_Interface **GUI )

ive gotta get patch to work and then ill update the pkgbuild..

Offline

Board footer

Powered by FluxBB