Page 4 of 9 < 1 2 3 4 5 6 7 8 9 >
Topic Options
#57314 - 26/12/09 07:15 AM Re: Arm Akimbo SDLMAME [Re: ldesnogu]
Flandry Offline
Member

Registered: 01/12/09
Posts: 24
Got my N900 this week and tried out the armel build of sdlmame. The program begins to load and the console screen pops up briefly but then it crashes.

Here's a the last bit of -verbose
Quote:
etting SDL_VIDEO_GL_DRIVER = '' ...
Build version: 0.135u3 (Dec 26 2009)
Build architecure: SDLMAME_ARCH=
Build defines 1: SDLMAME_UNIX=1 SDLMAME_X11=1 SDLMAME_LINUX=1 SDLMAME_NOASM=1
Build defines 1: LSB_FIRST=1 NDEBUG=1 DISTRO=generic SYNC_IMPLEMENTATION=tc
SDL/OpenGL defines: SDL_COMPILEDVERSION=1212 USE_OPENGL=0
Compiler defines A: __GNUC__=4 __GNUC_MINOR__=2 __GNUC_PATCHLEVEL__=1 __VERSION__="4.2.1"
Compiler defines B: __unix__=1
Compiler defines C: __USE_FORTIFY_LEVEL=0
SDL Device Driver : x11
SDL Monitor Dimensions: 800 x 480
Using SDL single-window soft driver (SDL 1.2)
Keyboard: Start initialization
Input: Adding Kbd #1: System keyboard
Keyboard: Registered System keyboard
Keyboard: End initialization
Mouse: Start initialization
Input: Adding Mouse #1: System mouse
Mouse: Registered System mouse
Mouse: End initialization
Joystick: Start initialization
Joystick: End initialization
Audio initialized - driver: pulse, frequency: 48000, channels: 2, samples: 512
sdl_create_buffers: creating stream buffer of 57344 bytes
ouput: unable to open output notifier file /tmp/sdlmame_out
Illegal instruction

Top
#57317 - 26/12/09 01:23 PM Re: Arm Akimbo SDLMAME [Re: Flandry]
couriersud Offline
Senior Member

Registered: 19/02/07
Posts: 394
Which game did you try to run?

Given the "Illegal instruction", I recommend to compile with "OPTIMIZE=0 DEBUG=1" to get you started.

Top
#57320 - 26/12/09 03:31 PM Re: Arm Akimbo SDLMAME [Re: couriersud]
R. Belmont Offline
Senior Member

Registered: 17/03/01
Posts: 12492
Loc: USA
What, no GDB backtrace? smile

Top
#57324 - 26/12/09 09:31 PM Re: Arm Akimbo SDLMAME [Re: R. Belmont]
Flandry Offline
Member

Registered: 01/12/09
Posts: 24
That was the startup of the front end with no ROM specified, and compiled with OPTIMIZE=0. I'm guessing the console front end is a custom ROM (hence the bad instruction) and that suggests a pretty fundamental corruption of emulation. Perhaps its due to the endless warning on type casts from the earlier post. And yes, i guess it's time to break out the debugger.

The same build parameters work fine in the scratchbox (x86) target.


Edited by Flandry (26/12/09 11:17 PM)

Top
#57326 - 26/12/09 11:03 PM Re: Arm Akimbo SDLMAME [Re: Flandry]
Just Desserts Offline
Senior Member

Registered: 23/05/09
Posts: 752
Originally Posted By: Flandry
I'm guessing the console front end is a custom ROM


Err... what?

Top
#57327 - 26/12/09 11:22 PM Re: Arm Akimbo SDLMAME [Re: Just Desserts]
Flandry Offline
Member

Registered: 01/12/09
Posts: 24
Originally Posted By: Just Desserts
Originally Posted By: Flandry
I'm guessing the console front end is a custom ROM


Err... what?


Ie what goes on when mame is run without specifying a ROM. For it to get an illegal instruction without even beginning an emulation there most be something exceptional about that code (pun intended).

Anyway, building with DEBUG=1 fails.

Code:
Compiling src/osd/sdl/sdlos_unix.c...
src/osd/sdl/sdlos_unix.c: In function 'osd_break_into_debugger':
src/osd/sdl/sdlos_unix.c:117: warning: implicit declaration of function 'kill'
src/osd/sdl/sdlos_unix.c:117: error: 'SIGTRAP' undeclared (first use in this function)
src/osd/sdl/sdlos_unix.c:117: error: (Each undeclared identifier is reported only once
src/osd/sdl/sdlos_unix.c:117: error: for each function it appears in.)
make[1]: *** [obj/sdl/mamed/osd/sdl/sdlos_unix.o] Error 1


The debug will have to wait until i have time to see what's going on.


Edited by Flandry (26/12/09 11:22 PM)

Top
#57328 - 26/12/09 11:51 PM Re: Arm Akimbo SDLMAME [Re: Flandry]
etabeta78 Offline
Senior Member

Registered: 27/01/06
Posts: 2060
Loc: Trondheim, Norway
Originally Posted By: Flandry
Originally Posted By: Just Desserts
Originally Posted By: Flandry
I'm guessing the console front end is a custom ROM


Err... what?


Ie what goes on when mame is run without specifying a ROM. For it to get an illegal instruction without even beginning an emulation there most be something exceptional about that code (pun intended).


when you launch MAME without specifying game there is no custom ROM involved: it simply starts loading the empty driver from src/emu/drivers/empty.c (for your information, MAME could well support romless games with no problems, and indeed there are romless systems in MESS wink ).

Top
#57329 - 26/12/09 11:53 PM Re: Arm Akimbo SDLMAME [Re: Flandry]
couriersud Offline
Senior Member

Registered: 19/02/07
Posts: 394
That's been mentioned before. Put a "include <signal.h>" in sdlos_unix.c. Without a stack trace honestly there is not much hope for support on a target which most (all?) devs do not have access to.

Top
#57338 - 27/12/09 10:34 AM Re: Arm Akimbo SDLMAME [Re: couriersud]
ldesnogu Offline
Member

Registered: 23/07/06
Posts: 89
Well I got a N900 for Chrismas, so I will probably give SDLMAME a try... once I have installed the SDK on my Fedora 11 64-bit that is.

Top
#57342 - 27/12/09 03:12 PM Re: Arm Akimbo SDLMAME [Re: ldesnogu]
R. Belmont Offline
Senior Member

Registered: 17/03/01
Posts: 12492
Loc: USA
I've heard the N900 SDK is sufficiently Ubuntu-centric that on Fedora you're better off installing an Ubuntu VM image and running the SDK in that. Good luck smile

Top
Page 4 of 9 < 1 2 3 4 5 6 7 8 9 >


Moderator:  R. Belmont 
Who's Online
2 registered (Micko, Kaylee), 18 Guests and 3 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Forum Stats
4015 Members
9 Forums
6215 Topics
63601 Posts

Max Online: 162 @ 01/05/07 03:28 AM