Step 1: Install XCode
Update to 4.5 version
Step 2: Register as Appl Develop
and install the Command Line Tools for Xcode (at Downloads)
Also
Xcode 4.5 changed the layout of developer tools on disk which can cause some serious problems for CMake. The issue has been fixed but is not yet publicly released. CMake 2.8.9 will include Xcode 4.5 support. At the time of writing, a release candidate is available that includes this support.
Assuming that Xcode is installed in /Applications,
Code: Select all
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
Link: http://www.macports.org/install.php use the pkg package
edit your .bash_profile. Add the following lines:
if there is no such file, then create one: touch ~/.bash_profile
edit: open -a TextEdit ~/.bash_profile
Code: Select all
export CPPFLAGS="-I/opt/local/include"
export LDFLAGS="-L/opt/local/lib"
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
Link: http://www.cmake.org/files/v2.8/cmake-2 ... versal.dmg (if you have 64bit which is most likely)
Step 6: Apply in order to compile OIS
Xcode 4 and later users need to first accept the Xcode EULA by either launching Xcode or running
Code: Select all
sudo xcodebuild -license
Code: Select all
sudo port install libpng +universal jpeg +universal libxml2 +universal pkgconfig xmlto autoconf automake libtool freetype +universal freeimage +universal libzzip +universal boost +universal ois +universal libsndfile +universal bullet +universal
You need the first line even if you already have libpng/jpeg/xml2 installed because they will be re-installed within the package system and we need to ensure universal build. You may need --enforce-variants if you have already installed these packages. The build dependencies of libzzip, they do not need to be universal, but use +no_x11 +quartz to avoid unnecessary additional packages
Step 8: Install mpg123 using macports
mpg123: update to 1.14.4; disable SSE optimizations on i386 because they fail to build
Code: Select all
sudo ports install mpg123 +universal
Link: http://developer.nvidia.com/cg-toolkit-download
it automatically add the framework to system's /Library/Frameworks
Step 10: Install Qt4 and qt4-creator
Code: Select all
sudo port install qt4-mac +universal qt4-x11+universal qt4-creator-mac +universal
Download: http://www.ogre3d.org/download/source
Code: Select all
tar xjf ogre_src_v1-8-0.tar.bz2
cd ogre_src_v1-8-0
mkdir build
cd build
cmake -GXcode ..
Go into the build folder and move lib/Release/Ogre.framework into /Library/Frameworks
Step 12: Get the CD files ready
Code: Select all
cd /openmw_path
mkdir data
Step 13: configure for XCode* Video (found on the disc)
* Music (found where you unshielded the cabs)
* Sound (found where you unshielded the cabs)
* Splash (found where you unshielded the cabs)
* Morrowind.esm (found in Data_Files after unshielding)
* Morrowind.bsa (found in Data_Files after unshielding)
Code: Select all
cd /openmw_path/
mkdir Build
cd Build
cmake -GXcode ..
Step 14: Use XCode 4.5 for Build and Compile
Open the *.xcodeproj with XCode. Wait to index the fails, apply the warnings into recommended settings (it will save a new snapshot). Build and Compile within XCode.
Step 15: Run
rom your build directory run:
$ OpenMW.app/Contents/MacOS/openmw
or:
$ open OpenMW.app