ekianjo / 3doh

Automatically exported from code.google.com/p/3doh
0 stars 0 forks source link

More compile issues #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. make
2.
3.

What is the expected output? What do you see instead?
No errors generated

What version of the product are you using? On what operating system?
Fedora 19 64bit

Please provide any additional information below.

It compiles now but leaves these messages:

[code]
g++ freedo/arm.o freedo/DiagPort.o freedo/quarz.o freedo/Clio.o freedo/frame.o 
freedo/Madam.o freedo/vdlp.o freedo/_3do_sys.o freedo/bitop.o freedo/DSP.o 
freedo/Iso.o freedo/SPORT.o freedo/XBUS.o freedo/filters/hq2x.o 
freedo/filters/hq3x.o freedo/filters/hq4x.o freedo/filters/hqx_init.o video.o 
sound.o cdrom.o input.o config.o main.o -o 3doemu -lSDL -lpthread -lm  -lGL 
-lGLU -L/usr/lib/gcc/i486-linux-gnu/4.7 -L/usr/lib -lstdc++ 
/bin/ld: skipping incompatible /usr/lib/libGL.so when searching for -lGL
/bin/ld: skipping incompatible /usr/lib/libGLU.so when searching for -lGLU
[/code]

Now I made sure to get both 32bit and 64bit libraries 
mesa-libGLU-devel.i686 : Development files for mesa-libGLU
mesa-libGLU-devel.x86_64 : Development files for mesa-libGLU
mesa-libGL-devel.i686 : Mesa libGL development package
mesa-libGL-devel.x86_64 : Mesa libGL development package

I try to run emulator:
[code]
$ ./3doemu -b ~/bios.bin -i ~/downloads/nfs.iso 
INFO: openning config file in config.ini
INFO: Config file opened
INFO: starting 3d'oh! emulator
INFO: video mode set
INFO: sound init success
INFO: reading input config
INFO: openning config file in config.ini
INFO: Config file opened
encontrada sección [joystick0]
encontrada etiqueta buttonup JOY_BUTTON7
JOY_BUTTON7
encontrada sección [joystick0]
encontrada etiqueta buttondown JOY_BUTTON8
JOY_BUTTON8
encontrada sección [joystick0]
encontrada etiqueta buttonleft JOY_BUTTON9
JOY_BUTTON9
encontrada sección [joystick0]
encontrada etiqueta buttonright JOY_BUTTON10
JOY_BUTTON10
encontrada sección [joystick0]
encontrada etiqueta buttona JOY_BUTTON0
JOY_BUTTON0
encontrada sección [joystick0]
encontrada etiqueta buttonb JOY_BUTTON1
JOY_BUTTON1
encontrada sección [joystick0]
encontrada etiqueta buttonc JOY_BUTTON2
JOY_BUTTON2
encontrada sección [joystick0]
encontrada etiqueta buttonl JOY_BUTTON3
JOY_BUTTON3
encontrada sección [joystick0]
encontrada etiqueta buttonr JOY_BUTTON4
JOY_BUTTON4
encontrada sección [joystick0]
encontrada etiqueta buttonx JOY_BUTTON5
JOY_BUTTON5
encontrada sección [joystick0]
encontrada etiqueta buttonp JOY_BUTTON6
JOY_BUTTON6
INFO: input found 1 joysticks
ERROR: can't load game file, exiting
[/code]

Original issue reported on code.google.com by dustin.m...@gmail.com on 24 Sep 2013 at 6:15

GoogleCodeExporter commented 9 years ago
The makefile is linking against the 32 bit libraries. Search libGL.so in 
command line:

find / -name libGL.so

then update in Makefile the line "-L/usr/lib" with the path where libGL.so is 
located.
This happens because i'm not using a tool like cmake or automake. So you need 
to manually update the makefile to match your system configuration.

Original comment by gabr...@arcadenea.com.ar on 24 Sep 2013 at 2:52

GoogleCodeExporter commented 9 years ago
Ok now I get this:

> g++ freedo/arm.o freedo/DiagPort.o freedo/quarz.o freedo/Clio.o 
freedo/frame.o freedo/Madam.o freedo/vdlp.o freedo/_3do_sys.o freedo/bitop.o 
freedo/DSP.o freedo/Iso.o freedo/SPORT.o freedo/XBUS.o freedo/filters/hq2x.o 
freedo/filters/hq3x.o freedo/filters/hq4x.o freedo/filters/hqx_init.o video.o 
sound.o cdrom.o input.o config.o main.o -o 3doemu -lSDL -lpthread -lm  
-L/usr/lib/libGL.so.1.2.0 -lGLU -L/usr/lib/gcc/i486-linux-gnu/4.7 -L/usr/lib 
-lstdc++ 
/bin/ld: skipping incompatible /usr/lib/libGLU.so when searching for -lGLU
/bin/ld: video.o: undefined reference to symbol 'glMatrixMode'
/bin/ld: note: 'glMatrixMode' is defined in DSO /usr/lib64/nvidia/libGL.so.1 so 
try adding it to the linker command line
/usr/lib64/nvidia/libGL.so.1: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make: *** [3doemu] Error 1

$ file /usr/lib/libGL.so.1.2.0 
/usr/lib/libGL.so.1.2.0: ELF 32-bit LSB shared object, Intel 80386, version 1 
(SYSV), dynamically linked, 
BuildID[sha1]=0x01dce6d7b2ad94c8ad6410c0106b43b25455712a, stripped

Original comment by dustin.m...@gmail.com on 24 Sep 2013 at 10:48

GoogleCodeExporter commented 9 years ago
Check if "-lGL -lGLU" are in the LIBS. If it doesn't work, add "-lglut" also.

Original comment by gabr...@arcadenea.com.ar on 24 Sep 2013 at 11:49

GoogleCodeExporter commented 9 years ago
Well I got it to compile in ubuntu 13.04 64bit without doing anything special. 
I'm currently locked out of my Fedora installation because of some kernel 
update conflicting with something.

Original comment by dustin.m...@gmail.com on 26 Sep 2013 at 9:03

GoogleCodeExporter commented 9 years ago
Nice!

Original comment by gabr...@arcadenea.com.ar on 26 Sep 2013 at 9:21