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?