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.
- At first, you need Apple's Developer Tools.
- For X11 support, you need XQuartz from http://xquartz.macosforge.org/trac/wiki (TODO: does that include headers? X11SDK.pkg still needed?).
- Install luabind, see InstallingLuabind.
- Install cpptest, you get it from http://sourceforge.net/projects/cpptest/. (You can skip this, but provide cmake with the WITH_TESTS=false switch later)
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¶
Now you have to choose between X11 and Cocoa support. For Cocoa support, add the following to each of the cmake calls below:
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.
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
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
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
currently not tested