Skip to content

Compiling on Ubuntu 22.04

Majesty edited this page Apr 3, 2023 · 6 revisions

Supported OS

  • Ubuntu 22.04

1. Install the required software

The following command will install Git, CMake, a compiler and the libraries used by Remere's Map Editor.

Git will be used to download the source code, and CMake will be used to generate the build files.

sudo apt update
sudo apt dist-upgrade
sudo apt-get install libasio-dev nlohmann-json3-dev libfmt-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev mesa-common-dev libxrandr-dev libxxf86vm-dev libglib2.0-dev at-spi2-core libwxgtk3.0-gtk3-dev libarchive-dev freeglut3-dev libxmu-dev libdbus-1-dev libxtst-dev

Update cmake

sudo apt remove --purge cmake
hash -r
sudo apt install snapd
sudo snap install cmake --classic
cmake --version

Install vcpkg

cd ~
git clone https://github.com/microsoft/vcpkg
cd vcpkg
./bootstrap-vcpkg.sh
cd ..

2. Download the source code

git clone --depth 1 https://github.com/opentibiabr/remeres-map-editor.git
cd canary

3. Checkout nightly branch (optional)

git checkout main

4. Folder structure

.
├── remeres-map-editor
└── vcpkg

5. Configure and build

mkdir build && cd build
cmake ..
cmake --build . --config Release

Clone this wiki locally