« Previous - Version 25/80 (diff) - Next » - Current version
rti, 06/11/2010 03:18 pm


Building NeL, NeL NS and Ryzom Client with CMake on Mac OS X

NeL can be built on Mac OS X in two flavors. Either linking to X11 or Cocoa.
While the Cocoa support is really cutting edge and far from complete, the X11 support is way more mature.
For more information see #947 and MacClientState.

Installing Dependencies

The other packages can be easily installed using macports (http://www.macports.org/).
If you are using Mac OS X 10.6, you might want to install the packages with the +universal flag to use them for 32bit and 64bit builds, default is 64bit on 10.6, which is ok for NeL, NeLNS and Ryzom Core Client.

sudo port install boost cmake curl freetype jpeg libwww libxml2 lua zlib

Install mercurial for source code access.

sudo port install mercurial

Install p7zip to extract data files.

sudo port install p7zip

Get the sources

See Getting_Source.

Building

Now you have to choose between X11 and Cocoa support. For Cocoa support, add the following to each of the cmake calls below:

-DWITH_COCOA:BOOL=ON

If you add nothing, X11 support will be chosen by default.

If you did not install cpptest, add the following to the cmake calls as well.

-DWITH_TESTS:BOOL=OFF

NEL

cd code/nel
mkdir build-release
cd build-release
# remember adding options WITH_COCOA or WITH_TESTS options
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE:string=Release ..
make
sudo make install

NELNS

cd code/nelns
mkdir build-release
cd build-release
# remember adding options WITH_COCOA or WITH_TESTS options
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE:string=Release ..
make
sudo make install

RYZOM client

See MacClientState for more information about the current state of the Mac Client.

cd code/ryzom
mkdir build-release
cd build-release
# remember adding options WITH_COCOA or WITH_TESTS options
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE:string=Release ..
make ryzom_client

Download the windows client http://sourceforge.net/projects/ryzom/files/ryzom_client_open.7z/download.
Extract it and start the binary from the root of the windows client directory, you might want to create a link.

ln -s /path/to/code/ryzom/build-release/bin/client.app/Contents/MacOS/client /path/to/windows/client/dir/client_mac_r

RYZOM server/tools

currently not tested

Screenshot

Screen_shot_2010-06-01_at_1.56.51_AM.png (725 kB) rti, 06/01/2010 01:58 am

Packages.dmg (3.9 MB) Botanic, 05/05/2012 11:44 am