Building NeL 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, the X11 support is way more mature. But, the Cocoa implementation already provides more features on Mac OS X (like fullscreen support).
For more information see #947 and MacClientState.
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 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
- 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)
Get the sources¶
Now you have to choose between X11 and Cocoa support. For Cocoa support, add the following to the NeL and Ryzom 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 NeL call as well.
cd code/nel mkdir build-release cd build-release # remember adding WITH_COCOA or WITH_TESTS options if you need them 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 WITH_COCOA if you need it 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/ryzom_client.app/Contents/MacOS/ryzom_client /path/to/windows/client/dir/client_mac_r
currently not tested