mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 21:45:33 +00:00
Fixed indentation in README_Mac
This commit is contained in:
parent
db34640d75
commit
5845e71dd8
1 changed files with 58 additions and 58 deletions
116
README_Mac.md
116
README_Mac.md
|
@ -34,19 +34,19 @@ Getting OpenMW Working
|
||||||
$ export OMW_LIB_PREFIX=$HOME/path/libs/root
|
$ export OMW_LIB_PREFIX=$HOME/path/libs/root
|
||||||
|
|
||||||
3. First of all, set for current terminal some env vars:
|
3. First of all, set for current terminal some env vars:
|
||||||
$ export CFLAGS="-arch i386"
|
$ export CFLAGS="-arch i386"
|
||||||
$ export CXXFLAGS="-arch i386"
|
$ export CXXFLAGS="-arch i386"
|
||||||
$ export LDFLAGS="-arch i386"
|
$ export LDFLAGS="-arch i386"
|
||||||
All libs will build with correct architecture.
|
All libs will build with correct architecture.
|
||||||
If you close your terminal, you should set env vars again before pcoceeding to next steps!
|
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:
|
4. Download [boost][] (tested with 1.45) and install it with the following command:
|
||||||
|
|
||||||
$ cd /path/to/boost/source
|
$ cd /path/to/boost/source
|
||||||
$ ./bootstrap.sh --prefix=$OMW_LIB_PREFIX
|
$ ./bootstrap.sh --prefix=$OMW_LIB_PREFIX
|
||||||
$ ./bjam --build-dir=build --layout=versioned \
|
$ ./bjam --build-dir=build --layout=versioned \
|
||||||
--toolset=darwin architecture=x86 address-model=32 \
|
--toolset=darwin architecture=x86 address-model=32 \
|
||||||
--link-shared,static --prefix=$OMW_LIB_PREFIX install
|
--link-shared,static --prefix=$OMW_LIB_PREFIX install
|
||||||
|
|
||||||
|
|
||||||
5. Download [Ogre][] SDK (tested with 1.7.2) and move `lib/Release/Ogre.framework` into
|
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`.
|
`/Library/Frameworks`.
|
||||||
|
|
||||||
7. Download [mpg123][] and build it:
|
7. Download [mpg123][] and build it:
|
||||||
$ cd /path/to/mpg123/source
|
$ cd /path/to/mpg123/source
|
||||||
$ ./configure --prefix=$OMW_LIB_PREFIX --disable-debug \
|
$ ./configure --prefix=$OMW_LIB_PREFIX --disable-debug \
|
||||||
--disable-dependency-tracking \
|
--disable-dependency-tracking \
|
||||||
--with-optimization=4 \
|
--with-optimization=4 \
|
||||||
--with-audio=coreaudio \
|
--with-audio=coreaudio \
|
||||||
--with-default-audio=coreaudio \
|
--with-default-audio=coreaudio \
|
||||||
--with-cpu=sse_alone \
|
--with-cpu=sse_alone \
|
||||||
$ make install
|
$ make install
|
||||||
|
|
||||||
8. Download [libsndfile][] and build it:
|
8. Download [libsndfile][] and build it:
|
||||||
$ cd /path/to/libsndfile/source
|
$ cd /path/to/libsndfile/source
|
||||||
$ ./configure --prefix=$OMW_LIB_PREFIX \
|
$ ./configure --prefix=$OMW_LIB_PREFIX \
|
||||||
--disable-dependency-tracking
|
--disable-dependency-tracking
|
||||||
$ make install
|
$ make install
|
||||||
|
|
||||||
9. Download [Bullet][] and build it:
|
9. Download [Bullet][] and build it:
|
||||||
$ cd /path/to/bullet/source
|
$ cd /path/to/bullet/source
|
||||||
$ mkdir build
|
$ mkdir build
|
||||||
$ cd build
|
$ cd build
|
||||||
$ cmake -DCMAKE_BUILD_TYPE=Release \
|
$ cmake -DCMAKE_BUILD_TYPE=Release \
|
||||||
-DCMAKE_INSTALL_PREFIX=$OMW_LIB_PREFIX \
|
-DCMAKE_INSTALL_PREFIX=$OMW_LIB_PREFIX \
|
||||||
-DBUILD_EXTRAS=OFF \
|
-DBUILD_EXTRAS=OFF \
|
||||||
-DBUILD_DEMOS=OFF \
|
-DBUILD_DEMOS=OFF \
|
||||||
-DCMAKE_OSX_ARCHITECTURES=i386 \
|
-DCMAKE_OSX_ARCHITECTURES=i386 \
|
||||||
-DCMAKE_INSTALL_NAME_DIR=$OMW_LIB_RPEFIX/lib \
|
-DCMAKE_INSTALL_NAME_DIR=$OMW_LIB_RPEFIX/lib \
|
||||||
-G"Unix Makefiles" ../
|
-G"Unix Makefiles" ../
|
||||||
$ make install
|
$ make install
|
||||||
|
|
||||||
10. Generate the Makefile for OpenMW as follows and build OpenMW:
|
10. Generate the Makefile for OpenMW as follows and build OpenMW:
|
||||||
$ mkdir /path/to/openmw/build/dir
|
$ mkdir /path/to/openmw/build/dir
|
||||||
$ cd /path/to/open/build/dir
|
$ cd /path/to/open/build/dir
|
||||||
$ cmake \
|
$ cmake \
|
||||||
-D CMAKE_OSX_ARCHITECTURES=i386 \
|
-D CMAKE_OSX_ARCHITECTURES=i386 \
|
||||||
-D BOOST_INCLUDEDIR=$OMW_LIB_PREFIX/include/boost-1_45 \
|
-D BOOST_INCLUDEDIR=$OMW_LIB_PREFIX/include/boost-1_45 \
|
||||||
-D BOOST_LIBRARYDIR=$OMW_LIB_PREFIX/lib \
|
-D BOOST_LIBRARYDIR=$OMW_LIB_PREFIX/lib \
|
||||||
-D SNDFILE_INCLUDE_DIR=$OMW_LIB_PREFIX/include \
|
-D SNDFILE_INCLUDE_DIR=$OMW_LIB_PREFIX/include \
|
||||||
-D SNDFILE_LIBRARY=$OMW_LIB_PREFIX/lib/libsndfile.a \
|
-D SNDFILE_LIBRARY=$OMW_LIB_PREFIX/lib/libsndfile.a \
|
||||||
-D MPG123_LIBRARY=$OMW_LIB_PREFIX/lib/libmpg123.a \
|
-D MPG123_LIBRARY=$OMW_LIB_PREFIX/lib/libmpg123.a \
|
||||||
-D MPG123_INCLUDE_DIR=$OMW_LIB_PREFIX/include \
|
-D MPG123_INCLUDE_DIR=$OMW_LIB_PREFIX/include \
|
||||||
-D BULLET_DYNAMICS_LIBRARY=$OMW_LIB_PREFIX/lib/libBulletDynamics.a \
|
-D BULLET_DYNAMICS_LIBRARY=$OMW_LIB_PREFIX/lib/libBulletDynamics.a \
|
||||||
-D BULLET_COLLISION_LIBRARY=$OMW_LIB_PREFIX/lib/libBulletCollision.a \
|
-D BULLET_COLLISION_LIBRARY=$OMW_LIB_PREFIX/lib/libBulletCollision.a \
|
||||||
-D BULLET_MATH_LIBRARY=$OMW_LIB_PREFIX/lib/libLinearMath.a \
|
-D BULLET_MATH_LIBRARY=$OMW_LIB_PREFIX/lib/libLinearMath.a \
|
||||||
-D BULLET_SOFTBODY_LIBRARY=$OMW_LIB_PREFIX/lib/libBulletSoftBody.a \
|
-D BULLET_SOFTBODY_LIBRARY=$OMW_LIB_PREFIX/lib/libBulletSoftBody.a \
|
||||||
-D BULLET_INCLUDE_DIR=$OMW_LIB_PREFIX/include/bullet/ \
|
-D BULLET_INCLUDE_DIR=$OMW_LIB_PREFIX/include/bullet/ \
|
||||||
-G "Unix Makefiles" /path/to/openmw/source/dir
|
-G "Unix Makefiles" /path/to/openmw/source/dir
|
||||||
$ make
|
$ make
|
||||||
You can use -G"Xcode" if you prefer Xcode, or -G"Eclipse CDT4 - Unix Makefiles"
|
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
|
if you prefer Eclipse. You also can specify -D CMAKE_BUILD_TYPE=Debug for debug
|
||||||
build.
|
build.
|
||||||
|
|
||||||
11. In build directory create directory for game resources:
|
11. In build directory create directory for game resources:
|
||||||
$ cd /path/to/openmw/build/dir
|
$ cd /path/to/openmw/build/dir
|
||||||
$ mkdir Contents
|
$ mkdir Contents
|
||||||
$ mkdir Contents/Resources
|
$ mkdir Contents/Resources
|
||||||
$ mkdir Contents/Plugins
|
$ mkdir Contents/Plugins
|
||||||
Copy Ogre plugins from Ogre SDK to Plugins subdir:
|
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:
|
Create symlink to resources subdirectory:
|
||||||
$ ln -s resources Contents/Resources/resources
|
$ ln -s resources Contents/Resources/resources
|
||||||
Create symlinks for *.cfg files:
|
Create symlinks for *.cfg files:
|
||||||
$ ln -s plugins.cfg Contents/MacOS/plugins.cfg
|
$ ln -s plugins.cfg Contents/MacOS/plugins.cfg
|
||||||
$ ln -s openmw.cfg Contents/MacOS/openmw.cfg
|
$ ln -s openmw.cfg Contents/MacOS/openmw.cfg
|
||||||
|
|
||||||
12. Move your Morrowind `Data Files` directory into the `Contents/Resources`
|
12. Move your Morrowind `Data Files` directory into the `Contents/Resources`
|
||||||
with the name `data` or create symlink:
|
with the name `data` or create symlink:
|
||||||
$ ln -s /path/to/morrowind/data/files Contents/Resources/data
|
$ ln -s /path/to/morrowind/data/files Contents/Resources/data
|
||||||
|
|
||||||
13. From your build directory run:
|
13. From your build directory run:
|
||||||
$ ./openmw
|
$ ./openmw
|
||||||
Enjoy!
|
Enjoy!
|
||||||
|
|
||||||
14. Optionally you can create .app bundle:
|
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
|
But for now you shold manually copy Contents directory from build directory to bundle
|
||||||
(because there is no plugins and resources in generated .app).
|
(because there is no plugins and resources in generated .app).
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue