Skip to content

Bremma/pinmame

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PinMAME Library or libpinmame

Building

Mac OS X (Intel only)

Install Developer Tools (XCode)

If you don't already have it, then you need to install the Developer Tools that are packaged on your Mac OS X disc. You can also download the latest version.

You should now be able to run make in the root of the pinmame directory.

Install Ruby FFI Gem

  1. Run gem update --system to make sure that you are using the latest version of RubyGems.
  2. Run gem install rake to make sure that you have rake installed.
  3. Run gem install ffi.

Testing the setup

After you have run make and with Ruby FFI installed, you can test your configuration by running ruby test.rb. If you see a 0 on the next line then you are all set.

Windows

Installing dependencies

Grab a copy of Cygwin. Make sure that you select the following packages for installation.

Under 'Devel'

  • ruby
  • gcc

Under 'Lib'

  • libffi

Under 'Mingw'

  • mingw-libz

With this much installed you should be able to run make in the root of the directory. This will build libpinmame.dll. But you won't be able to use Ruby FFI to make calls into the library. Since this is how most future work will be developed, you need to get your ruby environment up and running.

Configuring Ruby

You need to use ruby from Cygwin in order to use it to make calls into libpinmame. So the first thing that you need to do is install RubyGems.

  1. Grab the RubyGems source
  2. Unzip with tar -zxvf rubygems-X.X.X.tgz
  3. Switch to the RubyGems directory
  4. Run /usr/bin/ruby setup.rb. Note this needs to be run from a Cygwin console window.
  5. Run /usr/bin/gem update --system.
  6. Run /usr/bin/gem install rake.

Now you have a working copy of Ruby with RubyGems support. Congrats!

Installing Ruby FFI Gem

This part is really easy. Just run /usr/bin/gem install ffi. That's it. Wasn't that easy?

Testing the setup

Now you should be able to run /usr/bin/ruby test.rb. If you see 0 on the next line then it worked.

About

A mirror of the pinmame source code with modifications to add a ruby-based console front-end.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%