ScanTailor for OSX is here

Scan Tailor specific announcements, releases, workflows, tips, etc. NO FEATURE REQUESTS IN THIS FORUM, please.
feliks
Posts: 24
Joined: 06 Jan 2012, 15:10
Number of books owned: 150

Re: ScanTailor for OSX is here

Postby feliks » 16 Feb 2012, 07:34

Here's the terminal output when run from the brew version:

"Assertion failed: (m_outRect.contains(m_contentRect.topLeft()) && m_outRect.contains(m_contentRect.bottomRight())), function OutputGenerator, file /tmp/homebrew-scantailor-0.9.11-Q5RW/scantailor-0.9.11/filters/output/OutputGenerator.cpp, line 253.
Abort trap: 6"

-F...

Tulon
Posts: 656
Joined: 03 Oct 2009, 06:13
Number of books owned: 0
Location: London, UK
Contact:

Re: ScanTailor for OSX is here

Postby Tulon » 16 Feb 2012, 10:26

Let's start from the project file - that might be anough. So, zip up the *.ScanTailor project file (don't zip any images), put it on depositfiles.com or a similar site, post the link here. Also tell me which page this happens on.
Scan Tailor experimental doesn't output 96 DPI images. It's just what your software shows when DPI information is missing. Usually what you get is input DPI times the resolution enhancement factor.

feliks
Posts: 24
Joined: 06 Jan 2012, 15:10
Number of books owned: 150

Re: ScanTailor for OSX is here

Postby feliks » 16 Feb 2012, 16:36

Here's the link:

http://depositfiles.com/files/ffs40o9sf

Included are several saves of the same project.

To give more detail:

Everything works up until I try to generate output in the last step. The moment I click the "play" button to automate, it pauses and then crashes, always giving this result in the terminal:


Assertion failed: (m_outRect.contains(m_contentRect.topLeft()) && m_outRect.contains(m_contentRect.bottomRight())), function OutputGenerator, file /tmp/homebrew-scantailor-0.9.11-Q5RW/scantailor-0.9.11/filters/output/OutputGenerator.cpp, line 253.
Abort trap: 6
silverbox:~ feliks$

Thanks,

-F...

Tulon
Posts: 656
Joined: 03 Oct 2009, 06:13
Number of books owned: 0
Location: London, UK
Contact:

Re: ScanTailor for OSX is here

Postby Tulon » 19 Feb 2012, 19:57

Can you also post the original file corresponding to a page where it crashes?
Scan Tailor experimental doesn't output 96 DPI images. It's just what your software shows when DPI information is missing. Usually what you get is input DPI times the resolution enhancement factor.

themorb
Posts: 3
Joined: 21 Feb 2012, 21:25
Number of books owned: 0

Re: ScanTailor for OSX is here

Postby themorb » 22 Feb 2012, 00:31

Hi, I am using Lion with the Feb 2012 command line tools for Xcode. I installed homebrew today and typed "brew install scantailor" and got the following message:

Code: Select all

In file included from /tmp/homebrew-scantailor-0.9.10-CGMP/scantailor-0.9.10/math/HomographicTransform.h:23:
/tmp/homebrew-scantailor-0.9.10-CGMP/scantailor-0.9.10/math/MatrixCalc.h:127:10: error: calling a private constructor of class 'mcalc::Mat<double>'
                return mcalc::Mat<T>(&m_alloc, data, rows, cols);
                       ^
/tmp/homebrew-scantailor-0.9.10-CGMP/scantailor-0.9.10/dewarping/DistortionModelBuilder.cpp:516:5: note: in instantiation of member function 'MatrixCalc<double, mcalc::DynamicPoolAllocator<double> >::operator()' requested here
                mc(&At[0], 2, polyline_size).transWrite(&A[0]);
                  ^
/tmp/homebrew-scantailor-0.9.10-CGMP/scantailor-0.9.10/math/MatrixCalc.h:107:2: note: declared private here
        Mat(AbstractAllocator<T>* alloc, T const* data, int rows, int cols)
        ^
1 error generated.


I tried 0.9.11 and 0.9.10 and both produce the same error. Probably just have to update some library to do with matrix calculations but I don't know how? Can anybody help me? Thanks!

themorb
Posts: 3
Joined: 21 Feb 2012, 21:25
Number of books owned: 0

Re: ScanTailor for OSX is here

Postby themorb » 25 Feb 2012, 16:09

Ok I managed to get it to compile. If anyone else has the same problem, here is what I did to fix it. In matrixCalc.h line 107, I moved the "private:" down a few lines under the Mat declaration thingy.... so Mat becomes public. Anyway it compiled and works, so..... I'm happy for now. Maybe I'm just using the wrong compiler or something but at least it works for me.

Anonymous2
Posts: 97
Joined: 18 Oct 2011, 16:05

Re: ScanTailor for OSX is here

Postby Anonymous2 » 26 Feb 2012, 02:09

Scan Tailor compiled 100% fine for me yesterday, but I'm using GCC 4.6.2 on Linux. What compiler were you using?

Tulon
Posts: 656
Joined: 03 Oct 2009, 06:13
Number of books owned: 0
Location: London, UK
Contact:

Re: ScanTailor for OSX is here

Postby Tulon » 26 Feb 2012, 03:55

The way errors are formatted suggests it's not gcc but clang. If true, I have to say I am quite impressed with the progress clang made over the last year. Still, it did misinterpret a template friend declaration.

I believe Xcode ships both gcc and clang and there should be a way to switch between the two.
Scan Tailor experimental doesn't output 96 DPI images. It's just what your software shows when DPI information is missing. Usually what you get is input DPI times the resolution enhancement factor.

themorb
Posts: 3
Joined: 21 Feb 2012, 21:25
Number of books owned: 0

Re: ScanTailor for OSX is here

Postby themorb » 27 Feb 2012, 01:28

gcc --version shows "i686-apple-darwin11-llvm-gcc-4.2" This seems to be what comes with Xcode command line tools, which is what homebrew says to install..... Should I be using something else?

Anonymous2
Posts: 97
Joined: 18 Oct 2011, 16:05

Re: ScanTailor for OSX is here

Postby Anonymous2 » 27 Feb 2012, 10:08

Sorry, my bad. I didn't realize you were using Clang. I tried it with Clang 3.0 and got the same errors.

Tulon, is it a problem to change those matrix class properties from Private to Public in the source code?


Return to “Scan Tailor”

Who is online

Users browsing this forum: Google [Bot] and 0 guests