Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building scantailor-advanced on Fedora 39 #16

Closed
rramphal opened this issue Jan 19, 2024 · 0 comments
Closed

Building scantailor-advanced on Fedora 39 #16

rramphal opened this issue Jan 19, 2024 · 0 comments

Comments

@rramphal
Copy link

rramphal commented Jan 19, 2024

Hey everyone, I just thought I'd post this as a reference for anyone trying to build scantailor-advanced on Fedora. It differs from the docs in the README, so it might save you some time.

# install dependencies
sudo dnf install -y \
    zlib gcc gcc-c++ cmake libjpeg-turbo-devel libpng-devel \
    libtiff libtiff-devel boost-test boost-devel \
    qt5-qtbase-devel qt5-qtsvg-devel qt5-qttools qt5-qttools-devel \
    libglvnd-devel libxcb-devel

# installable version
mkdir build; cd build
cmake -G "Unix Makefiles" ..
cmake --build .
make -j $(($(nproc)-1))
sudo make install # to install
sudo make uninstall # to uninstall

# variant: portable version
mkdir build; cd build
cmake -D PORTABLE_VERSION=ON -G "Unix Makefiles" ..
cmake --build .
make -j $(($(nproc)-1))
./scantailor # to run

NOTE: The README says you should run make -j $(nproc), but @sixtyfive mentioned that on most machines, it is better to keep one thread for I/O by running make -j $(($(nproc)-1)) instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant