« Previous -
Version 20/54
(diff) -
Next » -
Current version
molator, 10/27/2010 02:20 pm
Building Ryzom Core including NeL with CMake under Windows¶
- Building Ryzom Core including NeL with CMake under Windows
- Downloading prerequisites
- Installing prerequisites
- Compiling
Downloading prerequisites¶
First, you need to download all these files:
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:
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.
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.
The solution C:\ryzom\code\build\RyzomCore.sln has been generated, you can double-click to open it in Visual C++.

