Skip to content

Instantly share code, notes, and snippets.

@nathanlesage
Last active May 16, 2019 15:49
Show Gist options
  • Save nathanlesage/2039b05689fbaf6c764b0afc38d829b1 to your computer and use it in GitHub Desktop.
Save nathanlesage/2039b05689fbaf6c764b0afc38d829b1 to your computer and use it in GitHub Desktop.
ScanTailor Compiler Run macOS 10.14.4 Mojave

Setting up the current ScanTailor on macOS (tested on Mojave 10.14.4)

Reference: https://forum.diybookscanner.org/viewtopic.php?t=3407#p20608

  1. Download the experimental branch from here: https://github.com/Tulon/scantailor/tree/experimental (Or, possibly, in the future: Some other fork of ScanTailor)
  2. In the file scantailor-experimental/filters/page_split/OptionsWidget.cpp add after all the #include-statements the following line: #include <QButtonGroup>
  3. Via homebrew run: brew install cmake eigen qt5 jpeg libtiff boost
  4. CD into the scantailor-directory (root level)
  5. Run cmake . -DCMAKE_PREFIX_PATH=/usr/local/Cellar/qt/5.8.0_2 -- attention: Replace the Qt-version with the one that brew installed!
  6. if it was successful (read the last few lines of output), run: make
  7. The make-run will take a lot of time.
  8. Then run sudo make install
  9. Now you can run Scantailor by firing up a terminal and typing scantailor. It's not the best, but it works fantastic.

Install Files

The setup script will install the following paths (in case you'd like to uninstall it later):

-- Installing: /usr/local/bin/scantailor
-- Installing: /usr/local/bin/scantailor-cli
-- Installing: /usr/local/share/scantailor/translations/scantailor_bg.qm
-- Installing: /usr/local/share/scantailor/translations/scantailor_cs.qm
-- Installing: /usr/local/share/scantailor/translations/scantailor_de.qm
-- Installing: /usr/local/share/scantailor/translations/scantailor_es.qm
-- Installing: /usr/local/share/scantailor/translations/scantailor_fr.qm
-- Installing: /usr/local/share/scantailor/translations/scantailor_hr.qm
-- Installing: /usr/local/share/scantailor/translations/scantailor_it.qm
-- Installing: /usr/local/share/scantailor/translations/scantailor_ja.qm
-- Installing: /usr/local/share/scantailor/translations/scantailor_pl.qm
-- Installing: /usr/local/share/scantailor/translations/scantailor_pt_BR.qm
-- Installing: /usr/local/share/scantailor/translations/scantailor_ro.qm
-- Installing: /usr/local/share/scantailor/translations/scantailor_ru.qm
-- Installing: /usr/local/share/scantailor/translations/scantailor_sk.qm
-- Installing: /usr/local/share/scantailor/translations/scantailor_uk.qm
-- Installing: /usr/local/share/scantailor/translations/scantailor_zh_CN.qm
-- Installing: /usr/local/share/scantailor/translations/scantailor_zh_TW.qm
-- Installing: /usr/local/lib/scantailor/libdewarping.dylib
-- Installing: /usr/local/lib/scantailor/libfoundation.dylib
-- Installing: /usr/local/lib/scantailor/libmath.dylib
-- Installing: /usr/local/lib/scantailor/libimageproc.dylib
-- Installing: /usr/local/lib/scantailor/libacceleration.dylib
-- Installing: /usr/local/lib/scantailor/libopencl_plugin.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment