« Previous - Version 20/54 (diff) - Next » - Current version
molator, 10/27/2010 02:20 pm


Building Ryzom Core including NeL with CMake under Windows

Downloading prerequisites

First, you need to download all these files:

  1. Microsoft Visual C++ 2008 Express
  2. Microsoft DirectX SDK
  3. Tortoise Hg
  4. CMake
  5. 7-Zip
  6. External

Installing prerequisites

Install Microsoft Visual C++ 2008 Express, Microsoft DirectX SDK, CMake, Tortoise Hg and 7-Zip in your desired locations. If you don't use the default path, you'll have to put your specific path in the following commands.

I you plan to use CMake from command line check this option:
CMake add path

From command line

Open a Visual Studio command line

In Start Menu -> All Programs -> Microsoft Visual C++ 2008 Express Edition -> Visual Studio Tools, launch Visual Studio 2008 Command Prompt

Getting the sources

In the command line, type:

c:
cd \
md ryzom
cd ryzom
hg clone http://ryzom.hg.sourceforge.net:8000/hgroot/ryzom/ryzom .

Installing external

Put the downloaded external_stlport.7z inside C:\ryzom\ and in the command line, type:

"c:\Program Files\7-Zip\7z.exe" x external_stlport.7z -oexternal_stlport
del external_stlport.7z

Note: The externals should be in C:\ryzom\code\3rdparty

Installing Jom (optional)

Download Jom from Nokia FTP

Put the downloaded jom100.zip inside C:\ryzom\ and in the command line, type:

"c:\Program Files\7-Zip\7z.exe" x jom100.zip -oexternal_stlport\bin
del jom100.zip
set PATH=%PATH%;C:\ryzom\external_stlport\bin

From GUI

Uncompress downloaded external_stlport.7z inside C:\ryzom\.

After that, you can delete external_stlport.7z.

Compiling

With command line using nmake (installed by Visual C++)

In the command line, type:

cd code
md build
cd build
cmake ..
nmake

With command line using jom (not installed by Visual C++)

In the command line, type:

cd code
md build
cd build
cmake .. -G "NMake Makefiles JOM" 
jom

With GUI

You should launch CMake (cmake-gui) which is located in your Start menu in CMake sub-menu.

Fill in required fields:

  • Where is the source code: C:/ryzom/code
  • Where to build the binaries: C:/ryzom/code/build

Now click on Configure, it will ask you to choose a generator, select Visual Studio 9 2008 and click on Finish.
CMake generator

Other generators could work too such as: Visual Studio 9 2008 Win64 or other versions of Visual Studio.

If there is any error (text in red in the text area), check it in the text area at the bottom and try to fix it, if there is no error, click again on Configure, the Generate button should be enabled now, finally click on Generate.

If you want to enable or disable options, you will need to click again on Configure and Generate.
CMake GUI options

The solution C:\ryzom\code\build\RyzomCore.sln has been generated, you can double-click to open it in Visual C++.

cmake_path.png - CMake add path (27.8 kB) kervala, 09/28/2010 12:32 pm

cmake_gui_options.png - CMake GUI options (35.4 kB) kervala, 09/28/2010 01:15 pm

cmake_generator.png - CMake generator (10.2 kB) kervala, 09/28/2010 01:18 pm

dotnetfx_cleanup_tool.zip - This tool removes all old instalations of the .net framework if you have problems installing the .net framework for vc++2008. (256.1 kB) JarHead, 03/13/2011 06:51 am