It is easy to build Lapce from source on a GNU/Linux distribution. Cargo handles the build process, all you need to do, is ensure the correct dependencies are installed.
-
Install the Rust compiler and Cargo using
rustup.rs. If you already have the toolchain, ensure you are using version 1.64 or higher. -
Install dependencies for your operating system:
sudo apt install clang libxkbcommon-x11-dev pkg-config libvulkan-dev libwayland-dev xorg-dev libxcb-shape0-dev libxcb-xfixes0-devsudo dnf install clang libxkbcommon-x11-devel libxcb-devel vulkan-loader-devel wayland-devel perl-File-Compare perl-FindBinsudo xbps-install -S base-devel clang libxkbcommon-devel vulkan-loader wayland-devel- Clone this repository (this command will clone to your home directory):
git clone https://github.com/lapce/lapce.git ~/lapcecdinto the repository, and run the build command with the release flag
cd ~/lapcecargo build --releaseIf you use a different distribution, and are having trouble finding appropriate dependencies, let us know in an issue!
Once Lapce is compiled, the executable will be available in target/release/lapce.