« Previous -
Version 14/54
(diff) -
Next » -
Current version
kervala, 09/29/2010 07:15 pm
Building Ryzom Core including NeL with CMake under Windows¶
Downloading prerequisites¶
First, you need to download all these files:
- Microsoft Visual C++ 2008 Express
- Microsoft DirectX SDK
- CMake
- Tortoise Hg
- 7-Zip
- External
- Jom (optional)
Installing applications¶
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:
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
Get 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
Installing Jom (optional)¶
Put the downloaded jom094.zip inside C:\ryzom\ and in the command line, type:
"c:\Program Files\7-Zip\7z.exe" x jom094.zip -oexternal_stlport\bin del jom094.zip set PATH=%PATH%;C:\ryzom\external_stlport\bin
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++.

