Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Ability to compile mame

  1. #1
    Member registered user
    Join Date
    Apr 2007
    Posts
    93

    Ability to compile mame

    It would be really awesome if all of the libraries were in place so that you could just download mame and type "make" and have everything compile without having to install a bunch of things with apt-get.

    Years ago I think with knoppix5.3 dvd I seem to remember being able to compile the version of mame that was current then with knoppix out of the box.

  2. #2
    Hi, there:

    Not trying to be a smart ar$e, but have just went to the Debian repository for a quick look. Pre-compiled deb packages of mame (version 0.146 and 0.154) are up for grabs from here if running the most updated version of mime (version 0.168 ) isn't the object. Not a gamer, so I have no idea if running different versions will make a difference though...

  3. #3
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    512
    Hi!

    I think one should try out the binary package from deb-multimedia.org. There you can find mame version 0.168 for the sid distribution. Maybe this package works with Knoppix 7.6.0, too.

    Since the source of mame 0.168 deb package is also available there you could read the build description of the package in order to find out which additional packages are to be installed on Knoppix 7.6.0 or if there is any conflicting package which make it nearly impossible to compile mame 0.168.

  4. #4
    Member registered user
    Join Date
    Apr 2007
    Posts
    93
    Quote Originally Posted by klaus2008 View Post
    Hi!

    I think one should try out the binary package from deb-multimedia.org. There you can find mame version 0.168 for the sid distribution. Maybe this package works with Knoppix 7.6.0, too.

    Since the source of mame 0.168 deb package is also available there you could read the build description of the package in order to find out which additional packages are to be installed on Knoppix 7.6.0 or if there is any conflicting package which make it nearly impossible to compile mame 0.168.
    Thanks for all of your suggestions. Two of my favorite things are knoppix and mame. Someone awhile back put out something called "knoppixmame" but that hasn't been updated for a long time.

    I didn't know about deb-multimedia.org, so I'll give it a try.

    I had some problems with knoppix 7.5 with using synaptic and updating packages and got a little discouraged.

  5. #5
    Member registered user
    Join Date
    Apr 2007
    Posts
    93
    Quote Originally Posted by don999 View Post
    Thanks for all of your suggestions. Two of my favorite things are knoppix and mame. Someone awhile back put out something called "knoppixmame" but that hasn't been updated for a long time.

    I didn't know about deb-multimedia.org, so I'll give it a try.

    I had some problems with knoppix 7.5 with using synaptic and updating packages and got a little discouraged.

    After I got started using ubuntu, I've been using that because I can compile mame without any problems. But I love to fiddle with knoppix so I thought I'd give it a go with knoppix 8.1.

    (from http://docs.mamedev.org/initialsetup/compilingmame.html)

    sudo apt-get install git build-essential libsdl2-dev libsdl2-ttf-dev libfontconfig-dev qt5-default

    which should install everything you need to compile mame.

    I tried that on a fresh knoppix 8.1 after updating the repositories with "sudo apt-get update" and it hangs up on:

    sudo apt-get install git build-essential libsdl2-dev libsdl2-ttf-dev libfontconfig-dev qt5-default
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Note, selecting 'libfontconfig1-dev' instead of 'libfontconfig-dev'
    build-essential is already the newest version (12.3).
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    libsdl2-dev : Depends: libgles2-mesa-dev but it is not going to be installed
    Depends: libpulse-dev but it is not going to be installed
    Depends: libsdl2-2.0-0 (= 2.0.5+dfsg1-2) but 2.0.7+dfsg1-3 is to be installed
    Depends: libudev-dev but it is not going to be installed
    Depends: libxss-dev but it is not going to be installed
    libsdl2-ttf-dev : Depends: libsdl2-ttf-2.0-0 (= 2.0.14+dfsg1-1) but 2.0.14+dfsg1-2 is to be installed
    qt5-default : Depends: qtbase5-dev but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.


    I'm pretty much a novice with the complexities of upgrading so I thought I'd try the deb-multimedia packages as suggested.

    I was able to get the "stable" version working without any problems (it is version 0.186)

    http://deb-multimedia.org/dists/stab...kage/mame-data
    http://deb-multimedia.org/dists/stab...6/package/mame

    I downloaded the deb files:

    http://deb-multimedia.org/pool/main/...6-dmo1_all.deb
    http://deb-multimedia.org/pool/main/...-dmo1_i386.deb

    then did a dpkg -i to install them:

    sudo dpkg -i mame-data_0.186-dmo1_all.deb
    sudo dpkg -i mame_0.186-dmo1_i386.deb

    and it puts the mame files in /usr/share/games/mame and the executable in /usr/games/mame

    ls /usr/share/games/mame
    ls -l /usr/games/mame

    The deb-multimedia "testing" version didn't work for me with various dependency problems.

    sudo dpkg -i mame_0.192-dmo1_i386.deb (Reading database ... 451601 files and directories currently installed.)
    Preparing to unpack mame_0.192-dmo1_i386.deb ...
    Unpacking mame (1:0.192-dmo1) over (1:0.186-dmo1) ...
    dpkg: dependency problems prevent configuration of mame:
    mame depends on libsdl2-2.0-0 (>= 2.0.7); however:
    Version of libsdl2-2.0-0:i386 on system is 2.0.5+dfsg1-3.
    mame depends on libutf8proc2 (>= 1.3); however:
    Package libutf8proc2 is not installed.

    ===============================

    And I've come up with a command line that I like:

    mame -rompath "whereiputmyroms" -console -ui_active -window -debug -confirm_quit -verbose

    I needed to add the -ui_active or the ui tab menu wouldn't come up in mame. Interestingly, the Insert key is the toggle key for full/partial keyboard emulation, mame's standard key is the Scroll Lock key.

    Use -verbose if you want to know all about what mame is doing, and how it was compiled.

    Use the -debug switch if you want to use the mame debugger. (type g to "go" in the debugger window)

    And you can use the lua console of mame if you use the -console switch so you can fiddle with lua from the terminal.

    [MAME]> print("I am lua")
    I am lua
    [MAME]> for i=1,10 do print(i) end
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10

    ========================

    or if you want debian's version (which is only 0.182) you can simply do

    sudo apt-get install mame

    knoppix@Microknoppix:~/Downloads$ sudo apt-get install mame
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following additional packages will be installed:
    mame-data
    Suggested packages:
    gnome-video-arcade mame-doc mame-extra mame-tools
    The following NEW packages will be installed:
    mame mame-data
    0 upgraded, 2 newly installed, 0 to remove and 1201 not upgraded.
    Need to get 48.0 MB of archives.
    After this operation, 239 MB of additional disk space will be used.
    Do you want to continue? [Y/n] y
    Get:1 http://ftp.de.debian.org/debian stable/main i386 mame-data all 0.182-1 [9,176 kB]
    Get:2 http://ftp.de.debian.org/debian stable/main i386 mame i386 0.182-1 [38.8 MB]
    Fetched 48.0 MB in 25s (1,882 kB/s)
    ...

    but for some reason I couldn't get the lua console to work with 0.182.

    Have fun!

  6. #6
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    512
    Hi!

    The deb-multimedia "testing" version didn't work for me with various dependency problems.
    I would suggest you issue
    Code:
    sudo apt-get update
    sudo apt-get -f install
    after using dpkg.

  7. #7
    Member registered user
    Join Date
    Apr 2007
    Posts
    93
    Quote Originally Posted by klaus2008 View Post
    Hi!


    I would suggest you issue
    Code:
    sudo apt-get update
    sudo apt-get -f install
    after using dpkg.
    I tried that but it didn't seem to work for me... it still couldn't handle the conflicts.

    I've got a question regarding some strange behavior of knoppix 8.1.

    If I install the deb-multimedia.org version of mame 0.186, I can use the mame lua console if I use knoppix 8.1 from a non-persistent system (ie just fresh boot from an 8.1 live dvd).

    I can use the mame lua console if I use knoppix 8.1 from a flash drive installed with a fat32 partition with a fat32 overlay image.

    but if I use knoppix 8.1 from a flash drive/hard drive installed with a fat32 partition with a reiserfs overlay partition, the mame lua console does _NOT_ work. I've been testing and testing and it seems to definitely be the reiserfs overlay partition.


    The packages that I'm using are:

    http://deb-multimedia.org/dists/stab...6/package/mame
    http://deb-multimedia.org/dists/stab...kage/mame-data

    and the download packages are at:

    http://deb-multimedia.org/pool/main/...-dmo1_i386.deb
    http://deb-multimedia.org/pool/main/...6-dmo1_all.deb


    This is on a freshly installed knoppix with reiserfs overlay partition:

    Code:
    knoppix@Microknoppix:~$ sudo dpkg -i mame_0.186-dmo1_i386.deb mame-data_0.186-dmo1_all.deb 
    Selecting previously unselected package mame.
    (Reading database ... 449729 files and directories currently installed.)
    Preparing to unpack .../mame_0.186-dmo1_i386.deb ...
    Unpacking mame (1:0.186-dmo1) ...
    Selecting previously unselected package mame-data.
    Preparing to unpack .../mame-data_0.186-dmo1_all.deb ...
    Unpacking mame-data (1:0.186-dmo1) ...
    Setting up mame-data (1:0.186-dmo1) ...
    Setting up mame (1:0.186-dmo1) ...
    Processing triggers for man-db (2.7.6.1-2) ...
    Processing triggers for menu (2.1.47+b1) ...
    knoppix@Microknoppix:~$ mame -console
    knoppix@Microknoppix:~$
    
    noppix@Microknoppix:~$ mame -verbose
    Available videodrivers: x11 wayland dummy 
    Current Videodriver: x11
        Display #0
            Renderdrivers:
                    opengl (0x0)
                 opengles2 (0x0)
                  software (0x0)
    Available audio drivers: 
        pulseaudio          
        alsa                
        sndio               
        dsp                 
        disk                
        dummy               
    Build version:      0.186 (unknown)
    Build architecure:  
    Build defines 1:    SDLMAME_UNIX=1 SDLMAME_X11=1 SDLMAME_LINUX=1 
    Build defines 1:    LSB_FIRST=1 
    SDL/OpenGL defines: SDL_COMPILEDVERSION=2005 USE_OPENGL=1 
    Compiler defines A: __GNUC__=4 __GNUC_MINOR__=2 __GNUC_PATCHLEVEL__=1 __VERSION__="4.2.1 Compatible Clang 3.8.1 (tags/RELEASE_381/final)" 
    Compiler defines B: __unix__=1 __i386__=1 
    Compiler defines C: __USE_FORTIFY_LEVEL=0 
    Enter init_monitors
    Adding monitor screen0 (1920 x 1080)
    Leave init_monitors
    Enter sdlwindow_init
    Using SDL multi-window OpenGL driver (SDL 2.0+)
    (note that no lua console is shown and no plugins work, if you go to the plugins menu in mame, you will not see any entries)

    Again, this only seems to happen with the reiserfs overlay.

  8. #8
    Member registered user
    Join Date
    Apr 2007
    Posts
    93
    I thought I'd try it again to make sure:

    I boot knoppix, typing "knoppix64 noimage" to boot without using the overlay partition. It's just as if I booted knoppix with the live dvd.

    Then I mount the reiserfs overlay partition on /dev/sdb2 readonly on /mnt/a just so I can access my mamepackages which I've previously downloaded.

    Once I install the 0.186 dmo packages with dpkg, the mame lua console and the plugins work. If you go to the plugins menu in mame, the menu shows all the normal plugins.


    Code:
    knoppix@Microknoppix:~$ mame
    bash: mame: command not found
    knoppix@Microknoppix:~$ sudo mkdir /mnt/a; sudo mount /dev/sdb2 /mnt/a -o ro
    knoppix@Microknoppix:~$ ls /mnt/a/home/knoppix/mamepackages/
    mame_0.182-1_i386.deb         mame-data_0.182-1_all.deb
    mame_0.186-dmo1_amd64.deb     mame-data_0.186-dmo1_all.deb
    mame_0.186-dmo1_i386.deb      mame-data_0.189+dfsg.1-1_all.deb
    mame_0.189+dfsg.1-1_i386.deb  mame-extra_0.182-1_all.deb
    mame_0.192-dmo1_i386.deb
    knoppix@Microknoppix:~$ time sudo dpkg -i /mnt/a/home/knoppix/mamepackages/mame_0.186-dmo1_i386.deb /mnt/a/home/knoppix/mamepackages/mame-data_0.186-dmo1_all.deb 
    Selecting previously unselected package mame.
    (Reading database ... 449729 files and directories currently installed.)
    Preparing to unpack .../mame_0.186-dmo1_i386.deb ...
    Unpacking mame (1:0.186-dmo1) ...
    Selecting previously unselected package mame-data.
    Preparing to unpack .../mame-data_0.186-dmo1_all.deb ...
    Unpacking mame-data (1:0.186-dmo1) ...
    Setting up mame-data (1:0.186-dmo1) ...
    Setting up mame (1:0.186-dmo1) ...
    Processing triggers for man-db (2.7.6.1-2) ...
    Processing triggers for menu (2.1.47+b1) ...
    
    real    0m15.095s
    user    0m6.235s
    sys    0m5.348s
    knoppix@Microknoppix:~$ mame -console
        _/      _/    _/_/    _/      _/  _/_/_/_/
       _/_/  _/_/  _/    _/  _/_/  _/_/  _/       
      _/  _/  _/  _/_/_/_/  _/  _/  _/  _/_/_/    
     _/      _/  _/    _/  _/      _/  _/         
    _/      _/  _/    _/  _/      _/  _/_/_/_/    
    
    mame 0.186    
    Copyright (C) Nicola Salmoria and the MAME team
    
    Lua 5.3    
    Copyright (C) Lua.org, PUC-Rio
    
    [MAME]> 
    knoppix@Microknoppix:~$ mame -verbose -console
        _/      _/    _/_/    _/      _/  _/_/_/_/
       _/_/  _/_/  _/    _/  _/_/  _/_/  _/       
      _/  _/  _/  _/_/_/_/  _/  _/  _/  _/_/_/    
     _/      _/  _/    _/  _/      _/  _/         
    _/      _/  _/    _/  _/      _/  _/_/_/_/    
    
    mame 0.186    
    Copyright (C) Nicola Salmoria and the MAME team
    
    Lua 5.3    
    Copyright (C) Lua.org, PUC-Rio
    
    Available videodrivers: x11 wayland dummy 
    Current Videodriver: x11
        Display #0
            Renderdrivers:
                    opengl (0x0)
                 opengles2 (0x0)
                  software (0x0)
    Available audio drivers: 
        pulseaudio          
        alsa                
        sndio               
        dsp                 
        disk                
        dummy               
    Build version:      0.186 (unknown)
    Build architecure:  
    Build defines 1:    SDLMAME_UNIX=1 SDLMAME_X11=1 SDLMAME_LINUX=1 
    Build defines 1:    LSB_FIRST=1 
    SDL/OpenGL defines: SDL_COMPILEDVERSION=2005 USE_OPENGL=1 
    Compiler defines A: __GNUC__=4 __GNUC_MINOR__=2 __GNUC_PATCHLEVEL__=1 __VERSION__="4.2.1 Compatible Clang 3.8.1 (tags/RELEASE_381/final)" 
    Compiler defines B: __unix__=1 __i386__=1 
    Compiler defines C: __USE_FORTIFY_LEVEL=0 
    ...
    
    and the version of Knoppix:
    
    knoppix@Microknoppix:~$ cat /mnt-system/KNOPPIX/kversion 
    8.1-2017-09-05
    
    
    knoppix@Microknoppix:~$ uname -a
    Linux Microknoppix 4.12.7-64 #13 SMP PREEMPT Tue Aug 15 04:56:38 CEST 2017 x86_64 GNU/Linux
    
    
    knoppix@Microknoppix:~$ lsb_release -a
    No LSB modules are available.
    Distributor ID:    Debian
    Description:    Debian GNU/Linux 9.1 (stretch)
    Release:    9.1
    Codename:    stretch

  9. #9
    Member registered user
    Join Date
    Apr 2007
    Posts
    93
    I was fiddling around with Debian 9.3 and thought, what if I installed Debian 9.3 i386 32 bit on an external usb hard drive and see if I could compile mame 194.

    I was able to compile mame 194 myself after removing a few items from the compile specifically the barcrest and bfm games, otherwise it would exhaust the virtual memory with gcc v6.3.0.



    This comments out the barcrest and bfm in mame.lst with c style comments: Adding 6 lines.
    Code:
    diff ../mame194orig/src/mame/mame.lst  src/mame/mame.lst 
    2875a2876
    > /*
    8683a8685
    > */
    21424a21427
    > /*
    27842a27846
    > */
    32555a32560
    > /*
    32558a32564
    > */
    
    diff ../mame194orig/src/mame/mame.lst  src/mame/mame.lst -u5
    --- ../mame194orig/src/mame/mame.lst    2018-01-31 11:19:22.000000000 -0500
    +++ src/mame/mame.lst    2018-03-12 04:39:47.748825373 -0400
    @@ -2871,10 +2871,11 @@
     bestleaw                        // bootleg
     
     @source:beta.cpp
     beta                            //
     
    +/*
     @source:bfcobra.cpp
     beeline                         // 1991 BFM
     escounts                        // 1990 BFM
     inquiztr                        // 1989 BFM
     qos                             // 1992 BFM
    @@ -8679,10 +8680,11 @@
     b85ritzc                        //
     b85ritzd                        //
     b85royal                        //
     b85scard                        // (c) 198? BFM
     b85sngam                        //
    +*/
     
     @source:bgt.cpp
     bg_barmy                        //
     bg_ddb                          //
     bg_max                          //
    @@ -21420,10 +21422,11 @@
     mps1230                         // 1988 Commodore MPS-1230 near-letter-quality dot matrix printer
     
     @source:mpu12wbk.cpp
     fruitstb                        //
     
    +/*
     @source:mpu2.cpp
     m2hilite                        // Hi-Lights (Barcrest) (MPU2)
     m2svlite                        // Silver Lights (Barcrest) (MPU2)
     
     @source:mpu3.cpp
    @@ -27838,10 +27841,11 @@
     m5xfact                         // X Factor (Empire)
     m5xfact02                       //
     m5xfact04                       //
     m5xfact11                       //
     m5zigzag                        // Zig Zag
    +*/
     
     @source:mpz80.cpp
     mpz80                           //
     
     @source:mquake.cpp
    @@ -32551,13 +32555,15 @@
     rastanub                        // B04 (c) 1987 Taito America Corporation (US)
     rastsaga                        // B04 (c) 1987 Taito Corporation (Japan)
     rastsagaa                       // B04 (c) 1987 Taito Corporation (Japan)
     rastsagab                       // B04 (c) 1987 Taito Corporation (Japan)
     
    +/*
     @source:rastersp.cpp
     fbcrazy                         // 1997
     rotr                            // 1994
    +*/
     
     @source:ravens.cpp
     ravens                          //
     ravens2                         //
    This comments out barcrest and bfm using lua style comments. Changing 6 lines.

    Code:
    diff ../mame194orig/scripts/target/mame/arcade.lua scripts/target/mame/arcade.lua 
    747,748c747,748
    <         "barcrest",
    <         "bfm",
    ---
    >     --    "barcrest",
    >     --    "bfm",
    1283a1284
    > --[[
    1308a1310,1311
    > --]]
    > --[[
    1340a1344
    > --]]
    
    
    diff ../mame194orig/scripts/target/mame/arcade.lua scripts/target/mame/arcade.lua -u5
    --- ../mame194orig/scripts/target/mame/arcade.lua    2018-01-31 11:18:24.000000000 -0500
    +++ scripts/target/mame/arcade.lua    2018-03-11 14:05:01.899315814 -0400
    @@ -742,12 +742,12 @@
             "amiga",
             "aristocr",
             "ascii",
             "atari",
             "atlus",
    -        "barcrest",
    -        "bfm",
    +    --    "barcrest",
    +    --    "bfm",
             "bmc",
             "capcom",
             "ces",
             "cinemat",
             "comad",
    @@ -1279,10 +1279,11 @@
         MAME_DIR .. "src/mame/includes/powerins.h",
         MAME_DIR .. "src/mame/video/powerins.cpp",
         MAME_DIR .. "src/mame/drivers/bowltry.cpp",
     }
     
    +--[[
     createMAMEProjects(_target, _subtarget, "barcrest")
     files {
         MAME_DIR .. "src/mame/drivers/mpu2.cpp",
         MAME_DIR .. "src/mame/drivers/mpu3.cpp",
         MAME_DIR .. "src/mame/machine/mpu4.cpp",
    @@ -1304,10 +1305,12 @@
         MAME_DIR .. "src/mame/drivers/mpu4vid.cpp",
         MAME_DIR .. "src/mame/drivers/mpu5.cpp",
         MAME_DIR .. "src/mame/drivers/mpu5.hxx",
     }
     
    +--]]
    +--[[
     createMAMEProjects(_target, _subtarget, "bfm")
     files {
         MAME_DIR .. "src/mame/drivers/bfcobra.cpp",
         MAME_DIR .. "src/mame/machine/bfm_comn.cpp",
         MAME_DIR .. "src/mame/machine/bfm_comn.h",
    @@ -1336,10 +1339,11 @@
         MAME_DIR .. "src/mame/machine/bfm_bda.h",
         MAME_DIR .. "src/mame/video/bfm_dm01.cpp",
         MAME_DIR .. "src/mame/video/bfm_dm01.h",
         MAME_DIR .. "src/mame/drivers/rastersp.cpp",
     }
    +--]]
     
     createMAMEProjects(_target, _subtarget, "bmc")
     files {
         MAME_DIR .. "src/mame/drivers/bmcbowl.cpp",
         MAME_DIR .. "src/mame/drivers/koftball.cpp",



    To my surprise, the compiled binary worked perfectly on knoppix 8.1. I guess it's not too surprising considering they are both based on debian.9.3.

    Code:
    lsb_release -a
    No LSB modules are available.
    Distributor ID:    Debian
    Description:    Debian GNU/Linux 9.3 (stretch)
    Release:    9.3
    Codename:    stretch


    Code:
    ./mame  -sdlvideofps galaxian -verbose -video opengl
    Available videodrivers: x11 wayland dummy 
    Current Videodriver: x11
        Display #0
            Renderdrivers:
                    opengl (0x0)
                 opengles2 (0x0)
                  software (0x0)
    Available audio drivers: 
        pulseaudio          
        alsa                
        sndio               
        dsp                 
        disk                
        dummy               
    Build version:      0.194 (unknown)
    Build architecure:  
    Build defines 1:    SDLMAME_UNIX=1 SDLMAME_X11=1 SDLMAME_LINUX=1 
    Build defines 1:    LSB_FIRST=1 
    SDL/OpenGL defines: SDL_COMPILEDVERSION=2005 USE_OPENGL=1 
    Compiler defines A: __GNUC__=6 __GNUC_MINOR__=3 __GNUC_PATCHLEVEL__=0 __VERSION__="6.3.0 20170516" 
    Compiler defines B: __unix__=1 __i386__=1 
    Compiler defines C: __USE_FORTIFY_LEVEL=0 
    Enter init_monitors
    Adding monitor screen0 (1920 x 1080)
    Leave init_monitors
    Enter sdlwindow_init
    Using SDL multi-window OpenGL driver (SDL 2.0+)
    ...snip...
    GL texture: copy 0, shader 0, dynamic 0, 768x224 768x224 [RGB32, Equal: 1, Palette: 0,
                scale 1x1, border 0, pitch 1152,768/2048], bytes/pix 4
    GL texture: copy 0, shader 0, dynamic 0, 768x224 768x224 [RGB32, Equal: 1, Palette: 0,
                scale 1x1, border 0, pitch 1152,768/2048], bytes/pix 4
      0.02s,    1 F, avrg game: 60.24 FPS 16.60 ms/f, avrg video: 731.20 FPS 1.37 ms/f, last video:   inf FPS 0.73 ms/f
      1.02s,   62 F, avrg game: 60.61 FPS 16.50 ms/f, avrg video: 1288.61 FPS 0.78 ms/f, last video:   inf FPS 0.66 ms/f
      2.03s,  123 F, avrg game: 60.60 FPS 16.50 ms/f, avrg video: 1356.92 FPS 0.74 ms/f, last video:   inf FPS 0.69 ms/f
      3.04s,  184 F, avrg game: 60.60 FPS 16.50 ms/f, avrg video: 1312.29 FPS 0.76 ms/f, last video:   inf FPS 0.81 ms/f
    Average speed: 100.00% (4 seconds)
    sdl_kill: closing audio
    Sound buffer: overflows=3 underflows=0
    Enter sdlwindow_exit
    Leave sdlwindow_exit
    So while it's not compiling under knoppix 8.1 itself, it's the next best thing.
    Last edited by don999; 03-23-2018 at 12:55 PM.

  10. #10
    Member registered user
    Join Date
    Apr 2007
    Posts
    93
    =========================

    Knoppix 9.1 and mame

    ==========================


    I wanted to see if I could get knoppix9.1 working with mame,

    "lsb_release -a"
    says that it's running "bullseye/sid"

    so I went to packages.debian.org and looked under bullseye and found

    https://packages.debian.org/bullseye/i386/games/mame
    https://packages.debian.org/bullseye...ames/mame-data
    https://packages.debian.org/bullseye...games/mame-doc
    https://packages.debian.org/bullseye/i386/liblua5.3-0
    https://packages.debian.org/bullseye/i386/libpugixml1v5


    and get all of these and make sure that you get the "i386" version

    then you should have these files:

    Code:
    mame_0.228+dfsg.1-1_i386.deb
    mame-data_0.228+dfsg.1-1_all.deb  
    mame-doc_0.228+dfsg.1-1_all.deb 
    
    liblua5.3-0_5.3.3-1.1+b1_i386.deb  
    libpugixml1v5_1.11.4-1_i386.deb
    and then use dpkg -i to install them:

    Code:
    sudo dpkg -i  libpugixml1v5_1.11.4-1_i386.deb  mame-data_0.228+dfsg.1-1_all.deb mame-doc_0.228+dfsg.1-1_all.deb liblua5.3-0_5.3.3-1.1+b1_i386.deb mame_0.228+dfsg.1-1_i386.deb
    That should install all of the mame stuff.

    set $roms to where you've got your roms. For example, say I've got my roms in two different directories:
    Code:
    ROMS="/media/sdb1/roms;/media/sdb1/soft"
    then launch mame with
    Code:
    mame -rompath "$ROMS"

    =====================================


    I had a little bit of trouble getting the joystick (mame uses SDL2 for joystick input) to work under sdl2 because of permissions, you may try a couple of things:

    I installed evtest as well from:

    https://packages.debian.org/bullseye/i386/utils/evtest

    so if you run "sudo evtest" it will give you a list. Figure out which one is your joystick, and then

    If you don't want to install evtest, you could try just looking at /proc/bus/input/devices:
    Code:
    cat /proc/bus/input/devices
    Code:
    ls -l /dev/input
    drwxr-xr-x 2 root root     220 Sep 27 14:28 by-id
    drwxr-xr-x 2 root root     240 Sep 27 14:28 by-path
    crw-rw---- 1 root input 13, 64 Aug  7 08:56 event0
    crw-rw---- 1 root input 13, 65 Aug  7 08:56 event1
    crw-rw---- 1 root input 13, 76 Aug  7 08:56 event12
    crw-rw---- 1 root input 13, 77 Aug  7 08:56 event13
    crw-rw---- 1 root input 13, 78 Aug  7 08:56 event14
    crw-rw---- 1 root input 13, 79 Aug  7 08:56 event15
    crw-rw---- 1 root input 13, 80 Aug  7 08:56 event16
    crw-rw---- 1 root input 13, 81 Aug  7 08:56 event17
    crw-rw---- 1 root input 13, 82 Aug  7 08:56 event18
    crw-rw---- 1 root input 13, 83 Aug  7 08:56 event19
    crw-rw---- 1 root input 13, 66 Aug  7 08:56 event2
    crw-rw---- 1 root input 13, 67 Sep 27 14:28 event3
    crw-rw---- 1 root input 13, 68 Sep 27 14:28 event4
    crw-rw---- 1 root input 13, 69 Aug  7 08:56 event5
    crw-rw---- 1 root input 13, 70 Aug  7 08:56 event6
    crw-rw---- 1 root input 13, 71 Sep 27 14:28 event7
    crw-rw---- 1 root input 13, 72 Sep 27 14:28 event8
    crw-rw---- 1 root input 13, 73 Sep 27 14:28 event9
    crw-rw-r-- 1 root input 13,  1 Aug  7 08:56 js1
    crw-rw---- 1 root input 13, 63 Aug  7 08:56 mice
    crw-rw---- 1 root input 13, 32 Aug  7 08:56 mouse0
    crw-rw---- 1 root input 13, 33 Aug  7 08:56 mouse1
    crw-rw---- 1 root input 13, 34 Aug  7 08:56 mouse2
    crw-rw---- 1 root input 13, 35 Sep 27 14:28 mouse3
    Notice how js1 has the crw-rw-r--? SDL2 doesn't use the /dev/input/jsX, but rather one of the /dev/input/eventXX, and I think it has to have the a+r set.

    Code:
    "sudo chmod a+r /dev/input/event22"
    if the list says your joystick is event 22
    This will open up the permissions for /dev/input/event22 so "all can read" it.

    so if you launch mame with -verbose it should show your joystick getting opened.

    Some discussion about the issue here:
    https://discourse.libsdl.org/t/sdl2-requires-root-privileges-to-use-joysticks-in-linux/20181

    https://stackoverflow.com/questions/...ck-but-os-does

    another thing you could try is to add the user "knoppix" to the "input" group.
    Code:
    groups knoppix  (will show the groups that knoppix is part of)
    sudo adduser knoppix input

Page 1 of 2 12 LastLast

Posting Permissions

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


Seagate Exos X20 ST16000NM000D 16TB 7.2K SATA 6Gb/s 3.5

Seagate Exos X20 ST16000NM000D 16TB 7.2K SATA 6Gb/s 3.5" Enterprise Hard Drive

$209.99



WD Green SATA HDD - 3TB picture

WD Green SATA HDD - 3TB

$59.99



WD 16TB Elements Desktop, Certified Refurbished External Hard Drive - RWDBWLG... picture

WD 16TB Elements Desktop, Certified Refurbished External Hard Drive - RWDBWLG...

$209.99



Western Digital 6TB WD Blue PC, Internal Hard Drive - WD60EZAZ picture

Western Digital 6TB WD Blue PC, Internal Hard Drive - WD60EZAZ

$104.99



Seagate ST12000NM0127 12TB 256MB 7200RPM 3.5

Seagate ST12000NM0127 12TB 256MB 7200RPM 3.5" SATA 6.0Gb/s Enterprise Hard Drive

$89.99



HGST Ultrastar DC HC520 12TB SATA 6Gb 256MB 3.5

HGST Ultrastar DC HC520 12TB SATA 6Gb 256MB 3.5" Enterprise HDD- HUH721212ALE601

$99.99



Seagate ST12000NM0127 12TB SATA 6Gb/s 256MB 7200RPM 3.5

Seagate ST12000NM0127 12TB SATA 6Gb/s 256MB 7200RPM 3.5" Enterprise Hard Drive

$99.99



1TB HDD/SSD 2.5

1TB HDD/SSD 2.5" SATA Hard Drive for Laptop with Win 10/Win 11 Pro Pre-installed

$15.55



Western Digital WD10JUCT-63CYNYGB0 1TB 2.5

Western Digital WD10JUCT-63CYNYGB0 1TB 2.5" SATA 3Gb/s 5400RPM Laptop Hard Drive

$17.98



WD WD140EDFZ 14TB 5400RPM 512MB Cache SATA 6.0Gb/s 3.5

WD WD140EDFZ 14TB 5400RPM 512MB Cache SATA 6.0Gb/s 3.5" Internal Hard Drive

$119.99