Tulon Цитата: Слишком нетипичная задача, и к тому же не вписывается в интерфейс СТ.
очень часто приходится переделывать пдф файлы от горе-сканировщиков. Так вот- там эта задача типическая- неоднаковые размеры у страниц и разные поля.
Поэтому кроп, как и подгонку масштабирования можно рассматривать как один из этапов предобработки наряду с изменением дпи ?
У меня проблемы с компилированием последней версии. Можете что-то посоветовать?
[more=дальше..]
Код: term@rapanui:~/Documents/incoming/scantailor-0.9.5> cmake .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Boost version: 1.37.0
-- Found the following Boost libraries:
-- Checking to see if CXX compiler accepts flag -ffunction-sections -fdata-sections -Wl,--gc-sections
-- Checking to see if CXX compiler accepts flag -ffunction-sections -fdata-sections -Wl,--gc-sections - yes
-- Checking to see if CXX compiler accepts flag -fvisibility=hidden
-- Checking to see if CXX compiler accepts flag -fvisibility=hidden - yes
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.3.1
-- Found OpenSSL: /usr/lib64/libssl.so
-- Looking for _POSIX_TIMERS
-- Looking for _POSIX_TIMERS - found
-- Boost version: 1.37.0
-- Found the following Boost libraries:
-- unit_test_framework
-- prg_exec_monitor
-- Checking pthreads with CFLAGS="-pthread" and LIBS="-pthread" -- yes
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/term/Documents/incoming/scantailor-0.9.5
term@rapanui:~/Documents/incoming/scantailor-0.9.5> make
Scanning dependencies of target compile_translations
[ 0%] Generating ru.qm
Updating '/home/term/Documents/incoming/scantailor-0.9.5/ru.qm'...
Generated 199 translations (199 finished and 0 unfinished)
[ 0%] Built target compile_translations
[ 1%] Generating ui_OutputOptionsWidget.h
[ 1%] Generating ApplyColorsDialog.h.moc
[ 1%] Generating ChangeDpiDialog.h.moc
[ 2%] Generating ImageView.h.moc
[ 2%] Generating OptionsWidget.h.moc
[ 3%] Generating ui_OutputChangeDpiDialog.h
[ 3%] Generating ui_OutputApplyColorsDialog.h
Scanning dependencies of target output
[ 4%] Building CXX object filters/output/CMakeFiles/output.dir/ApplyColorsDialog.cpp.o
[ 4%] Building CXX object filters/output/CMakeFiles/output.dir/ChangeDpiDialog.cpp.o
[ 5%] Building CXX object filters/output/CMakeFiles/output.dir/ImageView.cpp.o
[ 5%] Building CXX object filters/output/CMakeFiles/output.dir/Filter.cpp.o
In file included from /home/term/Documents/incoming/scantailor-0.9.5/./AbstractFilter.h:22,
from /home/term/Documents/incoming/scantailor-0.9.5/filters/output/Filter.h:23,
from /home/term/Documents/incoming/scantailor-0.9.5/filters/output/Filter.cpp:19:
/home/term/Documents/incoming/scantailor-0.9.5/foundation/RefCountable.h:26:22: error: QAtomicInt: No such file or directory
In file included from /home/term/Documents/incoming/scantailor-0.9.5/./AbstractFilter.h:22,
from /home/term/Documents/incoming/scantailor-0.9.5/filters/output/Filter.h:23,
from /home/term/Documents/incoming/scantailor-0.9.5/filters/output/Filter.cpp:19:
/home/term/Documents/incoming/scantailor-0.9.5/foundation/RefCountable.h:51: error: ‘QAtomicInt does not name a type
/home/term/Documents/incoming/scantailor-0.9.5/foundation/RefCountable.h: In constructor ‘RefCountable::RefCountable():
/home/term/Documents/incoming/scantailor-0.9.5/foundation/RefCountable.h:31: error: class ‘RefCountable does not have any field named ‘m_refCounter
/home/term/Documents/incoming/scantailor-0.9.5/foundation/RefCountable.h: In member function ‘void RefCountable::ref() const:
/home/term/Documents/incoming/scantailor-0.9.5/foundation/RefCountable.h:43: error: ‘m_refCounter was not declared in this scope
/home/term/Documents/incoming/scantailor-0.9.5/foundation/RefCountable.h: In member function ‘void RefCountable::unref() const:
/home/term/Documents/incoming/scantailor-0.9.5/foundation/RefCountable.h:46: error: ‘m_refCounter was not declared in this scope
make[2]: *** [filters/output/CMakeFiles/output.dir/Filter.cpp.o] Error 1
make[1]: *** [filters/output/CMakeFiles/output.dir/all] Error 2
make: *** [all] Error 2