forked from hampusborgos/rme
-
Notifications
You must be signed in to change notification settings - Fork 52
Compiling on Ubuntu 22.04
Majesty edited this page May 23, 2024
·
6 revisions
- Ubuntu 22.04
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 install git cmake build-essential autoconf libtool ca-certificates curl zip unzip tar pkg-config ninja-build ccache bison linux-headers-$(uname -r) libxi-dev libgl1-mesa-dev libegl1-mesa-dev libglu1-mesa-dev mesa-common-dev libxrandr-dev libxxf86vm-dev libx11-dev libxft-dev libxext-dev libwayland-dev libxkbcommon-dev libibus-1.0-dev libasound2-dev libxmu-dev libdbus-1-dev libxtst-dev linux-libc-dev libarchive-dev libwxgtk3.0-gtk3-dev python3-distutils libxrender-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 ..
git clone --depth 1 https://github.com/opentibiabr/remeres-map-editor.git
cd remeres-map-editor
git checkout main
.
├── remeres-map-editor
└── vcpkg
mkdir build && cd build
cmake -DCMAKE_TOOLCHAIN_FILE=~/vcpkg/scripts/buildsystems/vcpkg.cmake .. --preset linux-release
cmake --build linux-release
-- Running vcpkg install
This step will take a long time on the first run, as it needs to download and install all the dependencies, so be patient!