From 5845e71dd83f44c807a8448abf60bb3a98fe02fd Mon Sep 17 00:00:00 2001 From: Nikolay Kasyanov Date: Thu, 24 Mar 2011 14:29:26 +0300 Subject: [PATCH] Fixed indentation in README_Mac --- README_Mac.md | 116 +++++++++++++++++++++++++------------------------- 1 file changed, 58 insertions(+), 58 deletions(-) diff --git a/README_Mac.md b/README_Mac.md index 20f9431c4..ee5faca98 100644 --- a/README_Mac.md +++ b/README_Mac.md @@ -34,19 +34,19 @@ Getting OpenMW Working $ export OMW_LIB_PREFIX=$HOME/path/libs/root 3. First of all, set for current terminal some env vars: - $ export CFLAGS="-arch i386" - $ export CXXFLAGS="-arch i386" - $ export LDFLAGS="-arch i386" + $ export CFLAGS="-arch i386" + $ export CXXFLAGS="-arch i386" + $ export LDFLAGS="-arch i386" All libs will build with correct architecture. If you close your terminal, you should set env vars again before pcoceeding to next steps! 4. Download [boost][] (tested with 1.45) and install it with the following command: - $ cd /path/to/boost/source - $ ./bootstrap.sh --prefix=$OMW_LIB_PREFIX - $ ./bjam --build-dir=build --layout=versioned \ - --toolset=darwin architecture=x86 address-model=32 \ - --link-shared,static --prefix=$OMW_LIB_PREFIX install + $ cd /path/to/boost/source + $ ./bootstrap.sh --prefix=$OMW_LIB_PREFIX + $ ./bjam --build-dir=build --layout=versioned \ + --toolset=darwin architecture=x86 address-model=32 \ + --link-shared,static --prefix=$OMW_LIB_PREFIX install 5. Download [Ogre][] SDK (tested with 1.7.2) and move `lib/Release/Ogre.framework` into @@ -59,79 +59,79 @@ Getting OpenMW Working `/Library/Frameworks`. 7. Download [mpg123][] and build it: - $ cd /path/to/mpg123/source - $ ./configure --prefix=$OMW_LIB_PREFIX --disable-debug \ - --disable-dependency-tracking \ - --with-optimization=4 \ - --with-audio=coreaudio \ - --with-default-audio=coreaudio \ - --with-cpu=sse_alone \ - $ make install + $ cd /path/to/mpg123/source + $ ./configure --prefix=$OMW_LIB_PREFIX --disable-debug \ + --disable-dependency-tracking \ + --with-optimization=4 \ + --with-audio=coreaudio \ + --with-default-audio=coreaudio \ + --with-cpu=sse_alone \ + $ make install 8. Download [libsndfile][] and build it: - $ cd /path/to/libsndfile/source - $ ./configure --prefix=$OMW_LIB_PREFIX \ - --disable-dependency-tracking - $ make install + $ cd /path/to/libsndfile/source + $ ./configure --prefix=$OMW_LIB_PREFIX \ + --disable-dependency-tracking + $ make install 9. Download [Bullet][] and build it: - $ cd /path/to/bullet/source - $ mkdir build - $ cd build - $ cmake -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=$OMW_LIB_PREFIX \ - -DBUILD_EXTRAS=OFF \ - -DBUILD_DEMOS=OFF \ - -DCMAKE_OSX_ARCHITECTURES=i386 \ - -DCMAKE_INSTALL_NAME_DIR=$OMW_LIB_RPEFIX/lib \ - -G"Unix Makefiles" ../ - $ make install + $ cd /path/to/bullet/source + $ mkdir build + $ cd build + $ cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=$OMW_LIB_PREFIX \ + -DBUILD_EXTRAS=OFF \ + -DBUILD_DEMOS=OFF \ + -DCMAKE_OSX_ARCHITECTURES=i386 \ + -DCMAKE_INSTALL_NAME_DIR=$OMW_LIB_RPEFIX/lib \ + -G"Unix Makefiles" ../ + $ make install 10. Generate the Makefile for OpenMW as follows and build OpenMW: - $ mkdir /path/to/openmw/build/dir - $ cd /path/to/open/build/dir - $ cmake \ - -D CMAKE_OSX_ARCHITECTURES=i386 \ - -D BOOST_INCLUDEDIR=$OMW_LIB_PREFIX/include/boost-1_45 \ - -D BOOST_LIBRARYDIR=$OMW_LIB_PREFIX/lib \ - -D SNDFILE_INCLUDE_DIR=$OMW_LIB_PREFIX/include \ - -D SNDFILE_LIBRARY=$OMW_LIB_PREFIX/lib/libsndfile.a \ - -D MPG123_LIBRARY=$OMW_LIB_PREFIX/lib/libmpg123.a \ - -D MPG123_INCLUDE_DIR=$OMW_LIB_PREFIX/include \ - -D BULLET_DYNAMICS_LIBRARY=$OMW_LIB_PREFIX/lib/libBulletDynamics.a \ - -D BULLET_COLLISION_LIBRARY=$OMW_LIB_PREFIX/lib/libBulletCollision.a \ - -D BULLET_MATH_LIBRARY=$OMW_LIB_PREFIX/lib/libLinearMath.a \ - -D BULLET_SOFTBODY_LIBRARY=$OMW_LIB_PREFIX/lib/libBulletSoftBody.a \ - -D BULLET_INCLUDE_DIR=$OMW_LIB_PREFIX/include/bullet/ \ - -G "Unix Makefiles" /path/to/openmw/source/dir - $ make + $ mkdir /path/to/openmw/build/dir + $ cd /path/to/open/build/dir + $ cmake \ + -D CMAKE_OSX_ARCHITECTURES=i386 \ + -D BOOST_INCLUDEDIR=$OMW_LIB_PREFIX/include/boost-1_45 \ + -D BOOST_LIBRARYDIR=$OMW_LIB_PREFIX/lib \ + -D SNDFILE_INCLUDE_DIR=$OMW_LIB_PREFIX/include \ + -D SNDFILE_LIBRARY=$OMW_LIB_PREFIX/lib/libsndfile.a \ + -D MPG123_LIBRARY=$OMW_LIB_PREFIX/lib/libmpg123.a \ + -D MPG123_INCLUDE_DIR=$OMW_LIB_PREFIX/include \ + -D BULLET_DYNAMICS_LIBRARY=$OMW_LIB_PREFIX/lib/libBulletDynamics.a \ + -D BULLET_COLLISION_LIBRARY=$OMW_LIB_PREFIX/lib/libBulletCollision.a \ + -D BULLET_MATH_LIBRARY=$OMW_LIB_PREFIX/lib/libLinearMath.a \ + -D BULLET_SOFTBODY_LIBRARY=$OMW_LIB_PREFIX/lib/libBulletSoftBody.a \ + -D BULLET_INCLUDE_DIR=$OMW_LIB_PREFIX/include/bullet/ \ + -G "Unix Makefiles" /path/to/openmw/source/dir + $ make You can use -G"Xcode" if you prefer Xcode, or -G"Eclipse CDT4 - Unix Makefiles" if you prefer Eclipse. You also can specify -D CMAKE_BUILD_TYPE=Debug for debug build. 11. In build directory create directory for game resources: - $ cd /path/to/openmw/build/dir - $ mkdir Contents - $ mkdir Contents/Resources - $ mkdir Contents/Plugins + $ cd /path/to/openmw/build/dir + $ mkdir Contents + $ mkdir Contents/Resources + $ mkdir Contents/Plugins Copy Ogre plugins from Ogre SDK to Plugins subdir: - $ cp /path/to/ogre/sdk/lib/*.dylib Contents/Plugins + $ cp /path/to/ogre/sdk/lib/*.dylib Contents/Plugins Create symlink to resources subdirectory: - $ ln -s resources Contents/Resources/resources + $ ln -s resources Contents/Resources/resources Create symlinks for *.cfg files: - $ ln -s plugins.cfg Contents/MacOS/plugins.cfg - $ ln -s openmw.cfg Contents/MacOS/openmw.cfg + $ ln -s plugins.cfg Contents/MacOS/plugins.cfg + $ ln -s openmw.cfg Contents/MacOS/openmw.cfg 12. Move your Morrowind `Data Files` directory into the `Contents/Resources` with the name `data` or create symlink: $ ln -s /path/to/morrowind/data/files Contents/Resources/data 13. From your build directory run: - $ ./openmw + $ ./openmw Enjoy! 14. Optionally you can create .app bundle: - $ make package + $ make package But for now you shold manually copy Contents directory from build directory to bundle (because there is no plugins and resources in generated .app).