What's new

Trying to install Mupen64Plus from source code

Wilabob

New member
Hi, I'm trying to compile mupen64plus from source code on Ubuntu 9.04 and I got it working but with no audio and RSP plugins, it gave me this error:
{standard input}:26404: Error: Unrecognized opcode: `bswap'
{standard input}:26417: Error: Unrecognized opcode: `bswap'
{standard input}:26417: Error: Unrecognized opcode: `bswap'
{standard input}:26435: Error: Unrecognized opcode: `bswap'
{standard input}:26435: Error: Unrecognized opcode: `bswap'
{standard input}:26446: Error: Unrecognized opcode: `bswap'
{standard input}:26446: Error: Unrecognized opcode: `bswap'
{standard input}:26457: Error: Unrecognized opcode: `bswap'
{standard input}:26457: Error: Unrecognized opcode: `bswap'
{standard input}:26468: Error: Unrecognized opcode: `bswap'
{standard input}:26468: Error: Unrecognized opcode: `bswap'
{standard input}:26479: Error: Unrecognized opcode: `bswap'
{standard input}:26479: Error: Unrecognized opcode: `bswap'
{standard input}:26490: Error: Unrecognized opcode: `bswap'
{standard input}:26490: Error: Unrecognized opcode: `bswap'
{standard input}:26501: Error: Unrecognized opcode: `bswap'
{standard input}:26501: Error: Unrecognized opcode: `bswap'
{standard input}:26512: Error: Unrecognized opcode: `bswap'
{standard input}:26512: Error: Unrecognized opcode: `bswap'
{standard input}:26526: Error: Unrecognized opcode: `bswap'
make[1]: *** [rdp.o] Error 1
make[1]: Leaving directory `/home/justin/Desktop/Mupen64Plus-1-5-src/glide64'
make: *** [plugins/glide64.so] Error 2
Am I missing something?
 
OP
W

Wilabob

New member
Download trunk? Also where can I find rev 1397? I tried installing the regular mupen 64 from source and it said that no working sdl library was found but I have installed sdl in Synaptic and from source.. :'(
 
Last edited:

Pyromanik

New member
Download the latest revision from the subversion repository.
You'll find the details under the Mupen64plus homepage

Information about using subversion can be found at http://subversion.tigris.org and in the manpages.

Code:
svn checkout <url> <dirname>
eg
Code:
svn checkout svn://fascination.homelinux.net:7684/mupen64plus/trunk m64p

Will check out the latest version from trunk and put it into a subdirectory of your current called m64p.
you can then just go into it and start compiling.
 
Last edited:
OP
W

Wilabob

New member
Got the latest version and it gave me this:
justin@ubuntu:~/emulators/trunk$ make all
gcc -o main/main.o -I/usr/include/freetype2 -ffast-math -funroll-loops -fexpensive-optimizations -fno-strict-aliasing -pipe -O3 -mcpu=powerpc -D_BIG_ENDIAN -DNO_ASM -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/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c main/main.c
main/main.c: In function ‘setPaths’:
main/main.c:1335: warning: ignoring return value of ‘getcwd’, declared with attribute warn_unused_result
gcc -o main/romcache.o -I/usr/include/freetype2 -ffast-math -funroll-loops -fexpensive-optimizations -fno-strict-aliasing -pipe -O3 -mcpu=powerpc -D_BIG_ENDIAN -DNO_ASM -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/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c main/romcache.c
gcc -o main/util.o -I/usr/include/freetype2 -ffast-math -funroll-loops -fexpensive-optimizations -fno-strict-aliasing -pipe -O3 -mcpu=powerpc -D_BIG_ENDIAN -DNO_ASM -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/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c main/util.c
gcc -o main/cheat.o -I/usr/include/freetype2 -ffast-math -funroll-loops -fexpensive-optimizations -fno-strict-aliasing -pipe -O3 -mcpu=powerpc -D_BIG_ENDIAN -DNO_ASM -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/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c main/cheat.c
gcc -o main/config.o -I/usr/include/freetype2 -ffast-math -funroll-loops -fexpensive-optimizations -fno-strict-aliasing -pipe -O3 -mcpu=powerpc -D_BIG_ENDIAN -DNO_ASM -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/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c main/config.c
gcc -o main/md5.o -I/usr/include/freetype2 -ffast-math -funroll-loops -fexpensive-optimizations -fno-strict-aliasing -pipe -O3 -mcpu=powerpc -D_BIG_ENDIAN -DNO_ASM -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/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c main/md5.c
gcc -o main/plugin.o -I/usr/include/freetype2 -ffast-math -funroll-loops -fexpensive-optimizations -fno-strict-aliasing -pipe -O3 -mcpu=powerpc -D_BIG_ENDIAN -DNO_ASM -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/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c main/plugin.c
main/plugin.c: In function ‘plugin_scan_file’:
main/plugin.c:172: warning: ignoring return value of ‘realpath’, declared with attribute warn_unused_result
gcc -o main/rom.o -I/usr/include/freetype2 -ffast-math -funroll-loops -fexpensive-optimizations -fno-strict-aliasing -pipe -O3 -mcpu=powerpc -D_BIG_ENDIAN -DNO_ASM -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/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c main/rom.c
main/rom.c:28:19: error: bzlib.h: No such file or directory
main/rom.c: In function ‘load_single_rom’:
main/rom.c:150: error: ‘BZFILE’ undeclared (first use in this function)
main/rom.c:150: error: (Each undeclared identifier is reported only once
main/rom.c:150: error: for each function it appears in.)
main/rom.c:150: error: ‘bzromfile’ undeclared (first use in this function)
main/rom.c:154: error: ‘BZ_OK’ undeclared (first use in this function)
main/rom.c:175: error: ‘BZ_STREAM_END’ undeclared (first use in this function)
main/rom.c:131: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
main/rom.c:144: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
main/rom.c:208: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
main/rom.c:234: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
main/rom.c: In function ‘ask_bad’:
main/rom.c:455: warning: format not a string literal and no format arguments
main/rom.c: In function ‘ask_hack’:
main/rom.c:470: warning: format not a string literal and no format arguments
make: *** [main/rom.o] Error 1
 
OP
W

Wilabob

New member
I got past the error above and not I have this one:
plugin.c:624:22: error: SDL_ttf.h: No such file or directory
plugin.c:634: error: expected ‘)’ before ‘*’ token
plugin.c:651: error: expected declaration specifiers or ‘...’ before ‘TTF_Font’
plugin.c: In function ‘write_text’:
plugin.c:665: error: ‘font’ undeclared (first use in this function)
plugin.c:665: error: (Each undeclared identifier is reported only once
plugin.c:665: error: for each function it appears in.)
plugin.c:665: warning: assignment makes pointer from integer without a cast
plugin.c: In function ‘DllAbout’:
plugin.c:684: error: ‘TTF_Font’ undeclared (first use in this function)
plugin.c:684: error: ‘font’ undeclared (first use in this function)
plugin.c:720: error: ‘TTF_STYLE_NORMAL’ undeclared (first use in this function)
plugin.c:746: error: incompatible type for argument 4 of ‘write_text’
plugin.c:746: error: incompatible type for argument 6 of ‘write_text’
plugin.c:747: error: incompatible type for argument 4 of ‘write_text’
plugin.c:747: error: incompatible type for argument 6 of ‘write_text’
plugin.c:748: error: incompatible type for argument 4 of ‘write_text’
plugin.c:748: error: incompatible type for argument 6 of ‘write_text’
plugin.c:749: error: incompatible type for argument 4 of ‘write_text’
plugin.c:749: error: incompatible type for argument 6 of ‘write_text’
plugin.c:756: error: incompatible type for argument 4 of ‘write_text’
plugin.c:756: error: incompatible type for argument 6 of ‘write_text’
make[1]: *** [plugin.o] Error 1
make[1]: Leaving directory `/home/justin/emulators/trunk/blight_input'
make: *** [plugins/blight_input.so] Error 2
 

Top