Results 1 to 5 of 5

Thread: Mame (arcade game emulator) with Cave SH3 driver?

  1. #1
    Join Date
    Jan 2012
    Beans
    753

    Mame (arcade game emulator) with Cave SH3 driver?

    I recently downloaded Mame, the arcade game emulator. The Linux version (and I think some of the Windows versions) lack a specific driver though (Cave SH3 in the file cavesh3.c), required to play certain games made by Cave. I found a Windows version that works in Wine that has the Cave SH3 but I want to be able to play natively under Linux. The mame in the apt-get repository does not have the driver and I think it has to be compiled with the driver suppot (hence cavesh3.c) rather than being used with a plugin.

    How do I get the Linux version to work with the driver?

  2. #2
    Join Date
    Jan 2012
    Beans
    753

    Re: Mame (arcade game emulator) with Cave SH3 driver?

    I tried to compile it myself with "apt-get source mame". I put the driver, cavesh3.c, in the drivers folder with all the others, then ran "apt-get source --compile mame" to compile it. Everything went fine, and all the drivers compiled, until near the end:

    Code:
    ...
    Compiling src/lib/formats/p6001_cas.c...
    Compiling src/lib/formats/pasti_dsk.c... 
    Compiling src/lib/formats/pc_dsk.c...
    Compiling src/lib/formats/pmd_cas.c... 
    Compiling src/lib/formats/primoptp.c...
    Compiling src/lib/formats/rk_cas.c...
    Compiling src/lib/formats/smx_dsk.c... 
    Compiling src/lib/formats/sorc_dsk.c...
    Compiling src/lib/formats/sord_cas.c...
    Compiling src/lib/formats/st_dsk.c...
    Compiling src/lib/formats/svi_cas.c... 
    Compiling src/lib/formats/svi_dsk.c... 
    Compiling src/lib/formats/td0_dsk.c... 
    Compiling src/lib/formats/thom_cas.c...
    Compiling src/lib/formats/thom_dsk.c...
    Compiling src/lib/formats/ti99_dsk.c...
    Compiling src/lib/formats/trd_dsk.c... 
    Compiling src/lib/formats/trs_cas.c... 
    Compiling src/lib/formats/trs_dsk.c... 
    Compiling src/lib/formats/tzx_cas.c... 
    Compiling src/lib/formats/uef_cas.c... 
    Compiling src/lib/formats/vg5k_cas.c...
    Compiling src/lib/formats/vt_cas.c...
    Compiling src/lib/formats/vt_dsk.c...
    Compiling src/lib/formats/vtech1_dsk.c...
    Compiling src/lib/formats/wavfile.c... 
    Compiling src/lib/formats/x07_cas.c... 
    Compiling src/lib/formats/x1_tap.c...
    Compiling src/lib/formats/z80ne_dsk.c... 
    Compiling src/lib/formats/zx81_p.c...
    Compiling src/lib/formats/hxcmfm_dsk.c...
    Archiving obj/sdl64/libformats.a...
    Linking mame...
    obj/sdl64/libocore.a(sdlsync_tc.o):sdlsync_tc.c:function osd_scalable_lock_alloc(): error: undefined reference to 'pthread_mutexattr_init' 
    obj/sdl64/libocore.a(sdlsync_tc.o):sdlsync_tc.c:function osd_scalable_lock_alloc(): error: undefined reference to 'pthread_mutexattr_settype'
    obj/sdl64/libocore.a(sdlsync_tc.o):sdlsync_tc.c:function osd_lock_alloc: error: undefined reference to 'pthread_mutexattr_init'
    obj/sdl64/libocore.a(sdlsync_tc.o):sdlsync_tc.c:function osd_lock_alloc: error: undefined reference to 'pthread_mutexattr_settype' 
    obj/sdl64/libocore.a(sdlsync_tc.o):sdlsync_tc.c:function osd_lock_try: error: undefined reference to 'pthread_mutex_trylock' 
    obj/sdl64/libocore.a(sdlsync_tc.o):sdlsync_tc.c:function osd_event_alloc(int, int): error: undefined reference to 'pthread_mutexattr_init' 
    obj/sdl64/libocore.a(sdlsync_tc.o):sdlsync_tc.c:function osd_thread_create(void* (*)(void*), void*): error: undefined reference to 'pthread_create'
    obj/sdl64/libocore.a(sdlsync_tc.o):sdlsync_tc.c:function osd_thread_cpu_affinity(_osd_thread*, unsigned int): error: undefined reference to 'pthread_setaffinity_np' 
    obj/sdl64/libocore.a(sdlsync_tc.o):sdlsync_tc.c:function osd_thread_wait_free(_osd_thread*): error: undefined reference to 'pthread_join'
    collect2: error: ld returned 1 exit status 
    make[2]: *** [mame] Error 1
    make[2]: Leaving directory /tmp/mame/mame-0.146'
    make: *** [build] Error 2
    dpkg-buildpackage: error: debian/rules build gave error exit status 2
    What am I doing wrong?

  3. #3
    Join Date
    Jun 2007
    Location
    Porirua, New Zealand
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Mame (arcade game emulator) with Cave SH3 driver?

    Thread moved to Emulators.
    Forum DOs and DON'Ts
    Please use CODE tags
    Including your email address in a post is not recommended
    My Blog

  4. #4
    Join Date
    Jan 2012
    Beans
    753

    Re: Mame (arcade game emulator) with Cave SH3 driver?

    bump

  5. #5
    Join Date
    Sep 2013
    Beans
    1

    Re: Mame (arcade game emulator) with Cave SH3 driver?

    So, I found this http://www.vivanno.com/developpeur/p...r-to-mame0148/
    And so then I utilized the mame-0.148 source found here http://sdlmame.wallyweek.org/download/ to compile.
    You can download it here -removed-

    EDIT

    Found a lot more of resources and compiled them with the latest Mame 150
    Includes: NeoGeo OC, NeoGeo Unlicensed, Cave SH3, HighScore, DirectInput, NoNag and NoBuffer.
    All diff used can be found here: http://www.systempixel.fr/extra/

    DD http://goo.gl/4mQ8V7
    Last edited by gliszt-style; September 18th, 2013 at 07:32 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •