Page 1 of 1

Scan Tailor doesn't compile with Qt 4.5?

Posted: 16 Mar 2011, 17:11
by Lazy_Kent
Building latest snapshot from git (commit 25c18f34f0403f079a6cbc992920ca7e1f1e221d) I get errors.

Code: Select all

[ 66%] Built target imageproc_tests
[ 66%] Building CXX object filters/output/CMakeFiles/output.dir/OutputGenerator.cpp.o
[ 66%] Building CXX object filters/output/CMakeFiles/output.dir/Settings.cpp.o
[ 67%] Building CXX object filters/output/CMakeFiles/output.dir/Thumbnail.cpp.o
/usr/src/packages/BUILD/scantailor/filters/output/OutputGenerator.cpp: In member function 'QImage output::OutputGenerator::processWithoutDewarping(const TaskStatus&, const FilterData&, const ZoneSet&, const ZoneSet&, imageproc::BinaryImage*, imageproc::BinaryImage*, DebugImages*) const':
/usr/src/packages/BUILD/scantailor/filters/output/OutputGenerator.cpp:571: error: 'const class QPolygonF' has no member named 'translated'
/usr/src/packages/BUILD/scantailor/filters/output/OutputGenerator.cpp: In member function 'QImage output::OutputGenerator::processWithDewarping(const TaskStatus&, const FilterData&, const ZoneSet&, const ZoneSet&, output::DewarpingMode, dewarping::DistortionModel&, const output::DepthPerception&, imageproc::BinaryImage*, imageproc::BinaryImage*, DebugImages*) const':
/usr/src/packages/BUILD/scantailor/filters/output/OutputGenerator.cpp:825: error: 'const class QPolygonF' has no member named 'translated'
make[2]: *** [filters/output/CMakeFiles/output.dir/OutputGenerator.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [filters/output/CMakeFiles/output.dir/all] Error 2
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.524jYO (%build)
Compiled successfully with Qt 4.6 and 4.7.

Re: Scan Tailor doesn't compile with Qt 4.5?

Posted: 16 Mar 2011, 18:59
by TomHorsley
From the Qt docs:

QPolygonF QPolygonF::translated ( const QPointF & offset ) const
Returns a copy of the polygon that is translated by the given offset.
This function was introduced in Qt 4.6.

I suspect that means it ain't gonna compile in anything earlier than 4.5 :-).

Re: Scan Tailor doesn't compile with Qt 4.5?

Posted: 17 Mar 2011, 04:34
by Tulon
I'll replace those with something more portable.