Daniel Reetz, the founder of the DIY Book Scanner community, has recently started making videos of prototyping and shop tips. If you are tinkering with a book scanner (or any other project) in your home shop, these tips will come in handy. https://www.youtube.com/channel/UCn0gq8 ... g_8K1nfInQ

Scan Tailor Advanced

Scan Tailor specific announcements, releases, workflows, tips, etc. NO FEATURE REQUESTS IN THIS FORUM, please.
artelse
Posts: 2
Joined: 10 Dec 2018, 07:21
Number of books owned: 2000
Country: NL

Re: Scan Tailor Advanced

Post by artelse » 11 Dec 2018, 07:02

Replying on my post as I have fixed the Qt path problem.
on cmake one can pass a path like so:

Code: Select all

-DCMAKE_PREFIX_PATH=/opt/Qt/5.6/lib/cmake
So my final cmake which compiles fine is:

Code: Select all

cmake -G "Unix Makefiles" --build .. -DBOOST_ROOT=/usr/local -DCMAKE_PREFIX_PATH=/opt/Qt/5.6/lib/cmake
Make sure it points to the actual cmake directory and not just to /opt/Qt or something similar.

Konos93a
Posts: 128
Joined: 19 Sep 2016, 10:00
E-book readers owned: kobo aura,kindle 1,kindle pw3,pocketbook inkpad 2
Number of books owned: 3000
Country: greece

Re: Scan Tailor Advanced

Post by Konos93a » 14 Feb 2019, 10:38

hello is it possible to a next version add the feature Match size by scaling in Margins . it will then have all the features of scan tailor experimental .
now command Match size with other pages is like Match size by growing margins . i prefer your version rather than experimental because output command is perfect . less size , better quality more options and more smooth the results. but i use 2 camera scanner and it is very difficult to have the same cropped sizes of odds and evens pages . Match size by scaling in Margins would correct that.

what difficulties there are to get added ?

in any case thank your for your contribution with your versions

alan
Posts: 2
Joined: 27 Feb 2019, 16:56
Number of books owned: 0
Country: USA

Re: Scan Tailor Advanced

Post by alan » 27 Feb 2019, 22:27

I was able to build ScanTailor Advanced on macOS 10.14.3 (Mojave) using Homebrew instead of Macports (as I already use Homebrew).

Code: Select all

brew install boost cmake qt5 libtiff libpng jpeg
git clone https://github.com/4lex4/scantailor-advanced.git
export CMAKE_PREFIX_PATH="/usr/local/opt/qt/lib/cmake"
export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig"
cd scantailor-advanced
mkdir build && cd build
cmake -G "Unix Makefiles" --build ..
make -j `nproc`
make install
zlib is already available on macOS

The only obvious issue so far is that icons (such as previous/next page) are not properly displayed, but the tooltips work.

i8dcI32QWRfiwVj wrote:
18 Aug 2018, 08:31
i8dcI32QWRfiwVj wrote:
17 Aug 2018, 08:15
codeone wrote:
23 Jul 2018, 08:44

I know your inquiries re: macOS are a few months old, now, but I wanted to note I was able to compile in macOS High Sierra on an 2013 Macbook Pro. While I did get some warnings during the build process, nothing failed outright. The latest version of the source (as of 2018-07-23 -- 1.0.16) did appear to build successfully and install...I start ScanTailor Advanced from the Terminal and it just works as far as I can tell, though I haven't stress tested every possible feature. I do see errors in Terminal when running--I think these are related to stylesheets of the UI but they haven't crashed the app and I don't actually have a sense of what isn't being executed.

Still, if anyone would like me to add a HOWTO build Advanced for macOS, I could do that--just let me know if this is still needed and I can write up how I got the source compiled. It's also possible one or more of you did this on your own and with better results than me, so I'd also be happy to hear from people who got this working on their own, too.
Would be amazing to have a howto for building ST Advanced on macOS! Also, is there anything that stands in the way of packing the app you compiled into a .dng container and making it available? (Honest question! I don't know much about creating standalone apps on macOS.)
Actually, have just managed to build ST Advanced on macOS 10.13.6 myself. Not that difficult with Macports. Here's how I did it:
  1. Preparation:

    Installed all dependencies and tools (see list at https://github.com/4lex4/scantailor-lib ... pendencies). In my case:

    Code: Select all

    sudo port install boost cmake qt5 tiff libpng jpeg zlib
    Then cloned the ST Advanced github repository:

    Code: Select all

    git clone https://github.com/4lex4/scantailor-advanced.git
  2. Followed Linux build instructions (see https://github.com/4lex4/scantailor-libs-build#linux):

    Code: Select all

    cd ".../scantailor-advanced-1.x.x"
    mkdir build && cd build
    cmake -G "Unix Makefiles" --build ..
    make -j `nproc`
    
    Then:

    Code: Select all

    sudo make install
Done!

Executable runs fine from Terminal. Found it impossible to package my build into an .app bundle, though, and would greatly appreciate some help here.

alan
Posts: 2
Joined: 27 Feb 2019, 16:56
Number of books owned: 0
Country: USA

Re: Scan Tailor Advanced

Post by alan » 02 Mar 2019, 13:56

A small update. The nproc command does not exist on macOS, so the -j option can be omitted.
The updated commands:

Code: Select all

brew install boost cmake qt5 libtiff libpng jpeg
git clone https://github.com/4lex4/scantailor-advanced.git
export CMAKE_PREFIX_PATH="/usr/local/opt/qt/lib/cmake"
export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig"
cd scantailor-advanced
mkdir build && cd build
cmake -G "Unix Makefiles" --build ..
make
make install

alan wrote:
27 Feb 2019, 22:27
I was able to build ScanTailor Advanced on macOS 10.14.3 (Mojave) using Homebrew instead of Macports (as I already use Homebrew).

Code: Select all

brew install boost cmake qt5 libtiff libpng jpeg
git clone https://github.com/4lex4/scantailor-advanced.git
export CMAKE_PREFIX_PATH="/usr/local/opt/qt/lib/cmake"
export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig"
cd scantailor-advanced
mkdir build && cd build
cmake -G "Unix Makefiles" --build ..
make -j `nproc`
make install
zlib is already available on macOS

The only obvious issue so far is that icons (such as previous/next page) are not properly displayed, but the tooltips work.

i8dcI32QWRfiwVj wrote:
18 Aug 2018, 08:31
i8dcI32QWRfiwVj wrote:
17 Aug 2018, 08:15


Would be amazing to have a howto for building ST Advanced on macOS! Also, is there anything that stands in the way of packing the app you compiled into a .dng container and making it available? (Honest question! I don't know much about creating standalone apps on macOS.)
Actually, have just managed to build ST Advanced on macOS 10.13.6 myself. Not that difficult with Macports. Here's how I did it:
  1. Preparation:

    Installed all dependencies and tools (see list at https://github.com/4lex4/scantailor-lib ... pendencies). In my case:

    Code: Select all

    sudo port install boost cmake qt5 tiff libpng jpeg zlib
    Then cloned the ST Advanced github repository:

    Code: Select all

    git clone https://github.com/4lex4/scantailor-advanced.git
  2. Followed Linux build instructions (see https://github.com/4lex4/scantailor-libs-build#linux):

    Code: Select all

    cd ".../scantailor-advanced-1.x.x"
    mkdir build && cd build
    cmake -G "Unix Makefiles" --build ..
    make -j `nproc`
    
    Then:

    Code: Select all

    sudo make install
Done!

Executable runs fine from Terminal. Found it impossible to package my build into an .app bundle, though, and would greatly appreciate some help here.

Konos93a
Posts: 128
Joined: 19 Sep 2016, 10:00
E-book readers owned: kobo aura,kindle 1,kindle pw3,pocketbook inkpad 2
Number of books owned: 3000
Country: greece

Re: Scan Tailor Advanced

Post by Konos93a » 17 Mar 2019, 13:45

here is my issue even if i can correct it with fast stone photoresizer a program i think that this should get added . personally every even page is 5% smaller than odd page

. use fast stone photoresizer before use scantailor advanced so pages have almost the same size contect

Post Reply