From: Shamus Hammons Date: Wed, 3 Jul 2013 03:18:19 +0000 (-0500) Subject: Added build instructions for Mac OSX, application icon for same. X-Git-Tag: 2.1.1~22 X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=virtualjaguar;a=commitdiff_plain;h=156b1a733f545e7dfcaa48a01a1be9d5c009a935 Added build instructions for Mac OSX, application icon for same. --- diff --git a/docs/INSTALL b/docs/INSTALL index 751e06d..23a2ca2 100644 --- a/docs/INSTALL +++ b/docs/INSTALL @@ -35,3 +35,39 @@ That's it! You can now start the emulator with ./virtualjaguar. See the built in help (Help|Contents) for more info. For even more info, go to http://icculus.org/virtualjaguar. + + +NOTES FOR COMPILING UNDER MAC OSX: +---------------------------------- + +All is not well in Appleland, but we can help. To compile the bare minimum app +under OSX requires libsdl and Qt; however, these must be made statically and +installed "the unix way". What that means is you have to download and unpack +the source directories, then make and install them from the terminal. For +libsdl, this is as simple as doing: + +./configure +make +sudo make install + +libsdl makes both static *and* shared libs and installs both. Making Qt takes a +bit longer (timewise), but requires not much user intervention to get things +going. Basically, you do: + +./configure -static -no-webkit -no-qt3support -no-framework -no-exceptions -nomake examples -nomake demos +make +sudo make install + +Be forewarned that it will use around 20 GB of disk space to build, and another +20 GB for the install! Once libsdl and Qt have been made and installed, you can +now go into the folder where the Virtual Jaguar source is and do: + +make + +Assuming all went well, you should now have a nice shiny new virtualjaguar.app +in that folder. Depending on how old your copy of OSX is, you might have to +copy a qt_menu.nib into the app bundle like so: + +cp -r ~/location-where-you-built-qt/src/gui/mac/qt_menu.nib virtualjaguar.app/Contents/Resources/ + +Have fun! diff --git a/res/vj-icon.icns b/res/vj-icon.icns new file mode 100644 index 0000000..2ddcd6a Binary files /dev/null and b/res/vj-icon.icns differ diff --git a/virtualjaguar.pro b/virtualjaguar.pro index 7eb8778..67702d1 100644 --- a/virtualjaguar.pro +++ b/virtualjaguar.pro @@ -34,8 +34,9 @@ else:unix { DEFINES += __GCCUNIX__ } macx { LIBS += `sdl-config --static-libs` } else { LIBS += `$(CROSS)sdl-config --libs` } -# Icon on Win32 +# Icon on Win32, Mac win32 { LIBS += res/vj-ico.o } +macx { ICON = vj-icon.icns } # C/C++ flags... # NOTE: May have to put -Wall back in, but only on non-release cycles. It can