Results 1 to 10 of 15

Thread: Ability to compile mame

Threaded View

  1. #9
    Member registered user
    Join Date
    Apr 2007
    Posts
    95
    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.

Posting Permissions

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


1969 EAI TR-20 Analog Computer Programming PACE Philbrick Electronic Associates picture

1969 EAI TR-20 Analog Computer Programming PACE Philbrick Electronic Associates

$35.00



VINTAGE 1970s SKIT Scientific Kit for Computer & Electronics SEALED INSIDE Rare picture

VINTAGE 1970s SKIT Scientific Kit for Computer & Electronics SEALED INSIDE Rare

$249.00



Vintage Donner Scientific Analog Computer Patch Cords Banana Plugs & Resistor picture

Vintage Donner Scientific Analog Computer Patch Cords Banana Plugs & Resistor

$75.00



Micron Xceed Gray-Scale 30 Macintosh SE/30 Grayscale CRT Neck Board Adapter NOS picture

Micron Xceed Gray-Scale 30 Macintosh SE/30 Grayscale CRT Neck Board Adapter NOS

$425.00



Apple Macintosh 128k 512k Plus Power Supply Analog Board - needs work picture

Apple Macintosh 128k 512k Plus Power Supply Analog Board - needs work

$60.00



Vintage 1970’s Analogic MP2110 10-Bit A/D Converter Computer Circuit Board picture

Vintage 1970’s Analogic MP2110 10-Bit A/D Converter Computer Circuit Board

$24.99



Apple II V2 ANALOG VGA & Z80 PCPI Applicard Softcard PicoPal IIe picture

Apple II V2 ANALOG VGA & Z80 PCPI Applicard Softcard PicoPal IIe

$56.99



Vintage Analog Computing Magazines For Atari Computer Owners No 11-20 Acceptable picture

Vintage Analog Computing Magazines For Atari Computer Owners No 11-20 Acceptable

$75.00



RARE VINTAGE Kontron 80 Psi Compact Microcomputer Computer Germany Early 1980s picture

RARE VINTAGE Kontron 80 Psi Compact Microcomputer Computer Germany Early 1980s

$319.99



Rare Vintage CH Product Mach III Analog Joystick for Apple Mac picture

Rare Vintage CH Product Mach III Analog Joystick for Apple Mac

$45.00