Gnome OCR and Other Stuff
I was looking for an OCR app to use with Gnome/Gentoo and decided to give OCRFeeder a try. It is available in the an overlay which makes it easier to keep up with for updates. It is found in the anyc overlay.
layman -a anyc then emerge ocrfeeder (have to unmask)
WTF!!! A lot of rebuilds and new packages … that means probable trouble. Yep, mplayer2 will not compile. One of the updates was for ffmpeg and that had me worried that I had run into my first libav–ffmpeg blowup because I use ffmpeg rather than the mandated libav.
So, I unmask mplayer2-2.0_p20131009-r1 and still get the error:
libmpdemux/aviheader.c: In function ‘read_avi_header’:
libmpdemux/aviheader.c:600:8: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&magic, 6, 1, fp);
^
libmpdemux/aviheader.c:605:8: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&priv->idx_size, sizeof(priv->idx_size), 1, fp);
^
libmpdemux/aviheader.c:616:10: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(idx, sizeof(AVIINDEXENTRY), 1, fp);
^
libmpdemux/demuxer.c:48:2: error: #error MP_INPUT_BUFFER_PADDING_SIZE is too small!
#error MP_INPUT_BUFFER_PADDING_SIZE is too small!
^
Makefile:536: recipe for target ‘libmpdemux/demuxer.o’ failed
Well, I try emerge @preserve-rebuild without mplayer2 and now I get this for /vlc-2.1.2:
checking for AVCODEC… yes
configure: error: libavcodec versions 56 and later are not supported yet.
Yep, vlc is giving me issues. Now I am on the slippery slide of getting off the Gentoo path, so I up the stakes, I unmask media-video/vlc-2.1.5-r1 and try again. You might ask why jump up to 2.15-r1 and I would reply that if I am going to blow things up badly then I might as well go big.
Great, now k3b errors on compile! Unmask k3b-2.0.3-r1 and emerge without problems. Okay, so where am I now? Yep, back to this mplayer2 issue:
libmpdemux/demuxer.c:48:2: error: #error MP_INPUT_BUFFER_PADDING_SIZE is too small!
#error MP_INPUT_BUFFER_PADDING_SIZE is too small!
I don’t feel like going to battle for mplayer because I only use vlc or others, so a quick:
equery d mplayer2
results in:
* These packages depend on mplayer2:
media-video/smplayer-14.9.0-r1 (media-video/mplayer2[libass,png,X])
So:
emerge –unmerge mplayer2 smplayer
Now what was I doing? Yep, OCRFeeder install. Well, that went okay finally, but OCR engines have to be installed. I installed gocr, ocrad, cuneiform, and tesseract. OCRFeeder lets the user select the engine.
Another day in Gentoo world ….