{"id":145,"date":"2015-03-01T13:05:27","date_gmt":"2015-03-01T18:05:27","guid":{"rendered":"http:\/\/www.mgreene.org\/?p=145"},"modified":"2015-03-01T13:05:27","modified_gmt":"2015-03-01T18:05:27","slug":"gnome-ocr-and-other-stuff","status":"publish","type":"post","link":"https:\/\/www.mgreene.org\/?p=145","title":{"rendered":"Gnome OCR and Other Stuff"},"content":{"rendered":"<p>I was looking for an OCR app to use with Gnome\/Gentoo and decided to give <a href=\"https:\/\/wiki.gnome.org\/Apps\/OCRFeeder\" target=\"_blank\" rel=\"noopener noreferrer\">OCRFeeder<\/a> a try. \u00a0It is available in the an overlay which makes it easier to keep up with for updates. \u00a0It is found in the <a href=\"http:\/\/gpo.zugaina.org\/media-gfx\/ocrfeeder\/USE#ptabs\" target=\"_blank\" rel=\"noopener noreferrer\">anyc<\/a> overlay.<\/p>\n<p>layman -a anyc \u00a0then \u00a0emerge ocrfeeder (have to unmask)<\/p>\n<p>WTF!!! A lot of rebuilds and new packages &#8230; that means probable trouble. \u00a0Yep, mplayer2 will not compile. \u00a0One of the updates was for ffmpeg and that had me worried that I had run into my <a href=\"https:\/\/blogs.gentoo.org\/scarabeus\/2013\/01\/15\/libav-going-to-be-default-provider-for-your-codec-experience\/\" target=\"_blank\" rel=\"noopener noreferrer\">first libav&#8211;ffmpeg blowup<\/a>\u00a0because I use ffmpeg rather than the mandated libav.<\/p>\n<p>So, I unmask\u00a0mplayer2-2.0_p20131009-r1 and still get the error:<\/p>\n<p><em>libmpdemux\/aviheader.c: In function &#8216;read_avi_header&#8217;:<\/em><br \/>\n<em> libmpdemux\/aviheader.c:600:8: warning: ignoring return value of &#8216;fread&#8217;, declared with attribute warn_unused_result [-Wunused-result]<\/em><br \/>\n<em> fread(&amp;magic, 6, 1, fp);<\/em><br \/>\n<em> ^<\/em><br \/>\n<em> libmpdemux\/aviheader.c:605:8: warning: ignoring return value of &#8216;fread&#8217;, declared with attribute warn_unused_result [-Wunused-result]<\/em><br \/>\n<em> fread(&amp;priv-&gt;idx_size, sizeof(priv-&gt;idx_size), 1, fp);<\/em><br \/>\n<em> ^<\/em><br \/>\n<em> libmpdemux\/aviheader.c:616:10: warning: ignoring return value of &#8216;fread&#8217;, declared with attribute warn_unused_result [-Wunused-result]<\/em><br \/>\n<em> fread(idx, sizeof(AVIINDEXENTRY), 1, fp);<\/em><br \/>\n<em> ^<\/em><br \/>\n<em> libmpdemux\/demuxer.c:48:2: error: #error MP_INPUT_BUFFER_PADDING_SIZE is too small!<\/em><br \/>\n<em> #error MP_INPUT_BUFFER_PADDING_SIZE is too small!<\/em><br \/>\n<em> ^<\/em><br \/>\n<em> Makefile:536: recipe for target &#8216;libmpdemux\/demuxer.o&#8217; failed<\/em><\/p>\n<p>Well, I try emerge @preserve-rebuild without mplayer2 and now I get this for \/vlc-2.1.2:<\/p>\n<p><em>checking for AVCODEC&#8230; yes<\/em><br \/>\n<em> configure: error: libavcodec versions 56 and later are not supported yet.<\/em><\/p>\n<p>Yep, vlc is giving me issues. \u00a0Now I am on the slippery slide of getting off the Gentoo path, so I up the stakes, I unmask\u00a0media-video\/vlc-2.1.5-r1 and try again. \u00a0You 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.<\/p>\n<p>Great, now k3b errors on compile! \u00a0Unmask\u00a0k3b-2.0.3-r1 and emerge without problems. \u00a0Okay, so where am I now? \u00a0Yep, back to this mplayer2 issue:<\/p>\n<p><em>libmpdemux\/demuxer.c:48:2: error: #error MP_INPUT_BUFFER_PADDING_SIZE is too small!<\/em><br \/>\n<em> #error MP_INPUT_BUFFER_PADDING_SIZE is too small!<\/em><\/p>\n<p>I don&#8217;t feel like going to battle for mplayer because I only use vlc or others, so a quick:<\/p>\n<p>equery d mplayer2<\/p>\n<p>results in:<\/p>\n<p><em>\u00a0 * These packages depend on mplayer2:<\/em><br \/>\n<em>media-video\/smplayer-14.9.0-r1 (media-video\/mplayer2[libass,png,X])<\/em><\/p>\n<p>So:<\/p>\n<p><em>emerge &#8211;unmerge mplayer2 smplayer\u00a0<\/em><\/p>\n<p>Now what was I doing? \u00a0Yep, OCRFeeder install. \u00a0Well, that went okay finally, but OCR engines have to be installed. \u00a0I installed gocr, ocrad, <a href=\"http:\/\/en.wikipedia.org\/wiki\/CuneiForm_(software)\" target=\"_blank\" rel=\"noopener noreferrer\">cuneiform<\/a>, and <a href=\"https:\/\/code.google.com\/p\/tesseract-ocr\/\" target=\"_blank\" rel=\"noopener noreferrer\">tesseract<\/a>. \u00a0OCRFeeder lets the user select the engine.<\/p>\n<p>Another day in Gentoo world &#8230;.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was looking for an OCR app to use with Gnome\/Gentoo and decided to give OCRFeeder a try. \u00a0It is available in the an overlay which makes it easier to [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Gnome OCR and Other Stuff http:\/\/wp.me\/p5J7td-2l","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_links_to":"","_links_to_target":""},"categories":[12,14],"tags":[57,59,66],"class_list":["post-145","post","type-post","status-publish","format-standard","hentry","category-gentoo","category-gnome","tag-gentoo","tag-gnome","tag-ocr"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":743,"url":"https:\/\/www.mgreene.org\/?p=743","url_meta":{"origin":145,"position":0},"title":"Gentoo Gnome 44 with Kernel 6.2.8","author":"Mike","date":"March 26, 2023","format":false,"excerpt":"Gnome 44 is in the Gentoo repository, not stable yet. The transition was not as painful as my early transition to Gnome 43. The only issue so far has been gnome-clocks, but that is very minor. Most extensions worked, had a like replacement, or after tweaking the metadata.json file version.\u2026","rel":"","context":"In &quot;Gentoo&quot;","block_context":{"text":"Gentoo","link":"https:\/\/www.mgreene.org\/?cat=12"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2023\/03\/gnome44.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2023\/03\/gnome44.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2023\/03\/gnome44.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":307,"url":"https:\/\/www.mgreene.org\/?p=307","url_meta":{"origin":145,"position":1},"title":"ASRock J3455-ITX running Gentoo","author":"Mike","date":"December 2, 2018","format":false,"excerpt":"ASRock J3455-ITX running stable Gentoo Gnome and Kernel 4.19.5.","rel":"","context":"In &quot;Gentoo&quot;","block_context":{"text":"Gentoo","link":"https:\/\/www.mgreene.org\/?cat=12"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/wordpress.greenenet.net\/wp-content\/uploads\/2018\/12\/itx_gnome.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/wordpress.greenenet.net\/wp-content\/uploads\/2018\/12\/itx_gnome.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/wordpress.greenenet.net\/wp-content\/uploads\/2018\/12\/itx_gnome.png?resize=525%2C300 1.5x"},"classes":[]},{"id":366,"url":"https:\/\/www.mgreene.org\/?p=366","url_meta":{"origin":145,"position":2},"title":"Gentoo Gnome 3.36","author":"Mike","date":"August 14, 2020","format":false,"excerpt":"","rel":"","context":"In &quot;Gentoo&quot;","block_context":{"text":"Gentoo","link":"https:\/\/www.mgreene.org\/?cat=12"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2020\/08\/Screenshot-from-2020-08-14-17-04-22.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2020\/08\/Screenshot-from-2020-08-14-17-04-22.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2020\/08\/Screenshot-from-2020-08-14-17-04-22.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2020\/08\/Screenshot-from-2020-08-14-17-04-22.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2020\/08\/Screenshot-from-2020-08-14-17-04-22.png?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2020\/08\/Screenshot-from-2020-08-14-17-04-22.png?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":235,"url":"https:\/\/www.mgreene.org\/?p=235","url_meta":{"origin":145,"position":3},"title":"Gnome 3.20","author":"Mike","date":"October 2, 2016","format":false,"excerpt":"Finally, Gnome 3.20 in the Gentoo stable tree.","rel":"","context":"In &quot;Gentoo&quot;","block_context":{"text":"Gentoo","link":"https:\/\/www.mgreene.org\/?cat=12"},"img":{"alt_text":"gnome_320","src":"https:\/\/i0.wp.com\/wordpress.greenenet.net\/wp-content\/uploads\/2016\/10\/gnome_320.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/wordpress.greenenet.net\/wp-content\/uploads\/2016\/10\/gnome_320.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/wordpress.greenenet.net\/wp-content\/uploads\/2016\/10\/gnome_320.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/wordpress.greenenet.net\/wp-content\/uploads\/2016\/10\/gnome_320.png?resize=700%2C400 2x"},"classes":[]},{"id":378,"url":"https:\/\/www.mgreene.org\/?p=378","url_meta":{"origin":145,"position":4},"title":"Gnome 3.38ish on Gentoo","author":"Mike","date":"November 29, 2020","format":false,"excerpt":"","rel":"","context":"In &quot;Gentoo&quot;","block_context":{"text":"Gentoo","link":"https:\/\/www.mgreene.org\/?cat=12"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/wordpress.greenenet.net\/wp-content\/uploads\/2020\/11\/Screenshot-from-2020-11-29-10-10-59.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/wordpress.greenenet.net\/wp-content\/uploads\/2020\/11\/Screenshot-from-2020-11-29-10-10-59.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/wordpress.greenenet.net\/wp-content\/uploads\/2020\/11\/Screenshot-from-2020-11-29-10-10-59.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/wordpress.greenenet.net\/wp-content\/uploads\/2020\/11\/Screenshot-from-2020-11-29-10-10-59.png?resize=700%2C400 2x, https:\/\/i0.wp.com\/wordpress.greenenet.net\/wp-content\/uploads\/2020\/11\/Screenshot-from-2020-11-29-10-10-59.png?resize=1050%2C600 3x"},"classes":[]},{"id":563,"url":"https:\/\/www.mgreene.org\/?p=563","url_meta":{"origin":145,"position":5},"title":"Gnome 40","author":"Mike","date":"April 17, 2021","format":false,"excerpt":"EDIT 16 May 21: gnome-40.0.ebuild is in portage emerge --autounmask-write =gnome-40.0 and etc-update should make it available - good luck! Also - I am having good luck with wayland enabled - so far! The big gnome change from vertical to horizontal.","rel":"","context":"In &quot;Gentoo&quot;","block_context":{"text":"Gentoo","link":"https:\/\/www.mgreene.org\/?cat=12"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2021\/04\/Screenshot-from-2021-04-17-12-17-25.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2021\/04\/Screenshot-from-2021-04-17-12-17-25.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2021\/04\/Screenshot-from-2021-04-17-12-17-25.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2021\/04\/Screenshot-from-2021-04-17-12-17-25.png?resize=700%2C400&ssl=1 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.mgreene.org\/index.php?rest_route=\/wp\/v2\/posts\/145","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mgreene.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mgreene.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mgreene.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mgreene.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=145"}],"version-history":[{"count":0,"href":"https:\/\/www.mgreene.org\/index.php?rest_route=\/wp\/v2\/posts\/145\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.mgreene.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mgreene.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=145"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mgreene.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}