Daniel Reetz, the founder of the DIY Book Scanner community, has recently started making videos of prototyping and shop tips. If you are tinkering with a book scanner (or any other project) in your home shop, these tips will come in handy. https://www.youtube.com/channel/UCn0gq8 ... g_8K1nfInQ

Scan Tailor doesn't compile with Qt 4.5?

Scan Tailor specific announcements, releases, workflows, tips, etc. NO FEATURE REQUESTS IN THIS FORUM, please.
Post Reply
Lazy_Kent
Posts: 37
Joined: 26 Oct 2010, 10:06
Number of books owned: 0
Location: Moscow

Scan Tailor doesn't compile with Qt 4.5?

Post by Lazy_Kent » 16 Mar 2011, 17:11

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.

TomHorsley
Posts: 96
Joined: 30 Jan 2011, 10:39

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

Post by TomHorsley » 16 Mar 2011, 18:59

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 :-).

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

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

Post by Tulon » 17 Mar 2011, 04:34

I'll replace those with something more portable.
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.

Post Reply