From 4d2a5a6ee219195fdf9252cb5861d7dd9650b7e1 Mon Sep 17 00:00:00 2001 From: Geoffrey Plitt Date: Fri, 13 Feb 2015 13:24:21 -0800 Subject: [PATCH 1/3] added Mac build instructions --- README.md | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8862cb1b6b..f044800b76 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ More developer-centric stuff is found [here](https://github.com/libretro/libretr ## Philosophy RetroArch attempts to be small and lean, -while still having all the useful core features expected from an emulator. +while still having all the useful core features expected from an emulator. It is designed to be very portable and features a gamepad-centric UI. It also has a full-featured command-line interface. @@ -102,7 +102,7 @@ anything other than what the respective SDKs provide. The default configuration is defined in config.def.h. It is not recommended to change this unless you know what you're doing. These can later be tweaked by using a config file. -A sample configuration file is installed to /etc/retroarch.cfg. This is the system-wide config file. +A sample configuration file is installed to /etc/retroarch.cfg. This is the system-wide config file. RetroArch will on startup create a config file in $XDG\_CONFIG\_HOME/retroarch/retroarch.cfg if doesn't exist. Users only need to configure a certain option if the desired value deviates from the value defined in config.def.h. @@ -111,6 +111,24 @@ To configure joypads, use the built-in menu or the retroarch-joyconfig ## Compiling and installing +Mac
+- Prerequisites: [XCode](https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CB4QFjAA&url=https%3A%2F%2Fitunes.apple.com%2Fus%2Fapp%2Fxcode%2Fid497799835%3Fmt%3D12&ei=ZmfeVNPtIILVoASBnoCYBw&usg=AFQjCNGrxKmVtXUdvUU3MhqZhP4MHT6Gtg&sig2=RIXKsWQ79YTQBt_lK5fdKA&bvm=bv.85970519,d.cGU), [Cg](https://developer.nvidia.com/cg-toolkit-download). +- You can open the project (**apple/RetroArch_OSX.xcodeproj**) in the Xcode IDE and build (**⌘-B**) and run (**⌘-R**) it there. Or you can use the command line... +- Debug: +```bash +# Build +xcodebuild -target RetroArch_OSX -configuration Debug -project apple/RetroArch_OSX.xcodeproj +# Run +open ./apple/build/Debug/RetroArch_OSX.app/ +``` +- Release: +```bash +# Build +xcodebuild -target RetroArch_OSX -configuration Release -project apple/RetroArch_OSX.xcodeproj +# Run +open ./apple/build/Release/RetroArch_OSX.app/ +``` + PC
Instructions for compiling on PC can be found in the [wiki](https://github.com/Themaister/RetroArch/wiki). @@ -178,4 +196,3 @@ You will need to have the libogc libraries and a working Devkit PPC toolchain in make -f Makefile.wii NOTE: A pre-existing libretro library needs to be present in the root directory in order to link RetroArch Wii. This file needs to be called `libretro_wii.a`. - From 0861fe2bdfd22d0e1f8383469c572c57cb9f8edf Mon Sep 17 00:00:00 2001 From: Geoffrey Plitt Date: Fri, 13 Feb 2015 13:36:45 -0800 Subject: [PATCH 2/3] adding circle.yml --- circle.yml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 circle.yml diff --git a/circle.yml b/circle.yml new file mode 100644 index 0000000000..d1a9f55d85 --- /dev/null +++ b/circle.yml @@ -0,0 +1,4 @@ +test: + override: + - xcodebuild -target RetroArch_OSX -configuration Debug -project apple/RetroArch_OSX.xcodeproj + - xcodebuild -target RetroArch_OSX -configuration Release -project apple/RetroArch_OSX.xcodeproj From 66d93a97dc4ce90fae823f25606c312e1e2cd244 Mon Sep 17 00:00:00 2001 From: Geoffrey Plitt Date: Fri, 13 Feb 2015 14:43:07 -0800 Subject: [PATCH 3/3] added linux build instructions, Vagrantfile to prove it, and updated .gitignore --- .gitignore | 3 +++ README.md | 11 +++++++++++ Vagrantfile | 20 ++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 Vagrantfile diff --git a/.gitignore b/.gitignore index c8a1c1c3ed..59164633e7 100644 --- a/.gitignore +++ b/.gitignore @@ -78,3 +78,6 @@ apple/RetroArch_iOS.xcodeproj/project.xcworkspace/* apple/iOS/build/ apple/iOS/modules/ + +obj-unix/ +.vagrant/ diff --git a/README.md b/README.md index f044800b76..f93ac9d75c 100644 --- a/README.md +++ b/README.md @@ -110,6 +110,17 @@ Users only need to configure a certain option if the desired value deviates from To configure joypads, use the built-in menu or the retroarch-joyconfig command-line tool. ## Compiling and installing +Linux
+- Prerequisites: +```bash +sudo apt-get install -y make git-core curl g++ pkg-config libglu1-mesa-dev freeglut3-dev mesa-common-dev libsdl1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev +``` +- ```bash +./configure +``` +- ```bash +make +``` Mac
- Prerequisites: [XCode](https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CB4QFjAA&url=https%3A%2F%2Fitunes.apple.com%2Fus%2Fapp%2Fxcode%2Fid497799835%3Fmt%3D12&ei=ZmfeVNPtIILVoASBnoCYBw&usg=AFQjCNGrxKmVtXUdvUU3MhqZhP4MHT6Gtg&sig2=RIXKsWQ79YTQBt_lK5fdKA&bvm=bv.85970519,d.cGU), [Cg](https://developer.nvidia.com/cg-toolkit-download). diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000000..ba1537375e --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,20 @@ +Vagrant.configure("2") do |config| + config.vm.box = "ubuntu/trusty64" + config.vm.provision :shell, :inline => $BOOTSTRAP_SCRIPT # see below +end + +$BOOTSTRAP_SCRIPT = <