Skip to content

Instantly share code, notes, and snippets.

@life00
Created September 16, 2024 14:24
Show Gist options
  • Save life00/b06dbf4e4459c15881dd94eb32135e20 to your computer and use it in GitHub Desktop.
Save life00/b06dbf4e4459c15881dd94eb32135e20 to your computer and use it in GitHub Desktop.
Compile sioyek for fedora arm64

Compiling sioyek for fedora arm64

To build sioyek it is necessary to apply a patch to it sioyek.diff and compile it. Follow this code to do it:

# installing dependencies
dnf install qt5-qtbase-devel qt5-qtbase-static qt5-qt3d-devel harfbuzz-devel libXi-devel freeglut-devel libXrandr-devel
cat sioyek.diff
# clone and apply the patch
git clone --recursive "https://github.com/ahrm/sioyek"
echo "now apply the patch; its for version 2.0.0"
cd sioyek
./build_linux.sh

Now the installation:

# note that I am not sure if /usr/local installation works
# it might be necessary to install it globally
cd build/
mkdir -p /usr/local/etc/sioyek/
cp prefs.config /usr/local/etc/sioyek/
cp keys.config /usr/local/etc/sioyek/
mkdir -p /usr/local/share/sioyek/
cp -r shaders/ /usr/local/share/sioyek/
cp tutorial.pdf /usr/local/share/sioyek/
cp sioyek /usr/local/bin/
diff --git a/pdf_viewer/main.cpp b/pdf_viewer/main.cpp
index 61c4f45..75c908f 100644
--- a/pdf_viewer/main.cpp
+++ b/pdf_viewer/main.cpp
@@ -82,7 +82,7 @@
#define MAX_PATH PATH_MAX
#endif
-//#define LINUX_STANDARD_PATHS
+#define LINUX_STANDARD_PATHS
std::wstring APPLICATION_NAME = L"sioyek";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment