1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-27 15:11:33 +00:00

Updated README_Mac

This commit is contained in:
Nikolay Kasyanov 2011-03-24 14:25:38 +03:00
parent 07c6e9271e
commit bac457a232

View file

@ -74,20 +74,42 @@ Getting OpenMW Working
--disable-dependency-tracking --disable-dependency-tracking
$ make install $ make install
7. Generate the Makefile for OpenMW as follows and build OpenMW: 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
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_OSX_ARCHITECTURES=i386 \ $ cmake \
BOOST_INCLUDEDIR=$OMW_LIB_PREFIX/include/boost-1_45 \ -D CMAKE_OSX_ARCHITECTURES=i386 \
BOOST_LIBRARYDIR=$OMW_LIB_PREFIX/lib \ -D BOOST_INCLUDEDIR=$OMW_LIB_PREFIX/include/boost-1_45 \
cmake -D SNDFILE_INCLUDE_DIR=$OMW_LIB_PREFIX/include \ -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 SNDFILE_LIBRARY=$OMW_LIB_PREFIX/lib/libsndfile.a \
-D MPG123_INCLUDE_DIR=$OMW_LIB_PREFIX/include \
-D MPG123_LIBRARY=$OMW_LIB_PREFIX/lib/libmpg123.a \ -D MPG123_LIBRARY=$OMW_LIB_PREFIX/lib/libmpg123.a \
-G "Unix Makefiles" /path/to/openmw/source -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 $ 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.
8. 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
@ -100,15 +122,15 @@ Getting OpenMW Working
$ 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
9. 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
10. From your build directory run: 13. From your build directory run:
$ ./openmw $ ./openmw
Enjoy! Enjoy!
11. 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).
@ -116,6 +138,7 @@ Getting OpenMW Working
[boost]: http://www.boost.org [boost]: http://www.boost.org
[Ogre]: http://www.ogre3d.org [Ogre]: http://www.ogre3d.org
[Bullet]: http://bulletphysics.org
[OIS]: http://wgois.sf.net [OIS]: http://wgois.sf.net
[mpg123]: http://www.mpg123.de [mpg123]: http://www.mpg123.de
[libsndfile]: http://www.mega-nerd.com/libsndfile [libsndfile]: http://www.mega-nerd.com/libsndfile