« Previous -
Version 64/80
(diff) -
Next » -
Current version
Botanic, 04/09/2012 10:45 am
Building Ryzom Core Client including NeL with CMake on Mac OS X¶
For some information about the quite new native Mac OS X Support, see MacClientState.
Pre Requirement¶
Don't forget to add MacPorts in your PATH:
echo 'export PATH=${PATH}:/opt/local/bin' >> ~/.profile
Installing Dependencies¶
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 Ryzom Core Client and NeL.
- Launch the Terminal application and execute the following command in it.
sudo port install mercurial p7zip boost cmake curl freetype jpeg libwww libxml2 lua zlib libpng python_select libogg libvorbis python26 sudo python_select python26
- Install luabind, see InstallingLuabind.
Get the sources¶
See Getting_Source.
Build¶
The given list of CMake options is just an example. For a complete list see: CMakeOptions.
cd code/ mkdir build cd build cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DWITH_NEL_TOOLS=OFF -DWITH_NEL_SAMPLES=OFF -DWITH_NEL_TESTS=OFF -DWITH_RYZOM_SERVER=OFF -DWITH_RYZOM_TOOLS=OFF .. make sudo make install
The install process created /Applications/ryzom_client.app for you.
- Download the latest "Windows Ryzom Core client": http://dev.ryzom.com/projects/ryzom/wiki/WindowsBinaries
- Extract it and follow this instructions http://dev.ryzom.com/projects/ryzom/wiki/MacBinaries#Providing-the-client-with-the-data-directory
Static Build¶
This section shows how to create a static Ryzom Core client built on Mac OS X. The resulting binary only depends on system libs, therefore can be moved easily to another Mac OS X machine.
cd code/ mkdir build-static cd build-static cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DWITH_STATIC=ON -DWITH_STATIC_DRIVERS=ON -DWITH_NEL_TOOLS=OFF -DWITH_NEL_SAMPLES=OFF -DWITH_NEL_TESTS=OFF -DWITH_RYZOM_SERVER=OFF -DWITH_RYZOM_TOOLS=OFF -DWITH_STATIC_EXTERNAL=ON .. make
To check which libraries are needed by your binary run:
otool -L bin/ryzom_client.app/Contents/MacOS/ryzom_client
You should only see libraries which reside in /usr/lib or /System/Library/Frameworks.
Data¶
You will need to put the data for the client into
ryzom_client.app/Contents/Resources
Also you will need to put the atys.icns for the icon into that folder.

