Hi all, Apologies for resurrecting an old thread, but I ran into the same issue and have documented a workaround in this blog post: http://ryanfb.github.io/etc/2014/11/19/installing_tesseract_training_tools_on_mac_os_x.html And the associated modified Homebrew formula: https://github.com/ryanfb/homebrew/blob/tesseract_training/Library/Formula/tesseract.rb
-Ryan On Monday, July 21, 2014 11:36:07 AM UTC-4, Bob Aman wrote: > > I'm getting something pretty similar, and I've now compiled/recompiled in > about 20 different ways with 20 different variations of the assorted > dependencies. Same result. This is on OS X FWIW. > > This is the exact build process I went through: > > brew install icu4c > brew link icu4c --force > brew install leptonica -v 1.70 --with-libtiff --with-jpeg --with-libpng > > > tar -xzvf tesseract-3.03-rc1.tar.gz > cd tesseract-3.03 > ./configure > make > make training > > And trying to run text2image: > > $ training/text2image --list_available_fonts > Error resolving name for ScrollView host --list_available_fonts:8461 > Segmentation fault: 11 > > $ training/text2image localhost --list_available_fonts > Starting sh -c "trap 'kill %1' 0 1 2 ; java -Xms1024m -Xmx2048m > -Djava.library.path=. -cp > ./ScrollView.jar:./piccolo2d-core-3.0.jar:./piccolo2d-extras-3.0.jar > com.google.scrollview.ScrollView & wait" > ScrollView: Waiting for server... > Error: Could not find or load main class com.google.scrollview.ScrollView > sh: line 0: kill: %1: no such job > ScrollView: Waiting for server... > ScrollView: Waiting for server... > ScrollView: Waiting for server... > ScrollView: Waiting for server... > ScrollView: Waiting for server... > ^C > > Regardless of options I pass to training/text2image, it wants a hostname > as the first parameter and segfaults if it doesn't get it. > > Agree that from looking at CPP it probably shouldn't be doing this... > but... it's definitely doing this. :-P > > I wouldn't rule out that it is compiled incorrectly, but the compile steps > I took here aren't particularly unusual or unexpected. > > On Sunday, May 25, 2014 6:37:06 PM UTC+3, Nick White wrote: >> >> Hi Michael. >> >> On Sat, May 24, 2014 at 10:38:57PM -0700, Michael Yang wrote: >> > I'm able to compile the text2image training tool, however, I can't seem >> to get >> > it to work. I've confirmed that the viewer works with the included >> tesseract >> > tests. I've included the output below. Any help is much appreciated! >> >> text2image doesn't use scrollview; you compiled it wrong. Try make >> clean and then make training again. >> >> Nick >> > -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tesseract-ocr. To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/33e4caa5-99f4-44fd-989c-e1706a88e6f0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

