Updated Mac build instructions for OIS

actorid
Ardekantur 15 years ago
parent b1e96386c6
commit 3c5923686d

@ -7,12 +7,23 @@ OpenMW
From the [official website][]:
> OpenMW is an attempt to reimplement the popular role playing game Morrowind. It aims to be a fully playable, open source implementation of the game. You must own Morrowind to use OpenMW.
> OpenMW is an attempt to reimplement the popular role playing game
Morrowind. It aims to be a fully playable, open source
implementation of the game. You must own Morrowind to use OpenMW.
About This Project
------------------
This specific repository is a branch of OpenMW intended to keep pace with development of the project in order to provide a Mac build for interested parties to contribute. This is not an official, sanctioned branch of the OpenMW project. I will only be able to answer specific questions about getting this project running on Mac OS X, **no other platform**. I will not even be able to guarantee my changes maintain backwards compatibility against builds in other operating systems. You have been warned.
This specific repository is a branch of OpenMW intended to keep pace
with development of the project in order to provide a Mac build for
interested parties to contribute. This is not an official, sanctioned
branch of the OpenMW project. I will only be able to answer specific
questions about getting this project running on Mac OS X, **no other
platform**. I will not even be able to guarantee my changes maintain
backwards compatibility against builds in other operating systems. You
have been warned.
Getting OpenMW Working
----------------------
@ -21,21 +32,40 @@ Getting OpenMW Working
2. Install `bjam` through MacPorts.
3. Download [boost][] 1.43 and install it with the following command:
$ mkdir build && sudo bjam --build-dir=build --layout=versioned --toolset=darwin architecture=i386 address-model=32 --link=shared,static install
$ mkdir build && sudo bjam --build-dir=build \
--layout=versioned --toolset=darwin architecture=i386 \
address-model=32 --link=shared,static install
4. Download [Ogre][] 1.7.1 and build and Xcode project with CMake:
$ mdkir build && cd build && BOOST_INCLUDEDIR=/usr/local/include/boost-1_43 BOOST_LIBRARYDIR=/usr/local/lib cmake -G Xcode ..
$ mdkir build && cd build && \
BOOST_INCLUDEDIR=/usr/local/include/boost-1_43 \
BOOST_LIBRARYDIR=/usr/local/lib cmake -G Xcode ..
5. Once the build completes, move `lib/Release/Ogre.framework` into
`/Library/Frameworks`.
6. Download [OIS][] and use the XCode project provided in
`ois/Mac/XCode-2.2`. Be sure to set your build architecture to
`i386` and your SDK platform to either 10.5 or 10.6. Once it
builds, move `ois/Mac/XCode-2.2/build/Debug/OIS.framework` to
`/Library/Frameworks`.
5. Once the build completes, move `lib/Release/Ogre.framework` into `/Library/Frameworks`.
7. Generate the Makefile for OpenMW as follows:
6. Generate the Makefile for OpenMW as follows:
$ mkdir build && cd build && \
BOOST_INCLUDEDIR=/usr/local/include/boost-1_43 \
BOOST_LIBRARYDIR=/usr/local/lib CMAKE_OSX_ARCHITECTURES=i386 \
cmake ..
$ mkdir build && cd build && BOOST_INCLUDEDIR=/usr/local/include/boost-1_43 BOOST_LIBRARYDIR=/usr/local/lib CMAKE_OSX_ARCHITECTURES=i386 cmake ..
8. Move your Morrowind `Data Files` directory into the root `openmw`
directory with the name `data`. Symlink it into the build directory.
7. Move your Morrowind `Data Files` directory into `build`, renamed as `data`.
$ cd build && ln -s ../data data
[boost]: http://www.boost.org
[Ogre]: http://www.ogre3d.org
[OIS]: http://wgois.sf.net
[official website]: http://openmw.com
[Will Thimbleby's Ogre Framework]: http://www.thimbleby.net/ogre/

Loading…
Cancel
Save