Scan Tailor "Experimental"

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

Moderator: peterZ

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

Re: Scan Tailor "Experimental"

Post by Tulon »

OK, so it's crashing with a division by zero. I suspect it's caused by CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE being zero. I've seen that on Linux with Mesa drivers.
Could you try replacing all instances of:

Code: Select all

device.getInfo<CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE>()
with:

Code: Select all

std::max<size_t>(1, device.getInfo<CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE>())
You may also need to add the following to files you modify:

Code: Select all

#include <algorithm>
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.
louiscan
Posts: 14
Joined: 10 Apr 2015, 17:35
Number of books owned: 0
Country: USA

Re: Scan Tailor "Experimental"

Post by louiscan »

Hm... made changes (11 instances in 7 files), but same behavior as before.

For dewarp:

Code: Select all

Process:               scantailor [3905]
Path:                  /Users/USER/Desktop/*/scantailor
Identifier:            scantailor
Version:               0
Code Type:             X86-64 (Native)
Parent Process:        bash [3900]
Responsible:           Terminal [298]
User ID:               501

Date/Time:             2016-03-30 16:22:00.622 -0400
OS Version:            Mac OS X 10.11.4 (15E65)
Report Version:        11
Anonymous UUID:        ACEF52FC-C74B-43CA-793C-AAA294980595

Sleep/Wake UUID:       010EB29B-4106-4908-895A-154E095B5BB9

Time Awake Since Boot: 25000 seconds
Time Since Wake:       1000 seconds

System Integrity Protection: disabled

Crashed Thread:        13  Thread (pooled)

Exception Type:        EXC_ARITHMETIC (SIGFPE)
Exception Codes:       EXC_I386_DIV (divide by zero)

Thread 0:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	0x00007fff8789af72 mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fff8789a3b3 mach_msg + 55
2   com.apple.CoreFoundation      	0x00007fff945671c4 __CFRunLoopServiceMachPort + 212
3   com.apple.CoreFoundation      	0x00007fff9456668c __CFRunLoopRun + 1356
4   com.apple.CoreFoundation      	0x00007fff94565ed8 CFRunLoopRunSpecific + 296
5   com.apple.HIToolbox           	0x00007fff86640935 RunCurrentEventLoopInMode + 235
6   com.apple.HIToolbox           	0x00007fff8664076f ReceiveNextEventCommon + 432
7   com.apple.HIToolbox           	0x00007fff866405af _BlockUntilNextEventMatchingListInModeWithFilter + 71
8   com.apple.AppKit              	0x00007fff8ceacefa _DPSNextEvent + 1067
9   com.apple.AppKit              	0x00007fff8ceac32a -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
10  com.apple.AppKit              	0x00007fff8cea0e84 -[NSApplication run] + 682
11  libqcocoa.dylib               	0x0000000108d3337f QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2191
12  org.qt-project.QtCore         	0x00000001064f17a1 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 401
13  org.qt-project.QtCore         	0x00000001064f5a65 QCoreApplication::exec() + 341
14  scantailor                    	0x00000001050ac7d6 main + 2886
15  libdyld.dylib                 	0x00007fff91a725ad start + 1

Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib        	0x00007fff878a1efa kevent_qos + 10
1   libdispatch.dylib             	0x00007fff80a01165 _dispatch_mgr_invoke + 216
2   libdispatch.dylib             	0x00007fff80a00dcd _dispatch_mgr_thread + 52

Thread 2:
0   libsystem_kernel.dylib        	0x00007fff878a15e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff8c409578 _pthread_wqthread + 1283
2   libsystem_pthread.dylib       	0x00007fff8c407341 start_wqthread + 13

Thread 3:
0   libsystem_kernel.dylib        	0x00007fff878a15e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff8c409578 _pthread_wqthread + 1283
2   libsystem_pthread.dylib       	0x00007fff8c407341 start_wqthread + 13

Thread 4:: com.apple.NSEventThread
0   libsystem_kernel.dylib        	0x00007fff8789af72 mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fff8789a3b3 mach_msg + 55
2   com.apple.CoreFoundation      	0x00007fff945671c4 __CFRunLoopServiceMachPort + 212
3   com.apple.CoreFoundation      	0x00007fff9456668c __CFRunLoopRun + 1356
4   com.apple.CoreFoundation      	0x00007fff94565ed8 CFRunLoopRunSpecific + 296
5   com.apple.AppKit              	0x00007fff8d002e99 _NSEventThread + 149
6   libsystem_pthread.dylib       	0x00007fff8c40999d _pthread_body + 131
7   libsystem_pthread.dylib       	0x00007fff8c40991a _pthread_start + 168
8   libsystem_pthread.dylib       	0x00007fff8c407351 thread_start + 13

Thread 5:
0   libsystem_kernel.dylib        	0x00007fff878a15e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff8c409578 _pthread_wqthread + 1283
2   libsystem_pthread.dylib       	0x00007fff8c407341 start_wqthread + 13

Thread 6:
0   libsystem_kernel.dylib        	0x00007fff878a15e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff8c409578 _pthread_wqthread + 1283
2   libsystem_pthread.dylib       	0x00007fff8c407341 start_wqthread + 13

Thread 7:: Dispatch queue: opencl_runtime
0   com.apple.opencl              	0x00007fff8fee594f 0x7fff8fea8000 + 252239
1   com.apple.opencl              	0x00007fff8fec8423 0x7fff8fea8000 + 132131
2   com.apple.opencl              	0x00007fff8fecb9c2 0x7fff8fea8000 + 145858
3   libdispatch.dylib             	0x00007fff809fb40b _dispatch_client_callout + 8
4   libdispatch.dylib             	0x00007fff80a0003b _dispatch_queue_drain + 754
5   libdispatch.dylib             	0x00007fff80a06707 _dispatch_queue_invoke + 549
6   libdispatch.dylib             	0x00007fff809fed53 _dispatch_root_queue_drain + 538
7   libdispatch.dylib             	0x00007fff809feb00 _dispatch_worker_thread3 + 91
8   libsystem_pthread.dylib       	0x00007fff8c4094de _pthread_wqthread + 1129
9   libsystem_pthread.dylib       	0x00007fff8c407341 start_wqthread + 13

Thread 8:: Thread (pooled)
0   libsystem_kernel.dylib        	0x00007fff878a0db6 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fff8c40a728 _pthread_cond_wait + 767
2   org.qt-project.QtCore         	0x000000010633cd2f QWaitConditionPrivate::wait_relative(unsigned long) + 287
3   org.qt-project.QtCore         	0x000000010633cb6b QWaitConditionPrivate::wait(unsigned long) + 43
4   org.qt-project.QtCore         	0x000000010633ca42 QWaitCondition::wait(QMutex*, unsigned long) + 162
5   org.qt-project.QtCore         	0x000000010633853e QThreadPoolThread::run() + 574
6   org.qt-project.QtCore         	0x000000010633b57a QThreadPrivate::start(void*) + 362
7   libsystem_pthread.dylib       	0x00007fff8c40999d _pthread_body + 131
8   libsystem_pthread.dylib       	0x00007fff8c40991a _pthread_start + 168
9   libsystem_pthread.dylib       	0x00007fff8c407351 thread_start + 13

Thread 9:: QThread
0   libsystem_kernel.dylib        	0x00007fff878a107a __select + 10
1   org.qt-project.QtCore         	0x0000000106549303 qt_safe_select(int, fd_set*, fd_set*, fd_set*, timespec const*) + 547
2   org.qt-project.QtCore         	0x000000010654a215 QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timespec*) + 693
3   org.qt-project.QtCore         	0x000000010654b3b7 QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 231
4   org.qt-project.QtCore         	0x00000001064f17a1 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 401
5   org.qt-project.QtCore         	0x0000000106337afe QThread::exec() + 110
6   org.qt-project.QtCore         	0x000000010633b57a QThreadPrivate::start(void*) + 362
7   libsystem_pthread.dylib       	0x00007fff8c40999d _pthread_body + 131
8   libsystem_pthread.dylib       	0x00007fff8c40991a _pthread_start + 168
9   libsystem_pthread.dylib       	0x00007fff8c407351 thread_start + 13

Thread 10:: QThread
0   libsystem_kernel.dylib        	0x00007fff878a107a __select + 10
1   org.qt-project.QtCore         	0x0000000106549303 qt_safe_select(int, fd_set*, fd_set*, fd_set*, timespec const*) + 547
2   org.qt-project.QtCore         	0x000000010654a215 QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timespec*) + 693
3   org.qt-project.QtCore         	0x000000010654b3b7 QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 231
4   org.qt-project.QtCore         	0x00000001064f17a1 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 401
5   org.qt-project.QtCore         	0x0000000106337afe QThread::exec() + 110
6   org.qt-project.QtCore         	0x000000010633b57a QThreadPrivate::start(void*) + 362
7   libsystem_pthread.dylib       	0x00007fff8c40999d _pthread_body + 131
8   libsystem_pthread.dylib       	0x00007fff8c40991a _pthread_start + 168
9   libsystem_pthread.dylib       	0x00007fff8c407351 thread_start + 13

Thread 11:: Thread (pooled)
0   libsystem_kernel.dylib        	0x00007fff878a0db6 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fff8c40a728 _pthread_cond_wait + 767
2   org.qt-project.QtCore         	0x000000010633cd2f QWaitConditionPrivate::wait_relative(unsigned long) + 287
3   org.qt-project.QtCore         	0x000000010633cb6b QWaitConditionPrivate::wait(unsigned long) + 43
4   org.qt-project.QtCore         	0x000000010633ca42 QWaitCondition::wait(QMutex*, unsigned long) + 162
5   org.qt-project.QtCore         	0x000000010633853e QThreadPoolThread::run() + 574
6   org.qt-project.QtCore         	0x000000010633b57a QThreadPrivate::start(void*) + 362
7   libsystem_pthread.dylib       	0x00007fff8c40999d _pthread_body + 131
8   libsystem_pthread.dylib       	0x00007fff8c40991a _pthread_start + 168
9   libsystem_pthread.dylib       	0x00007fff8c407351 thread_start + 13

Thread 12:: Thread (pooled)
0   libsystem_kernel.dylib        	0x00007fff878a0db6 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fff8c40a728 _pthread_cond_wait + 767
2   org.qt-project.QtCore         	0x000000010633cd2f QWaitConditionPrivate::wait_relative(unsigned long) + 287
3   org.qt-project.QtCore         	0x000000010633cb6b QWaitConditionPrivate::wait(unsigned long) + 43
4   org.qt-project.QtCore         	0x000000010633ca42 QWaitCondition::wait(QMutex*, unsigned long) + 162
5   org.qt-project.QtCore         	0x000000010633853e QThreadPoolThread::run() + 574
6   org.qt-project.QtCore         	0x000000010633b57a QThreadPrivate::start(void*) + 362
7   libsystem_pthread.dylib       	0x00007fff8c40999d _pthread_body + 131
8   libsystem_pthread.dylib       	0x00007fff8c40991a _pthread_start + 168
9   libsystem_pthread.dylib       	0x00007fff8c407351 thread_start + 13

Thread 13 Crashed:: Thread (pooled)
0   libopencl_plugin.so           	0x000000010ba48e35 opencl::textFilterBank(cl::CommandQueue const&, cl::Program const&, opencl::OpenCLGrid<float> const&, std::__1::vector<VecNT<2ul, float>, std::__1::allocator<VecNT<2ul, float> > > const&, std::__1::vector<VecNT<2ul, float>, std::__1::allocator<VecNT<2ul, float> > > const&, float, std::__1::vector<cl::Event, std::__1::allocator<cl::Event> > const*, std::__1::vector<cl::Event, std::__1::allocator<cl::Event> >*) + 245
1   libopencl_plugin.so           	0x000000010ba3b073 opencl::OpenCLAcceleratedOperations::textFilterBankUnguarded(Grid<float> const&, std::__1::vector<VecNT<2ul, float>, std::__1::allocator<VecNT<2ul, float> > > const&, std::__1::vector<VecNT<2ul, float>, std::__1::allocator<VecNT<2ul, float> > > const&, float) const + 643
2   libopencl_plugin.so           	0x000000010ba3ab9a opencl::OpenCLAcceleratedOperations::textFilterBank(Grid<float> const&, std::__1::vector<VecNT<2ul, float>, std::__1::allocator<VecNT<2ul, float> > > const&, std::__1::vector<VecNT<2ul, float>, std::__1::allocator<VecNT<2ul, float> > > const&, float) const + 42
3   libdewarping.dylib            	0x000000010536d3db dewarping::TextLineSegmenter::processDownscaled(imageproc::GrayImage const&, QPolygonF const&, std::__1::shared_ptr<AcceleratableOperations> const&, TaskStatus const&, DebugImages*) + 1307
4   libdewarping.dylib            	0x000000010536cada dewarping::TextLineSegmenter::process(imageproc::AffineTransformedImage const&, std::__1::shared_ptr<AcceleratableOperations> const&, TaskStatus const&, DebugImages*) + 1498
5   libdewarping.dylib            	0x00000001053643af dewarping::TextLineTracer::trace(imageproc::AffineTransformedImage const&, dewarping::DistortionModelBuilder&, std::__1::shared_ptr<AcceleratableOperations> const&, TaskStatus const&, DebugImages*) + 79
6   scantailor                    	0x0000000105137dcb deskew::Task::processWarpDistortion(TaskStatus const&, std::__1::shared_ptr<AcceleratableOperations> const&, QImage const&, CachingFactory<imageproc::GrayImage> const&, imageproc::AffineImageTransform const&, deskew::Params&) + 283
7   scantailor                    	0x00000001051364c1 deskew::Task::process(TaskStatus const&, std::__1::shared_ptr<AcceleratableOperations> const&, QImage const&, CachingFactory<imageproc::GrayImage> const&, imageproc::AffineImageTransform const&, OrthogonalRotation const&) + 417
8   scantailor                    	0x00000001051242a4 page_split::Task::process(TaskStatus const&, std::__1::shared_ptr<AcceleratableOperations> const&, QImage const&, CachingFactory<imageproc::GrayImage> const&, imageproc::AffineImageTransform const&, OrthogonalRotation const&) + 3572
9   scantailor                    	0x0000000105102429 fix_orientation::Task::process(TaskStatus const&, std::__1::shared_ptr<AcceleratableOperations> const&, QImage const&, CachingFactory<imageproc::GrayImage> const&, imageproc::AffineImageTransform const&) + 697
10  scantailor                    	0x000000010518eb5f LoadFileTask::operator()() + 607
11  scantailor                    	0x000000010518e3d0 WorkerThreadPool::submitTask(IntrusivePtr<BackgroundTask> const&)::Runnable::run() + 48
12  org.qt-project.QtCore         	0x0000000106338378 QThreadPoolThread::run() + 120
13  org.qt-project.QtCore         	0x000000010633b57a QThreadPrivate::start(void*) + 362
14  libsystem_pthread.dylib       	0x00007fff8c40999d _pthread_body + 131
15  libsystem_pthread.dylib       	0x00007fff8c40991a _pthread_start + 168
16  libsystem_pthread.dylib       	0x00007fff8c407351 thread_start + 13

Thread 13 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000100  rbx: 0x0000000000000100  rcx: 0x00007000004a9d80  rdx: 0x0000000000000000
  rdi: 0x00007000004a9c80  rsi: 0x00007f98cb200080  rbp: 0x00007000004a9cc0  rsp: 0x00007000004a9a60
   r8: 0x0000000000000004   r9: 0x00007fff8fea9376  r10: 0x00000000a40008ff  r11: 0xfffff067352a9c00
  r12: 0x00007000004a9d60  r13: 0x00007000004a9d30  r14: 0x0000000000000000  r15: 0x00007f98cd18b280
  rip: 0x000000010ba48e35  rfl: 0x0000000000010246  cr2: 0x000000010ba3ab70
  
Logical CPU:     0
Error Code:      0x00000000
Trap Number:     0


Binary Images:

For output:

Code: Select all

Process:               scantailor [3958]
Path:                  /Users/USER/Desktop/*/scantailor
Identifier:            scantailor
Version:               0
Code Type:             X86-64 (Native)
Parent Process:        bash [3953]
Responsible:           Terminal [298]
User ID:               501

Date/Time:             2016-03-30 16:28:14.024 -0400
OS Version:            Mac OS X 10.11.4 (15E65)
Report Version:        11
Anonymous UUID:        ACEF52FC-C74B-43CA-793C-AAA294980595

Sleep/Wake UUID:       010EB29B-4106-4908-895A-154E095B5BB9

Time Awake Since Boot: 25000 seconds
Time Since Wake:       1400 seconds

System Integrity Protection: disabled

Crashed Thread:        8  Thread (pooled)

Exception Type:        EXC_ARITHMETIC (SIGFPE)
Exception Codes:       EXC_I386_DIV (divide by zero)

Thread 0:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	0x00007fff8789af72 mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fff8789a3b3 mach_msg + 55
2   com.apple.CoreFoundation      	0x00007fff945671c4 __CFRunLoopServiceMachPort + 212
3   com.apple.CoreFoundation      	0x00007fff9456668c __CFRunLoopRun + 1356
4   com.apple.CoreFoundation      	0x00007fff94565ed8 CFRunLoopRunSpecific + 296
5   com.apple.HIToolbox           	0x00007fff86640935 RunCurrentEventLoopInMode + 235
6   com.apple.HIToolbox           	0x00007fff8664076f ReceiveNextEventCommon + 432
7   com.apple.HIToolbox           	0x00007fff866405af _BlockUntilNextEventMatchingListInModeWithFilter + 71
8   com.apple.AppKit              	0x00007fff8ceacefa _DPSNextEvent + 1067
9   com.apple.AppKit              	0x00007fff8ceac32a -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
10  com.apple.AppKit              	0x00007fff8cea0e84 -[NSApplication run] + 682
11  libqcocoa.dylib               	0x000000010c93337f QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2191
12  org.qt-project.QtCore         	0x0000000109f8c7a1 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 401
13  org.qt-project.QtCore         	0x0000000109f90a65 QCoreApplication::exec() + 341
14  scantailor                    	0x0000000108b437d6 main + 2886
15  libdyld.dylib                 	0x00007fff91a725ad start + 1

Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib        	0x00007fff878a1efa kevent_qos + 10
1   libdispatch.dylib             	0x00007fff80a01165 _dispatch_mgr_invoke + 216
2   libdispatch.dylib             	0x00007fff80a00dcd _dispatch_mgr_thread + 52

Thread 2:: com.apple.NSEventThread
0   libsystem_kernel.dylib        	0x00007fff8789af72 mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fff8789a3b3 mach_msg + 55
2   com.apple.CoreFoundation      	0x00007fff945671c4 __CFRunLoopServiceMachPort + 212
3   com.apple.CoreFoundation      	0x00007fff9456668c __CFRunLoopRun + 1356
4   com.apple.CoreFoundation      	0x00007fff94565ed8 CFRunLoopRunSpecific + 296
5   com.apple.AppKit              	0x00007fff8d002e99 _NSEventThread + 149
6   libsystem_pthread.dylib       	0x00007fff8c40999d _pthread_body + 131
7   libsystem_pthread.dylib       	0x00007fff8c40991a _pthread_start + 168
8   libsystem_pthread.dylib       	0x00007fff8c407351 thread_start + 13

Thread 3:: Thread (pooled)
0   libsystem_kernel.dylib        	0x00007fff878a0db6 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fff8c40a728 _pthread_cond_wait + 767
2   org.qt-project.QtCore         	0x0000000109dd7d2f QWaitConditionPrivate::wait_relative(unsigned long) + 287
3   org.qt-project.QtCore         	0x0000000109dd7b6b QWaitConditionPrivate::wait(unsigned long) + 43
4   org.qt-project.QtCore         	0x0000000109dd7a42 QWaitCondition::wait(QMutex*, unsigned long) + 162
5   org.qt-project.QtCore         	0x0000000109dd353e QThreadPoolThread::run() + 574
6   org.qt-project.QtCore         	0x0000000109dd657a QThreadPrivate::start(void*) + 362
7   libsystem_pthread.dylib       	0x00007fff8c40999d _pthread_body + 131
8   libsystem_pthread.dylib       	0x00007fff8c40991a _pthread_start + 168
9   libsystem_pthread.dylib       	0x00007fff8c407351 thread_start + 13

Thread 4:: QThread
0   libsystem_kernel.dylib        	0x00007fff878a107a __select + 10
1   org.qt-project.QtCore         	0x0000000109fe4303 qt_safe_select(int, fd_set*, fd_set*, fd_set*, timespec const*) + 547
2   org.qt-project.QtCore         	0x0000000109fe5215 QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timespec*) + 693
3   org.qt-project.QtCore         	0x0000000109fe63b7 QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 231
4   org.qt-project.QtCore         	0x0000000109f8c7a1 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 401
5   org.qt-project.QtCore         	0x0000000109dd2afe QThread::exec() + 110
6   org.qt-project.QtCore         	0x0000000109dd657a QThreadPrivate::start(void*) + 362
7   libsystem_pthread.dylib       	0x00007fff8c40999d _pthread_body + 131
8   libsystem_pthread.dylib       	0x00007fff8c40991a _pthread_start + 168
9   libsystem_pthread.dylib       	0x00007fff8c407351 thread_start + 13

Thread 5:: QThread
0   libsystem_kernel.dylib        	0x00007fff878a107a __select + 10
1   org.qt-project.QtCore         	0x0000000109fe4303 qt_safe_select(int, fd_set*, fd_set*, fd_set*, timespec const*) + 547
2   org.qt-project.QtCore         	0x0000000109fe5215 QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timespec*) + 693
3   org.qt-project.QtCore         	0x0000000109fe63b7 QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 231
4   org.qt-project.QtCore         	0x0000000109f8c7a1 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 401
5   org.qt-project.QtCore         	0x0000000109dd2afe QThread::exec() + 110
6   org.qt-project.QtCore         	0x0000000109dd657a QThreadPrivate::start(void*) + 362
7   libsystem_pthread.dylib       	0x00007fff8c40999d _pthread_body + 131
8   libsystem_pthread.dylib       	0x00007fff8c40991a _pthread_start + 168
9   libsystem_pthread.dylib       	0x00007fff8c407351 thread_start + 13

Thread 6:: Thread (pooled)
0   libsystem_kernel.dylib        	0x00007fff878a0db6 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fff8c40a728 _pthread_cond_wait + 767
2   org.qt-project.QtCore         	0x0000000109dd7d2f QWaitConditionPrivate::wait_relative(unsigned long) + 287
3   org.qt-project.QtCore         	0x0000000109dd7b6b QWaitConditionPrivate::wait(unsigned long) + 43
4   org.qt-project.QtCore         	0x0000000109dd7a42 QWaitCondition::wait(QMutex*, unsigned long) + 162
5   org.qt-project.QtCore         	0x0000000109dd353e QThreadPoolThread::run() + 574
6   org.qt-project.QtCore         	0x0000000109dd657a QThreadPrivate::start(void*) + 362
7   libsystem_pthread.dylib       	0x00007fff8c40999d _pthread_body + 131
8   libsystem_pthread.dylib       	0x00007fff8c40991a _pthread_start + 168
9   libsystem_pthread.dylib       	0x00007fff8c407351 thread_start + 13

Thread 7:: Thread (pooled)
0   libsystem_kernel.dylib        	0x00007fff878a0db6 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fff8c40a728 _pthread_cond_wait + 767
2   org.qt-project.QtCore         	0x0000000109dd7d2f QWaitConditionPrivate::wait_relative(unsigned long) + 287
3   org.qt-project.QtCore         	0x0000000109dd7b6b QWaitConditionPrivate::wait(unsigned long) + 43
4   org.qt-project.QtCore         	0x0000000109dd7a42 QWaitCondition::wait(QMutex*, unsigned long) + 162
5   org.qt-project.QtCore         	0x0000000109dd353e QThreadPoolThread::run() + 574
6   org.qt-project.QtCore         	0x0000000109dd657a QThreadPrivate::start(void*) + 362
7   libsystem_pthread.dylib       	0x00007fff8c40999d _pthread_body + 131
8   libsystem_pthread.dylib       	0x00007fff8c40991a _pthread_start + 168
9   libsystem_pthread.dylib       	0x00007fff8c407351 thread_start + 13

Thread 8 Crashed:: Thread (pooled)
0   libopencl_plugin.so           	0x000000010f4f1ff8 opencl::binaryRasterOp(cl::CommandQueue const&, cl::Program const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, opencl::OpenCLGrid<unsigned int> const&, QRect const&, opencl::OpenCLGrid<unsigned int> const&, QRect const&, std::__1::vector<cl::Event, std::__1::allocator<cl::Event> > const*, std::__1::vector<cl::Event, std::__1::allocator<cl::Event> >*) + 1768
1   libopencl_plugin.so           	0x000000010f4f3008 opencl::hitMissMatch(cl::CommandQueue const&, cl::Program const&, opencl::OpenCLGrid<unsigned int> const&, int, imageproc::BWColor, opencl::OpenCLGrid<unsigned int> const&, std::__1::vector<QPoint, std::__1::allocator<QPoint> > const&, std::__1::vector<QPoint, std::__1::allocator<QPoint> > const&, std::__1::vector<cl::Event, std::__1::allocator<cl::Event> > const*, std::__1::vector<cl::Event, std::__1::allocator<cl::Event> >*) + 568
2   libopencl_plugin.so           	0x000000010f4f37cc opencl::hitMissReplaceInPlace(cl::CommandQueue const&, cl::Program const&, opencl::OpenCLGrid<unsigned int> const&, int, imageproc::BWColor, opencl::OpenCLGrid<unsigned int> const&, char const*, int, int, std::__1::vector<cl::Event, std::__1::allocator<cl::Event> > const*, std::__1::vector<cl::Event, std::__1::allocator<cl::Event> >*) + 876
3   libopencl_plugin.so           	0x000000010f4db7f5 opencl::OpenCLAcceleratedOperations::hitMissReplaceInPlaceUnguarded(imageproc::BinaryImage&, imageproc::BWColor, std::__1::vector<Grid<char>, std::__1::allocator<Grid<char> > > const&) + 1173
4   libopencl_plugin.so           	0x000000010f4db122 opencl::OpenCLAcceleratedOperations::hitMissReplaceInPlace(imageproc::BinaryImage&, imageproc::BWColor, std::__1::vector<Grid<char>, std::__1::allocator<Grid<char> > > const&) + 34
5   scantailor                    	0x0000000108b76401 output::OutputGenerator::morphologicalSmoothInPlace(imageproc::BinaryImage&, std::__1::shared_ptr<AcceleratableOperations> const&) + 209
6   scantailor                    	0x0000000108b74506 output::OutputGenerator::process(TaskStatus const&, std::__1::shared_ptr<AcceleratableOperations> const&, QImage const&, CachingFactory<imageproc::GrayImage> const&, ZoneSet const&, ZoneSet const&, imageproc::BinaryImage*, imageproc::BinaryImage*, DebugImages*) const + 2886
7   scantailor                    	0x0000000108b6e6bf output::Task::processScaled(TaskStatus const&, std::__1::shared_ptr<AcceleratableOperations> const&, QImage const&, CachingFactory<imageproc::GrayImage> const&, std::__1::shared_ptr<imageproc::AbstractImageTransform const> const&, QRectF const&, QRectF const&) + 2079
8   scantailor                    	0x0000000108b6de20 output::Task::process(TaskStatus const&, std::__1::shared_ptr<AcceleratableOperations> const&, QImage const&, CachingFactory<imageproc::GrayImage> const&, std::__1::shared_ptr<imageproc::AbstractImageTransform const> const&, QRectF const&, QRectF const&) + 320
9   scantailor                    	0x0000000108b55dd5 page_layout::Task::process(TaskStatus const&, std::__1::shared_ptr<AcceleratableOperations> const&, QImage const&, CachingFactory<imageproc::GrayImage> const&, std::__1::shared_ptr<imageproc::AbstractImageTransform const> const&, boost::optional<imageproc::AffineTransformedImage>, ContentBox const&) + 453
10  scantailor                    	0x0000000108bf0707 select_content::Task::process(TaskStatus const&, std::__1::shared_ptr<AcceleratableOperations> const&, QImage const&, CachingFactory<imageproc::GrayImage> const&, std::__1::shared_ptr<imageproc::AbstractImageTransform const> const&) + 2903
11  scantailor                    	0x0000000108bcdf56 deskew::Task::processRotationDistortion(TaskStatus const&, std::__1::shared_ptr<AcceleratableOperations> const&, QImage const&, CachingFactory<imageproc::GrayImage> const&, imageproc::AffineImageTransform const&, deskew::Params&) + 2006
12  scantailor                    	0x0000000108bcd493 deskew::Task::process(TaskStatus const&, std::__1::shared_ptr<AcceleratableOperations> const&, QImage const&, CachingFactory<imageproc::GrayImage> const&, imageproc::AffineImageTransform const&, OrthogonalRotation const&) + 371
13  scantailor                    	0x0000000108bbb2a4 page_split::Task::process(TaskStatus const&, std::__1::shared_ptr<AcceleratableOperations> const&, QImage const&, CachingFactory<imageproc::GrayImage> const&, imageproc::AffineImageTransform const&, OrthogonalRotation const&) + 3572
14  scantailor                    	0x0000000108b99429 fix_orientation::Task::process(TaskStatus const&, std::__1::shared_ptr<AcceleratableOperations> const&, QImage const&, CachingFactory<imageproc::GrayImage> const&, imageproc::AffineImageTransform const&) + 697
15  scantailor                    	0x0000000108c25b5f LoadFileTask::operator()() + 607
16  scantailor                    	0x0000000108c253d0 WorkerThreadPool::submitTask(IntrusivePtr<BackgroundTask> const&)::Runnable::run() + 48
17  org.qt-project.QtCore         	0x0000000109dd3378 QThreadPoolThread::run() + 120
18  org.qt-project.QtCore         	0x0000000109dd657a QThreadPrivate::start(void*) + 362
19  libsystem_pthread.dylib       	0x00007fff8c40999d _pthread_body + 131
20  libsystem_pthread.dylib       	0x00007fff8c40991a _pthread_start + 168
21  libsystem_pthread.dylib       	0x00007fff8c407351 thread_start + 13

Thread 9:
0   libsystem_kernel.dylib        	0x00007fff878a15e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff8c409578 _pthread_wqthread + 1283
2   libsystem_pthread.dylib       	0x00007fff8c407341 start_wqthread + 13

Thread 10:: Dispatch queue: opencl_runtime
0   libsystem_kernel.dylib        	0x00007fff8789af72 mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fff8789a3b3 mach_msg + 55
2   com.apple.framework.IOKit     	0x00007fff896eec21 io_connect_method + 384
3   com.apple.framework.IOKit     	0x00007fff8968f18c IOConnectCallMethod + 342
4   com.apple.IOAccelerator       	0x00007fff8da9187b IOAccelResourceCreate + 162
5   libGPUSupportMercury.dylib    	0x00007fff90b5f8b0 gpusGetKernelBufferResource + 268
6   com.apple.driver.AppleIntelBDWGraphicsGLDriver	0x000000010f9b7f7d glrUpdateBuffer + 114
7   libGPUSupportMercury.dylib    	0x00007fff90b5f54e gldLoadBuffer + 74
8   com.apple.opencl              	0x00007fff8fed9346 0x7fff8fea8000 + 201542
9   com.apple.opencl              	0x00007fff8fee5965 0x7fff8fea8000 + 252261
10  com.apple.opencl              	0x00007fff8fec8423 0x7fff8fea8000 + 132131
11  com.apple.opencl              	0x00007fff8fecb9c2 0x7fff8fea8000 + 145858
12  libdispatch.dylib             	0x00007fff809fb40b _dispatch_client_callout + 8
13  libdispatch.dylib             	0x00007fff80a0003b _dispatch_queue_drain + 754
14  libdispatch.dylib             	0x00007fff80a06707 _dispatch_queue_invoke + 549
15  libdispatch.dylib             	0x00007fff809fed53 _dispatch_root_queue_drain + 538
16  libdispatch.dylib             	0x00007fff809feb00 _dispatch_worker_thread3 + 91
17  libsystem_pthread.dylib       	0x00007fff8c4094de _pthread_wqthread + 1129
18  libsystem_pthread.dylib       	0x00007fff8c407341 start_wqthread + 13

Thread 11:
0   libsystem_kernel.dylib        	0x00007fff878a15e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff8c409578 _pthread_wqthread + 1283
2   libsystem_pthread.dylib       	0x00007fff8c407341 start_wqthread + 13

Thread 12:
0   libsystem_kernel.dylib        	0x00007fff878a15e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff8c409578 _pthread_wqthread + 1283
2   libsystem_pthread.dylib       	0x00007fff8c407341 start_wqthread + 13

Thread 8 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000100  rbx: 0x0000000000000000  rcx: 0x000000000000fffc  rdx: 0x0000000000000000
  rdi: 0x00007000003a2ec0  rsi: 0x0000000000000000  rbp: 0x00007000003a2ef0  rsp: 0x00007000003a2ce0
   r8: 0x0000000000000100   r9: 0x0000000000000000  r10: 0x00007fff9758fd01  r11: 0x0000000000000228
  r12: 0x0000000000010000  r13: 0x0000000000000000  r14: 0x0000000000000001  r15: 0x0000000000000000
  rip: 0x000000010f4f1ff8  rfl: 0x0000000000010246  cr2: 0x0000000108b780f0
  
Logical CPU:     2
Error Code:      0x00000000
Trap Number:     0


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

Re: Scan Tailor "Experimental"

Post by Tulon »

It must be some other division then.

Can you make a debug build to get a more precise crash location? You'll need to pass "-DCMAKE_BUILD_TYPE=Debug" option to cmake.
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.
Tulon
Posts: 687
Joined: 03 Oct 2009, 06:13
Number of books owned: 0
Location: London, UK
Contact:

Re: Scan Tailor "Experimental"

Post by Tulon »

Actually, it turns out that:

Code: Select all

std::max<size_t>(1, device.getInfo<CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE>())
is not enough to get rid of that division by zero. Make it:

Code: Select all

std::max<size_t>(16, device.getInfo<CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE>())
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.
louiscan
Posts: 14
Joined: 10 Apr 2015, 17:35
Number of books owned: 0
Country: USA

Re: Scan Tailor "Experimental"

Post by louiscan »

OK - that did it. It successfully dewarped and finished output. Thanks!
Tulon
Posts: 687
Joined: 03 Oct 2009, 06:13
Number of books owned: 0
Location: London, UK
Contact:

Re: Scan Tailor "Experimental"

Post by Tulon »

I'll make a proper fix in a few days then.
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.
robertlaing
Posts: 6
Joined: 06 Mar 2014, 18:53
E-book readers owned: kindle, android
Number of books owned: 0
Country: italy

Re: Scan Tailor "Experimental"

Post by robertlaing »

hi,
may i ask you more detailed information about how you managed to compile on osx?
thanks!

louiscan wrote:I'm using:

OS X 10.11.4

Xcode version 7.3

Qt 5.6.0 (installed via homebrew; for some reason, my prior install had problems)

cmake 3.4.3

complete log:

Code: Select all

➜  scantailor-EXPERIMENTAL_2016_02_22 cmake . -DCMAKE_PREFIX_PATH=/usr/local/Cellar/qt5/5.6.0
-- The C compiler identification is AppleClang 7.3.0.7030029
-- The CXX compiler identification is AppleClang 7.3.0.7030029
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenGL: /System/Library/Frameworks/OpenGL.framework
-- Looking for CL_VERSION_2_0
-- Looking for CL_VERSION_2_0 - not found
-- Looking for CL_VERSION_1_2
-- Looking for CL_VERSION_1_2 - not found
-- Looking for CL_VERSION_1_1
-- Looking for CL_VERSION_1_1 - not found
-- Looking for CL_VERSION_1_0
-- Looking for CL_VERSION_1_0 - not found
-- Found OpenCL: /System/Library/Frameworks/OpenCL.framework
-- Found Eigen3: /usr/local/include/eigen3 (Required is at least version "2.91.0")
-- Boost version: 1.60.0
-- Found the following Boost libraries:
--   unit_test_framework
--   prg_exec_monitor
-- Checking pthreads with CFLAGS="" and LIBS="" -- yes
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22
➜  scantailor-EXPERIMENTAL_2016_02_22 make
Scanning dependencies of target compile_translations
[  0%] Generating scantailor_bg.qm
Updating '/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/scantailor_bg.qm'...
    Generated 314 translation(s) (275 finished and 39 unfinished)
    Ignored 41 untranslated source text(s)
[  0%] Generating scantailor_cs.qm
Updating '/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/scantailor_cs.qm'...
    Generated 307 translation(s) (270 finished and 37 unfinished)
    Ignored 48 untranslated source text(s)
[  0%] Generating scantailor_de.qm
Updating '/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/scantailor_de.qm'...
    Generated 355 translation(s) (355 finished and 0 unfinished)
[  0%] Generating scantailor_es.qm
Updating '/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/scantailor_es.qm'...
    Generated 312 translation(s) (273 finished and 39 unfinished)
    Ignored 43 untranslated source text(s)
[  1%] Generating scantailor_fr.qm
Updating '/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/scantailor_fr.qm'...
    Generated 261 translation(s) (191 finished and 70 unfinished)
    Ignored 94 untranslated source text(s)
[  1%] Generating scantailor_hr.qm
Updating '/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/scantailor_hr.qm'...
    Generated 322 translation(s) (318 finished and 4 unfinished)
    Ignored 33 untranslated source text(s)
[  1%] Generating scantailor_it.qm
Updating '/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/scantailor_it.qm'...
    Generated 255 translation(s) (192 finished and 63 unfinished)
    Ignored 100 untranslated source text(s)
[  1%] Generating scantailor_ja.qm
Updating '/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/scantailor_ja.qm'...
    Generated 313 translation(s) (275 finished and 38 unfinished)
    Ignored 42 untranslated source text(s)
[  2%] Generating scantailor_pl.qm
Updating '/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/scantailor_pl.qm'...
    Generated 272 translation(s) (226 finished and 46 unfinished)
    Ignored 83 untranslated source text(s)
[  2%] Generating scantailor_pt_BR.qm
Updating '/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/scantailor_pt_BR.qm'...
    Generated 311 translation(s) (273 finished and 38 unfinished)
    Ignored 44 untranslated source text(s)
[  2%] Generating scantailor_ro.qm
Updating '/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/scantailor_ro.qm'...
    Generated 353 translation(s) (0 finished and 353 unfinished)
    Ignored 2 untranslated source text(s)
[  2%] Generating scantailor_ru.qm
Updating '/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/scantailor_ru.qm'...
    Generated 311 translation(s) (275 finished and 36 unfinished)
    Ignored 44 untranslated source text(s)
[  2%] Generating scantailor_sk.qm
Updating '/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/scantailor_sk.qm'...
    Generated 267 translation(s) (223 finished and 44 unfinished)
    Ignored 88 untranslated source text(s)
[  3%] Generating scantailor_uk.qm
Updating '/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/scantailor_uk.qm'...
    Generated 314 translation(s) (275 finished and 39 unfinished)
    Ignored 41 untranslated source text(s)
[  3%] Generating scantailor_zh_CN.qm
Updating '/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/scantailor_zh_CN.qm'...
    Generated 324 translation(s) (320 finished and 4 unfinished)
    Ignored 31 untranslated source text(s)
[  3%] Generating scantailor_zh_TW.qm
Updating '/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/scantailor_zh_TW.qm'...
    Generated 261 translation(s) (192 finished and 69 unfinished)
    Ignored 94 untranslated source text(s)
[  3%] Built target compile_translations
Scanning dependencies of target scantailor_automoc
[  3%] Automatic moc for target scantailor
Generating moc_Application.cpp
Generating moc_MainWindow.cpp
Generating moc_NewOpenProjectPanel.cpp
Generating moc_OutOfMemoryDialog.cpp
Generating moc_ProjectCreationContext.cpp
Generating moc_ProjectFilesDialog.cpp
Generating moc_ProjectOpeningContext.cpp
Generating moc_RelinkablePathVisualization.cpp
Generating moc_RelinkingDialog.cpp
Generating moc_SettingsDialog.cpp
Generating moc_StageListView.cpp
Generating moc_SystemLoadWidget.cpp
Generating moc_ThumbnailSequence.cpp
[  3%] Built target scantailor_automoc
Scanning dependencies of target stcore_automoc
[  4%] Automatic moc for target stcore
Generating moc_BasicImageView.cpp
Generating moc_ErrorWidget.cpp
Generating moc_FilterOptionsWidget.cpp
Generating moc_ImageViewBase.cpp
Generating moc_OutOfMemoryHandler.cpp
Generating moc_ProjectPages.cpp
Generating moc_TabbedDebugImages.cpp
Generating moc_VectorFieldImageView.cpp
Generating moc_WorkerThreadPool.cpp
[  4%] Built target stcore_automoc
Scanning dependencies of target toplevel_ui_sources
[  4%] Generating ui_AboutDialog.h
[  4%] Generating ui_BatchProcessingLowerPanel.h
[  4%] Generating ui_ErrorWidget.h
[  4%] Generating ui_LoadFilesStatusDialog.h
[  5%] Generating ui_MainWindow.h
[  5%] Generating ui_NewOpenProjectPanel.h
[  5%] Generating ui_OutOfMemoryDialog.h
[  5%] Generating ui_ProjectFilesDialog.h
[  5%] Generating ui_RelinkingDialog.h
[  6%] Generating ui_RemovePagesDialog.h
[  6%] Generating ui_SettingsDialog.h
[  6%] Generating ui_SystemLoadWidget.h
[  6%] Built target toplevel_ui_sources
Scanning dependencies of target stcore
[  6%] Building CXX object CMakeFiles/stcore.dir/BackgroundExecutor.cpp.o
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/BackgroundExecutor.cpp:19:
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/./BackgroundExecutor.h:30:2: warning: deleted function definitions are a C++11
      extension [-Wc++11-extensions]
        DECLARE_NON_COPYABLE(BackgroundExecutor)
        ^
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/foundation/NonCopyable.h:25:23: note: expanded from macro 'DECLARE_NON_COPYABLE'
Class(Class const&) = delete; \
                      ^
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/BackgroundExecutor.cpp:19:
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/./BackgroundExecutor.h:30:2: warning: deleted function definitions are a C++11
      extension [-Wc++11-extensions]
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/foundation/NonCopyable.h:26:34: note: expanded from macro 'DECLARE_NON_COPYABLE'
Class& operator=(Class const&) = delete;
                                 ^
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/BackgroundExecutor.cpp:20:
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/./OutOfMemoryHandler.h:31:2: warning: deleted function definitions are a C++11
      extension [-Wc++11-extensions]
        DECLARE_NON_COPYABLE(OutOfMemoryHandler)
        ^
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/foundation/NonCopyable.h:25:23: note: expanded from macro 'DECLARE_NON_COPYABLE'
Class(Class const&) = delete; \
                      ^
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/BackgroundExecutor.cpp:20:
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/./OutOfMemoryHandler.h:31:2: warning: deleted function definitions are a C++11
      extension [-Wc++11-extensions]
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/foundation/NonCopyable.h:26:34: note: expanded from macro 'DECLARE_NON_COPYABLE'
Class& operator=(Class const&) = delete;
                                 ^
4 warnings generated.
[  6%] Building CXX object CMakeFiles/stcore.dir/OpenGLSupport.cpp.o
[  6%] Building CXX object CMakeFiles/stcore.dir/PixmapRenderer.cpp.o
[  7%] Building CXX object CMakeFiles/stcore.dir/BubbleAnimation.cpp.o
[  7%] Building CXX object CMakeFiles/stcore.dir/ProcessingIndicationWidget.cpp.o
[  7%] Building CXX object CMakeFiles/stcore.dir/NonOwningWidget.cpp.o
[  7%] Building CXX object CMakeFiles/stcore.dir/ContentBox.cpp.o
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/ContentBox.cpp:22:
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/./imageproc/AbstractImageTransform.h:23:
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/./acceleration/AcceleratableOperations.h:22:
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/foundation/Grid.h:54:11: warning: rvalue references are a C++11 extension
      [-Wc++11-extensions]
        Grid(Grid&& other);
                 ^
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/foundation/Grid.h:64:22: warning: rvalue references are a C++11 extension
      [-Wc++11-extensions]
        Grid& operator=(Grid&& other);
                            ^
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/foundation/Grid.h:176:22: warning: rvalue references are a C++11 extension
      [-Wc++11-extensions]
Grid<Node>::Grid(Grid&& other)
                     ^
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/foundation/Grid.h:192:27: warning: rvalue references are a C++11 extension
      [-Wc++11-extensions]
Grid<Node>::operator=(Grid&& other)
                          ^
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/foundation/Grid.h:250:33: error: expected '(' for function-style cast or type
      construction
        return GridAccessor<Node const>{m_pData, m_stride, m_width, m_height};
               ~~~~~~~~~~~~~~~~~~~~~~~~^
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/foundation/Grid.h:257:27: error: expected '(' for function-style cast or type
      construction
        return GridAccessor<Node>{m_pData, m_stride, m_width, m_height};
               ~~~~~~~~~~~~~~~~~~^
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/ContentBox.cpp:22:
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/./imageproc/AbstractImageTransform.h:23:
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/./acceleration/AcceleratableOperations.h:24:
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/./imageproc/BinaryImage.h:347:13: error: no type named 'tuple' in namespace 'std'
inline std::tuple<int, int> extractDimensions(BinaryImage const& image)
       ~~~~~^
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/./imageproc/BinaryImage.h:347:18: error: expected unqualified-id
inline std::tuple<int, int> extractDimensions(BinaryImage const& image)
                 ^
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/ContentBox.cpp:22:
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/./imageproc/AbstractImageTransform.h:23:
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/./acceleration/AcceleratableOperations.h:28:
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/./dewarping/CylindricalSurfaceDewarper.h:23:
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/math/HomographicTransform.h:108:31: warning: rvalue references are a C++11
      extension [-Wc++11-extensions]
        void solveForDeriv(T deriv, F&& sink) const;
                                     ^
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/math/HomographicTransform.h:143:2: warning: 'auto' type specifier is a C++11
      extension [-Wc++11-extensions]
        auto const& m = this->mat();
        ^
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/math/HomographicTransform.h:151:2: warning: 'auto' type specifier is a C++11
      extension [-Wc++11-extensions]
        auto const& m = this->mat();
        ^
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/math/HomographicTransform.h:159:2: warning: 'auto' type specifier is a C++11
      extension [-Wc++11-extensions]
        auto const& m = this->mat();
        ^
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/math/HomographicTransform.h:168:2: warning: 'auto' type specifier is a C++11
      extension [-Wc++11-extensions]
        auto const& m = this->mat();
        ^
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/math/HomographicTransform.h:176:53: warning: rvalue references are a C++11
      extension [-Wc++11-extensions]
HomographicTransform<1, T>::solveForDeriv(T deriv, F&& sink) const
                                                    ^
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/math/HomographicTransform.h:178:2: warning: 'auto' type specifier is a C++11
      extension [-Wc++11-extensions]
        auto const& m = this->mat();
        ^
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/ContentBox.cpp:22:
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/./imageproc/AbstractImageTransform.h:23:
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/./acceleration/AcceleratableOperations.h:118:45: error: a space is required between
      consecutive right angle brackets (use '> >')
        virtual std::pair<Grid<float>, Grid<uint8_t>> textFilterBank(
                                                   ^~
                                                   > >
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/./acceleration/AcceleratableOperations.h:204:24: error: a space is required between
      consecutive right angle brackets (use '> >')
                std::vector<Grid<char>> const& patterns) = 0;
                                     ^~
                                     > >
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/ContentBox.cpp:40:2: warning: 'auto' type specifier is a C++11 extension
      [-Wc++11-extensions]
        auto const mapper(transform.backwardMapper());
        ^
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/ContentBox.cpp:69:2: warning: 'auto' type specifier is a C++11 extension
      [-Wc++11-extensions]
        auto less = [](QPointF const& lhs, QPointF const& rhs) {
        ^
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/ContentBox.cpp:69:14: error: expected expression
        auto less = [](QPointF const& lhs, QPointF const& rhs) {
                    ^
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/ContentBox.cpp:100:2: warning: 'auto' type specifier is a C++11 extension
      [-Wc++11-extensions]
        auto const mapper(transform.forwardMapper());
        ^
14 warnings and 7 errors generated.
make[2]: *** [CMakeFiles/stcore.dir/ContentBox.cpp.o] Error 1
make[1]: *** [CMakeFiles/stcore.dir/all] Error 2
make: *** [all] Error 2


louiscan
Posts: 14
Joined: 10 Apr 2015, 17:35
Number of books owned: 0
Country: USA

Re: Scan Tailor "Experimental"

Post by louiscan »

Yes, that looks familiar! Try adding -DCMAKE_CXX_FLAGS=-std=c++11
robertlaing
Posts: 6
Joined: 06 Mar 2014, 18:53
E-book readers owned: kindle, android
Number of books owned: 0
Country: italy

Re: Scan Tailor "Experimental"

Post by robertlaing »

louiscan wrote:Yes, that looks familiar! Try adding -DCMAKE_CXX_FLAGS=-std=c++11
thanks
robertlaing
Posts: 6
Joined: 06 Mar 2014, 18:53
E-book readers owned: kindle, android
Number of books owned: 0
Country: italy

Re: Scan Tailor "Experimental"

Post by robertlaing »

louiscan wrote:Yes, that looks familiar! Try adding -DCMAKE_CXX_FLAGS=-std=c++11
ok, but this time i got errors on opencl. there is something to patch?
thanks

Code: Select all

[ 91%] Building CXX object acceleration/opencl/CMakeFiles/opencl.dir/OpenCLGaussBlur.cpp.o
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLGaussBlur.cpp:19:
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLGaussBlur.h:22:
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLGrid.h:25:
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/khronos/CL/cl2.hpp:4533:25: warning: 'clCreateImage2D' is deprecated: first
      deprecated in OS X 10.8 [-Wdeprecated-declarations]
            object_ = ::clCreateImage2D(
                        ^
/System/Library/Frameworks/OpenCL.framework/Headers/cl.h:1170:1: note: 'clCreateImage2D' has been explicitly marked deprecated here
clCreateImage2D(cl_context              /* context */,
^
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLGaussBlur.cpp:19:
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLGaussBlur.h:22:
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLGrid.h:25:
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/khronos/CL/cl2.hpp:4800:3: warning: 'weak_import' attribute only applies to
      variables and functions [-Wignored-attributes]
} CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
  ^
/System/Library/Frameworks/OpenCL.framework/Headers/cl_platform.h:63:57: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED'
        #define CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED   CL_EXTENSION_WEAK_LINK AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER_BUT_DEPRECATED_IN_MAC_OS...
                                                        ^
/System/Library/Frameworks/OpenCL.framework/Headers/cl_platform.h:49:57: note: expanded from macro 'CL_EXTENSION_WEAK_LINK'
    #define CL_EXTENSION_WEAK_LINK       __attribute__((weak_import))
                                                        ^
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLGaussBlur.cpp:19:
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLGaussBlur.h:22:
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLGrid.h:25:
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/khronos/CL/cl2.hpp:4966:25: warning: 'clCreateImage3D' is deprecated: first
      deprecated in OS X 10.8 [-Wdeprecated-declarations]
            object_ = ::clCreateImage3D(
                        ^
/System/Library/Frameworks/OpenCL.framework/Headers/cl.h:1180:1: note: 'clCreateImage3D' has been explicitly marked deprecated here
clCreateImage3D(cl_context              /* context */,
^
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLGaussBlur.cpp:19:
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLGaussBlur.h:22:
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLGrid.h:25:
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/khronos/CL/cl2.hpp:5056:21: warning: 'clCreateFromGLTexture3D' is
      deprecated: first deprecated in OS X 10.8 [-Wdeprecated-declarations]
        object_ = ::clCreateFromGLTexture3D(
                    ^
/System/Library/Frameworks/OpenCL.framework/Headers/cl_gl.h:116:1: note: 'clCreateFromGLTexture3D' has been explicitly marked deprecated here
clCreateFromGLTexture3D(cl_context      /* context */,
^
4 warnings generated.
[ 92%] Building CXX object acceleration/opencl/CMakeFiles/opencl.dir/OpenCLTextFilterBank.cpp.o
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLTextFilterBank.cpp:19:
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLTextFilterBank.h:22:
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLGrid.h:25:
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/khronos/CL/cl2.hpp:4533:25: warning: 'clCreateImage2D' is deprecated: first
      deprecated in OS X 10.8 [-Wdeprecated-declarations]
            object_ = ::clCreateImage2D(
                        ^
/System/Library/Frameworks/OpenCL.framework/Headers/cl.h:1170:1: note: 'clCreateImage2D' has been explicitly marked deprecated here
clCreateImage2D(cl_context              /* context */,
^
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLTextFilterBank.cpp:19:
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLTextFilterBank.h:22:
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLGrid.h:25:
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/khronos/CL/cl2.hpp:4800:3: warning: 'weak_import' attribute only applies to
      variables and functions [-Wignored-attributes]
} CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
  ^
/System/Library/Frameworks/OpenCL.framework/Headers/cl_platform.h:63:57: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED'
        #define CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED   CL_EXTENSION_WEAK_LINK AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER_BUT_DEPRECATED_IN_MAC_OS...
                                                        ^
/System/Library/Frameworks/OpenCL.framework/Headers/cl_platform.h:49:57: note: expanded from macro 'CL_EXTENSION_WEAK_LINK'
    #define CL_EXTENSION_WEAK_LINK       __attribute__((weak_import))
                                                        ^
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLTextFilterBank.cpp:19:
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLTextFilterBank.h:22:
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLGrid.h:25:
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/khronos/CL/cl2.hpp:4966:25: warning: 'clCreateImage3D' is deprecated: first
      deprecated in OS X 10.8 [-Wdeprecated-declarations]
            object_ = ::clCreateImage3D(
                        ^
/System/Library/Frameworks/OpenCL.framework/Headers/cl.h:1180:1: note: 'clCreateImage3D' has been explicitly marked deprecated here
clCreateImage3D(cl_context              /* context */,
^
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLTextFilterBank.cpp:19:
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLTextFilterBank.h:22:
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLGrid.h:25:
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/khronos/CL/cl2.hpp:5056:21: warning: 'clCreateFromGLTexture3D' is
      deprecated: first deprecated in OS X 10.8 [-Wdeprecated-declarations]
        object_ = ::clCreateFromGLTexture3D(
                    ^
/System/Library/Frameworks/OpenCL.framework/Headers/cl_gl.h:116:1: note: 'clCreateFromGLTexture3D' has been explicitly marked deprecated here
clCreateFromGLTexture3D(cl_context      /* context */,
^
4 warnings generated.
[ 92%] Building CXX object acceleration/opencl/CMakeFiles/opencl.dir/OpenCLDewarp.cpp.o
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLDewarp.cpp:19:
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLDewarp.h:28:
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/khronos/CL/cl2.hpp:4533:25: warning: 'clCreateImage2D' is deprecated: first
      deprecated in OS X 10.8 [-Wdeprecated-declarations]
            object_ = ::clCreateImage2D(
                        ^
/System/Library/Frameworks/OpenCL.framework/Headers/cl.h:1170:1: note: 'clCreateImage2D' has been explicitly marked deprecated here
clCreateImage2D(cl_context              /* context */,
^
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLDewarp.cpp:19:
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLDewarp.h:28:
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/khronos/CL/cl2.hpp:4800:3: warning: 'weak_import' attribute only applies to
      variables and functions [-Wignored-attributes]
} CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
  ^
/System/Library/Frameworks/OpenCL.framework/Headers/cl_platform.h:63:57: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED'
        #define CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED   CL_EXTENSION_WEAK_LINK AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER_BUT_DEPRECATED_IN_MAC_OS...
                                                        ^
/System/Library/Frameworks/OpenCL.framework/Headers/cl_platform.h:49:57: note: expanded from macro 'CL_EXTENSION_WEAK_LINK'
    #define CL_EXTENSION_WEAK_LINK       __attribute__((weak_import))
                                                        ^
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLDewarp.cpp:19:
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLDewarp.h:28:
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/khronos/CL/cl2.hpp:4966:25: warning: 'clCreateImage3D' is deprecated: first
      deprecated in OS X 10.8 [-Wdeprecated-declarations]
            object_ = ::clCreateImage3D(
                        ^
/System/Library/Frameworks/OpenCL.framework/Headers/cl.h:1180:1: note: 'clCreateImage3D' has been explicitly marked deprecated here
clCreateImage3D(cl_context              /* context */,
^
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLDewarp.cpp:19:
In file included from /Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLDewarp.h:28:
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/khronos/CL/cl2.hpp:5056:21: warning: 'clCreateFromGLTexture3D' is
      deprecated: first deprecated in OS X 10.8 [-Wdeprecated-declarations]
        object_ = ::clCreateFromGLTexture3D(
                    ^
/System/Library/Frameworks/OpenCL.framework/Headers/cl_gl.h:116:1: note: 'clCreateFromGLTexture3D' has been explicitly marked deprecated here
clCreateFromGLTexture3D(cl_context      /* context */,
^
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLDewarp.cpp:143:31: error: non-constant-expression cannot be narrowed
      from type 'int' to 'value_type' (aka 'unsigned long') in initializer list [-Wc++11-narrowing]
        std::array<size_t, 3> region{src.width(), src.height(), 1};
                                     ^~~~~~~~~~~
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLDewarp.cpp:143:31: note: insert an explicit cast to silence this issue
        std::array<size_t, 3> region{src.width(), src.height(), 1};
                                     ^~~~~~~~~~~
                                     static_cast<value_type>( )
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLDewarp.cpp:143:44: error: non-constant-expression cannot be narrowed
      from type 'int' to 'value_type' (aka 'unsigned long') in initializer list [-Wc++11-narrowing]
        std::array<size_t, 3> region{src.width(), src.height(), 1};
                                                  ^~~~~~~~~~~~
/Users/robert/Downloads/scantailor-EXPERIMENTAL_2016_02_22/acceleration/opencl/OpenCLDewarp.cpp:143:44: note: insert an explicit cast to silence this issue
        std::array<size_t, 3> region{src.width(), src.height(), 1};
                                                  ^~~~~~~~~~~~
                                                  static_cast<value_type>( )
4 warnings and 2 errors generated.
make[2]: *** [acceleration/opencl/CMakeFiles/opencl.dir/OpenCLDewarp.cpp.o] Error 1
make[1]: *** [acceleration/opencl/CMakeFiles/opencl.dir/all] Error 2
make: *** [all] Error 2
Post Reply