Skip to content

Building on Archlinux

fszontagh edited this page Nov 27, 2024 · 2 revisions

Dependencies Installation

Install the required dependencies using the following command:

pacman -S base-devel cmake gcc git ninja pkgconfig exiv2 gtk3 libsecret webkit2gtk libnotify sdl pangomm

Cloning the Repository

Clone the latest version of the repository (either the master branch or the latest tagged release):

git clone https://github.com/fszontagh/sd.cpp.gui.wx.git

Setting Up the Build Directory

Navigate to the cloned repository and create a build directory:

cd sd.cpp.gui.wx
mkdir build
cd build

Configuring the Build

Configure the project using cmake with the Ninja build system. Enable the desired backends by setting the appropriate flags:

cmake .. -DCMAKE_BUILD_TYPE=Release -DSD_AVX=ON -DSD_AVX2=ON -DSD_AVX512=ON -DSD_CUBLAS=ON -G Ninja

Building the Project

Build the project with the following command:

cmake --build . --config Release

Running the Application

After a successful build, you can test the application by running the stablediffusiongui binary.

Building AppImage

For running AppImage on ArchLinux the fuse package must be installed:

pacman -S fuse

To build the AppImage, cmake need to download the AppImage script whitch is requies the wget package to be installed.

Then to generate the image, please run cmake build command with target 'AppImage':

cmake --build . --target AppImage --config Release

Clone this wiki locally