You are not logged in.

#1 2010-01-17 07:18:24

kaddy
Member
From: Perth, Western Australia
Registered: 2009-09-22
Posts: 192

build fail for MUPEN64PLUS

Hey archers


i'm trying to install the n64 emulator from AUR, Mupen64Plus-1-5
and I get the following errors.....   (it use to be in community but seems like its been taken away... damn)



=> Starting build()...                                                   
g++ main/main.o main/romcache.o main/util.o main/cheat.o main/config.o main/adler32.o main/md5.o main/plugin.o main/rom.o main/savestates.o main/zip/ioapi.o main/zip/unzip.o main/bzip2/bzlib.o main/bzip2/crctable.o main/bzip2/decompress.o main/bzip2/compress.o main/bzip2/randtable.o main/bzip2/huffman.o main/bzip2/blocksort.o main/lzma/buffer.o main/lzma/io.o main/lzma/main.o main/7zip/7zAlloc.o main/7zip/7zBuffer.o main/7zip/7zCrc.o main/7zip/7zDecode.o main/7zip/7zExtract.o main/7zip/7zHeader.o main/7zip/7zIn.o main/7zip/7zItem.o main/7zip/7zMain.o main/7zip/LzmaDecode.o main/7zip/BranchX86.o main/7zip/BranchX86_2.o memory/dma.o memory/flashram.o memory/memory.o memory/pif.o memory/tlb.o r4300/r4300.o r4300/bc.o r4300/compare_core.o r4300/cop0.o r4300/cop1.o r4300/cop1_d.o r4300/cop1_l.o r4300/cop1_s.o r4300/cop1_w.o r4300/exception.o r4300/interupt.o r4300/profile.o r4300/pure_interp.o r4300/recomp.o r4300/special.o r4300/regimm.o r4300/tlb.o r4300/x86_64/assemble.o r4300/x86_64/debug.o r4300/x86_64/gbc.o r4300/x86_64/gcop0.o r4300/x86_64/gcop1.o r4300/x86_64/gcop1_d.o r4300/x86_64/gcop1_l.o r4300/x86_64/gcop1_s.o r4300/x86_64/gcop1_w.o r4300/x86_64/gr4300.o r4300/x86_64/gregimm.o r4300/x86_64/gspecial.o r4300/x86_64/gtlb.o r4300/x86_64/regcache.o r4300/x86_64/rjump.o opengl/OGLFT.o opengl/osd.o opengl/screenshot.o main/translate.o main/gui_gtk/main_gtk.o main/gui_gtk/icontheme.o main/gui_gtk/aboutdialog.o main/gui_gtk/cheatdialog.o main/gui_gtk/configdialog.o main/gui_gtk/rombrowser.o main/gui_gtk/romproperties.o -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-export-dynamic -z execstack -lz -lm -lpng -lfreetype -ldl -L/usr/lib -lSDL -lpthread -L/usr/X11R6/lib -lGL -lGLU -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0   -pthread -lgthread-2.0 -lrt -lglib-2.0   -o mupen64plus                                                                               
strip -s mupen64plus                                                                                                                                       
make -C blight_input all                                                                                                                                   
make[1]: Entering directory `/tmp/yaourt-tmp-kaddy/aur-mupen64plus/mupen64plus/src/Mupen64Plus-1-5-src/blight_input'                                       
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/yaourt-tmp-kaddy/aur-mupen64plus/mupen64plus/src/Mupen64Plus-1-5-src/blight_input'
make -C dummy_audio all
make[1]: Entering directory `/tmp/yaourt-tmp-kaddy/aur-mupen64plus/mupen64plus/src/Mupen64Plus-1-5-src/dummy_audio'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/yaourt-tmp-kaddy/aur-mupen64plus/mupen64plus/src/Mupen64Plus-1-5-src/dummy_audio'
make -C dummy_video all
make[1]: Entering directory `/tmp/yaourt-tmp-kaddy/aur-mupen64plus/mupen64plus/src/Mupen64Plus-1-5-src/dummy_video'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/yaourt-tmp-kaddy/aur-mupen64plus/mupen64plus/src/Mupen64Plus-1-5-src/dummy_video'
make -C glN64 all
make[1]: Entering directory `/tmp/yaourt-tmp-kaddy/aur-mupen64plus/mupen64plus/src/Mupen64Plus-1-5-src/glN64'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/yaourt-tmp-kaddy/aur-mupen64plus/mupen64plus/src/Mupen64Plus-1-5-src/glN64'
make -C rice_video all
make[1]: Entering directory `/tmp/yaourt-tmp-kaddy/aur-mupen64plus/mupen64plus/src/Mupen64Plus-1-5-src/rice_video'
make[1]: Leaving directory `/tmp/yaourt-tmp-kaddy/aur-mupen64plus/mupen64plus/src/Mupen64Plus-1-5-src/rice_video'
make -C glide64 all
make[1]: Entering directory `/tmp/yaourt-tmp-kaddy/aur-mupen64plus/mupen64plus/src/Mupen64Plus-1-5-src/glide64'
g++ -o Main.o -march=x86-64 -mtune=generic -O2 -pipe -I/usr/include/freetype2   -pipe -O3 -ffast-math -funroll-loops -fexpensive-optimizations -fno-strict-aliasing -march=athlon64 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -I/usr/include/freetype2   -pipe -O3 -ffast-math -funroll-loops -fexpensive-optimizations -fno-strict-aliasing -march=athlon64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -fpic -DPIC -DGCC -DUSE_GTK -Iwrapper/ -MMD -MP -MQ Main.o -DUSE_GTK -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -c Main.cpp
Main.cpp: In function 'BOOL InitGfx(BOOL)':
Main.cpp:787: error: invalid conversion from 'const char*' to 'char*'
make[1]: *** [Main.o] Error 1
make[1]: Leaving directory `/tmp/yaourt-tmp-kaddy/aur-mupen64plus/mupen64plus/src/Mupen64Plus-1-5-src/glide64'
make: *** [plugins/glide64.so] Error 2
==> ERROR: Build Failed.
    Aborting...
Error: Makepkg was unable to build mupen64plus package.



I really want this package

any ideas how to get it working? Thanx
kaddy

Offline

#2 2010-01-17 07:24:33

kaddy
Member
From: Perth, Western Australia
Registered: 2009-09-22
Posts: 192

Re: build fail for MUPEN64PLUS

so far i've tried installing Glide64 package that it complains about and i get this


Install or build missing dependencies for glide64-wonder:
==> Building and installing package

==> glide64-wonder dependencies:
- glib2 (already installed)
- sdl (already installed)
==> Making package: glide64-wonder 11-1 x86_64 (Mon Jan 18 15:26:55 WST 2010)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Found attachment.php?attachmentid=36076&d=1177425342 in build dir
  -> Found Glide64.ini in build dir
==> Validating source files with md5sums...
    attachment.php?attachmentid=36076&d=1177425342 ... Passed
    Glide64.ini ... Passed
==> Extracting Sources...
  -> Extracting attachment.php?attachmentid=36076&d=1177425342 with bsdtar
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
rm -rf Main.o rdp.o Ini.o TexCache.o Debugger.o Util.o CRC.o Combine.o TexBuffer.o Tmem_nasm.o Config.o 3dmath.o DepthBufferRender.o support.o messagebox.o wrapper/combiner.o wrapper/textures.o wrapper/main.o wrapper/geometry.o wrapper/config.o wrapper/filter.o wrapper/2xsai.o wrapper/hq2x.o wrapper/hq4x.o  compiletex compiletex.o font.h cursor.h
gcc -g -DGCC -DUSE_GTK `sdl-config --cflags` `pkg-config gtk+-2.0 --cflags` -D_GTK2 -Iwrapper/ -O2 -march=i686 -ffast-math -funroll-loops  compiletex.c -c -o compiletex.o
compiletex.c:1: error: CPU you selected does not support x86-64 instruction set
make: *** [compiletex.o] Error 1
==> ERROR: Build Failed.
    Aborting...
Error: Makepkg was unable to build glide64-wonder package.

[kaddy@Arch ~]$

even after adding 'x86_64' to the package build

any ideas so i can get mupen64plus installed?

Offline

#3 2010-01-17 09:44:38

spiridow
Member
Registered: 2009-08-08
Posts: 40

Re: build fail for MUPEN64PLUS

I also tried to build mupen64plus from AUR but couldn't do it, so I just got the package from the official site and it worked out of the box.

http://code.google.com/p/mupen64plus/

There's one problem, though. You can't configure the input plugin once it is compiled. So you had better download the sources, and edit the file in source/mupen64plus-input-sdl/src/autoconfig.c

I'm am currently trying to make a configuration for a Playstation 3 controller. I'll let you know if I can make a correct one.

Offline

#4 2010-01-17 11:13:05

spiridow
Member
Registered: 2009-08-08
Posts: 40

Re: build fail for MUPEN64PLUS

Ok I made a configuration for a playstation 3 controller. If someone needs it, here it is:


How to add autoconfiguration for Sony PLAYSTATION(R)3 Controller in mupen64plus:

1. Get the sources from http://mupen64plus.googlecode.com/files … 9.1.tar.gz

2. Decompress the archive.

3. Edit the file mupen64plus-bundle-src-1.99.1/source/mupen64plus-input-sdl/src/autoconfig.c in the following way:

Line 30: edit the enum and add a new controller JOY_PS3_SIXAXIS like this:

enum eJoyType
{
    KBD_DEFAULT = 1,
    JOY_BOOM_SMART_JOY_CONVERTER,
    JOY_DRAGON_RISE,
    JOY_GASIA_GAMEPAD,
    JOY_GREEN_ASIA_USB,
    JOY_LOGITECH_CORDLESS_RUMBLEPAD_2,
    JOY_LOGITECH_DUAL_ACTION,
    JOY_MEGA_WORLD_USB,
    JOY_MICROSOFT_XBOX_360,
    JOY_N64_CONTROLLER,
    JOY_SAITEK_P880,
    JOY_SAITEK_P990,
    JOY_PS3_SIXAXIS
};

Line 53: Add new entry for the ps3 controller like this:

static sJoyConfigMap l_JoyConfigMap[] = {
    { "HID 6666:0667",                        JOY_BOOM_SMART_JOY_CONVERTER},
    { "DragonRise Inc. Generic USB Joystick", JOY_DRAGON_RISE},
    { "Gasia Co.,Ltd PS(R) Gamepad",          JOY_GASIA_GAMEPAD},
    { "GreenAsia Inc. USB Joystick",          JOY_GREEN_ASIA_USB},
    { "Logitech Cordless Rumblepad 2",        JOY_LOGITECH_CORDLESS_RUMBLEPAD_2},
    { "Logitech Dual Action",                 JOY_LOGITECH_DUAL_ACTION},
    { "Mega World USB Game Controllers",      JOY_MEGA_WORLD_USB},
    { "Microsoft X-Box 360 pad",              JOY_MICROSOFT_XBOX_360},
    { "N64 controller",                       JOY_N64_CONTROLLER},
    { "SAITEK P880",                          JOY_SAITEK_P880},
    { "Saitek P990 Dual Analog Pad",          JOY_SAITEK_P990},
    { "Keyboard",                             KBD_DEFAULT},
    { "Sony PLAYSTATION(R)3 Controller",      JOY_PS3_SIXAXIS}
};

Line 359: Add a new case for the input configuration for the ps3 controller like this:

        case JOY_PS3_SIXAXIS:
            pCtrl->button[R_DPAD].button = 5;
            pCtrl->button[L_DPAD].button = 7;
            pCtrl->button[D_DPAD].button = 6;
            pCtrl->button[U_DPAD].button = 4;
            pCtrl->button[START_BUTTON].button = 3;
            pCtrl->button[Z_TRIG].button = 8;
            pCtrl->button[B_BUTTON].button = 15;
            pCtrl->button[A_BUTTON].button = 14;
            pCtrl->button[R_CBUTTON].axis = pCtrl->button[L_CBUTTON].axis = 2;
            pCtrl->button[D_CBUTTON].axis = pCtrl->button[U_CBUTTON].axis = 3;
            pCtrl->button[R_CBUTTON].axis_dir = pCtrl->button[D_CBUTTON].axis_dir = 1;
            pCtrl->button[L_CBUTTON].axis_dir = pCtrl->button[U_CBUTTON].axis_dir = -1;
            pCtrl->button[R_TRIG].button = 11;
            pCtrl->button[L_TRIG].button = 10;
            pCtrl->axis[0].axis_a = pCtrl->axis[0].axis_b = 0;
            pCtrl->axis[1].axis_a = pCtrl->axis[1].axis_b = 1;
            pCtrl->axis[0].axis_dir_a = pCtrl->axis[1].axis_dir_a = -1;
            pCtrl->axis[0].axis_dir_b = pCtrl->axis[1].axis_dir_b = 1;
            break;

4. Save the file

5. Execute mp64_build.sh

6. Execute mp64_install.sh

7. Run the emulator with mupen64plus romfile.z64

8. Enjoy wink

Last edited by spiridow (2010-01-17 17:30:09)

Offline

Board footer

Powered by FluxBB