This guide covers the process of compiling the NeL engine using GCC and Ninja on Ubuntu 20.04 LTS or later. The steps below will help you set up the environment, clone the repository, and build the project.
Make sure to have the following tools and libraries installed on your system. Open a command line terminal, and install the required packages.
sudo apt update
sudo apt install software-properties-common
wget -q https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt update
sudo apt install build-essential \
cmake ninja-build ccache \
autoconf automake bison \
libpng-dev libjpeg-dev libgif-dev \
libfreetype6-dev freeglut3-dev \
liblua5.2-dev libluabind-dev libcpptest-dev \
libogg-dev libvorbis-dev libopenal-dev \
libavcodec-dev libavformat-dev libavdevice-dev \
libswscale-dev libpostproc-dev \
libmysqlclient-dev libxml2-dev \
libcurl4-openssl-dev libssl-dev \
libsquish-dev liblzma-dev libgsf-1-dev libassimp-dev \
qtbase5-dev qttools5-dev qttools5-dev-tools \
libasound2-dev libgl1-mesa-dev libjack-dev libpulse-dev \
libxrandr-dev libxrender-dev libxxf86vm-dev \
libmsquic
wget https://raw.githubusercontent.com/microsoft/msquic/main/src/inc/msquic.h
wget https://raw.githubusercontent.com/microsoft/msquic/main/src/inc/msquic_posix.h
wget https://raw.githubusercontent.com/microsoft/msquic/main/src/inc/quic_sal_stub.h
sudo mv msquic.h /usr/include/msquic.h
sudo mv msquic_posix.h /usr/include/msquic_posix.h
sudo mv quic_sal_stub.h /usr/include/quic_sal_stub.h
Browse to a directory where you want to build your project. Clone the Ryzom Core repository from GitHub into a ryzomcore
subdirectory.
git clone https://github.com/ryzom/ryzomcore.git
Create a build directory under the ryzomcore repository folder and navigate to it.
cd ryzomcore
mkdir build
cd build
Run CMake with the project folder, tools, samples, Assimp, and static drivers set to ON
, and MFC, Qt, Ryzom, NeLNS, and Snowballs set to OFF
. Use Ninja as the generator.
cmake -G "Ninja" -DWITH_NEL_TOOLS=ON -DWITH_NEL_SAMPLES=ON -DWITH_ASSIMP=ON -DWITH_NEL_TESTS=OFF -DWITH_MFC=OFF -DWITH_QT=OFF -DWITH_RYZOM=OFF -DWITH_NELNS=OFF -DWITH_SNOWBALLS=OFF -DWITH_EXTERNAL=OFF -DWITH_STATIC_LIBXML2=OFF -DWITH_STATIC_CURL=OFF -DWITH_STATIC_DRIVERS=ON -DWITH_LUA51=OFF -DWITH_LUA52=ON ..
To build the project, simply run the Ninja command from the build folder.
ninja