Page 5 of 7

Re: ScanTailor for OSX is here

Posted: 16 Feb 2012, 07:34
by feliks
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...

Re: ScanTailor for OSX is here

Posted: 16 Feb 2012, 10:26
by Tulon
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.

Re: ScanTailor for OSX is here

Posted: 16 Feb 2012, 16:36
by feliks
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...

Re: ScanTailor for OSX is here

Posted: 19 Feb 2012, 19:57
by Tulon
Can you also post the original file corresponding to a page where it crashes?

Re: ScanTailor for OSX is here

Posted: 22 Feb 2012, 00:31
by themorb
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!

Re: ScanTailor for OSX is here

Posted: 25 Feb 2012, 16:09
by themorb
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.

Re: ScanTailor for OSX is here

Posted: 26 Feb 2012, 02:09
by Anonymous2
Scan Tailor compiled 100% fine for me yesterday, but I'm using GCC 4.6.2 on Linux. What compiler were you using?

Re: ScanTailor for OSX is here

Posted: 26 Feb 2012, 03:55
by Tulon
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.

Re: ScanTailor for OSX is here

Posted: 27 Feb 2012, 01:28
by themorb
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?

Re: ScanTailor for OSX is here

Posted: 27 Feb 2012, 10:08
by Anonymous2
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?