ScanTailor for OSX is here

Scan Tailor specific announcements, releases, workflows, tips, etc. NO FEATURE REQUESTS IN THIS FORUM, please.

Re: ScanTailor for OSX is here

Postby Tulon » 27 Feb 2012, 16:37

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

Making private constructors public is not the way to go. The preferred course of action is to submit a bug report to Clang. I don't have time to do that myself, so if you feel up to it, you are welcome to try. Note that they would require a short self-contained example. If it turns out it's not a bug of theirs but rather unportable syntax or something, I would by happy to fix my code.
When Scan Tailor asks you to enter DPIs manually, never enter arbitrary values. The video tutorial shows how to estimate the real DPI.
Tulon
 
Posts: 536
Joined: 03 Oct 2009, 06:13
Location: London, UK

Re: ScanTailor for OSX is here

Postby yoeluru » 10 Mar 2013, 19:40

I have a problem trying to compile Scantailor,i'm on Mountain Lion and is a fresh install,
this is the error :
Code: Select all
[ 20%] Building CXX object dewarping/CMakeFiles/dewarping.dir/DistortionModelBuilder.cpp.o
In file included from /Users/flavio/Desktop/scantailor-enhanced/dewarping/DistortionModelBuilder.cpp:21:
In file included from /Users/flavio/Desktop/scantailor-enhanced/dewarping/CylindricalSurfaceDewarper.h:22:
In file included from /Users/flavio/Desktop/scantailor-enhanced/math/HomographicTransform.h:23:
/Users/flavio/Desktop/scantailor-enhanced/math/MatrixCalc.h:127:10: error:
      calling a private constructor of class 'mcalc::Mat<double>'
                return mcalc::Mat<T>(&m_alloc, data, rows, cols);
                       ^
/Users/flavio/Desktop/scantailor-enhanced/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]);
                  ^
/Users/flavio/Desktop/scantailor-enhanced/math/MatrixCalc.h:107:2: note:
      declared private here
        Mat(AbstractAllocator<T>* alloc, T const* data, int rows, int cols)
        ^
1 error generated.
make[2]: *** [dewarping/CMakeFiles/dewarping.dir/DistortionModelBuilder.cpp.o] Error 1
make[1]: *** [dewarping/CMakeFiles/dewarping.dir/all] Error 2
make: *** [all] Error 2


i've tried playing around with the cmake, then with boots, installing everything with homebrew, and then with macports, seem that both times gets the same error.
i'm doing cmake like this
Code: Select all
CMAKE_LIBRARY_PATH=/opt/local/lib CMAKE_INCLUDE_PATH=/opt/local/include cmake -DQT_QMAKE_EXECUTABLE=/opt/local/bin/qmake
Any help?
yoeluru
 
Posts: 1
Joined: 24 Jun 2011, 16:38

Re: ScanTailor for OSX is here

Postby Tulon » 12 Mar 2013, 04:16

The clang compiler has problems with template friends. Try building with gcc instead.
When Scan Tailor asks you to enter DPIs manually, never enter arbitrary values. The video tutorial shows how to estimate the real DPI.
Tulon
 
Posts: 536
Joined: 03 Oct 2009, 06:13
Location: London, UK

Previous

Return to Scan Tailor

Who is online

Users browsing this forum: No registered users and 2 guests