Failed to build ScrollView.jar on MAC OSX

151 views
Skip to first unread message

Fanatico

unread,
Apr 7, 2018, 10:12:02 AM4/7/18
to tesseract-ocr
Hi. I finally got the training from 4.o to work, but I was unable to build the ScrollView.jar so Im currently running the test with "--debug_interval -1". Can someone help Me?

Sistem

Platform: MAC OS X  10.13.3 (installed with brew)
Tesseract: 4.0.0-beta.1
leptonica: 1.75.3
  libjpeg 9c : libpng 1.6.34 : libtiff 4.0.9 : zlib 1.2.11

Steps

First Try

1 - I cloned a new repository from git
2 - Added the "piccolo2d-core-3.0.jar" and "piccolo2d-extras-3.0.jar" files to the java folder
3 - Executed the command
make ScrollView.jar

4 - Got this message from console:
make: *** No rule to make target `ScrollView.jar'.  Stop.

Second Try

1 - Downloaded the files already builded from: https://www.4shared.com/zip/FnP8RSu0/tess_debug_3_02.html
2 - Copied the "piccolo2d-core-3.0.jar", "piccolo2d-extras-3.0.jar" and "ScrollView.jar" to the java folder
3 - Executed the code:
SCROLLVIEW_PATH=~/projects/tesseract/java \
/usr/local/Cellar/tesseract/HEAD-f8e26ee/bin/lstmtraining \
--debug_interval 100 \
--traineddata ~/tesstutorial/eng/eng.traineddata \
--net_spec '[1,36,0,1 Ct3,3,16 Mp3,3 Lfys48 Lfx96 Lrx96 Lfx256 O1c111]' \
--model_output ~/tesstutorial/engoutput/base \
--learning_rate 20e-4 \
--train_listfile ~/tesstutorial/engtrain/eng.training_files.txt \
--eval_listfile ~/tesstutorial/engeval/eng.training_files.txt \
--max_iterations 5000 &>~/tesstutorial/engoutput/basetrain.log

4 - Got this error:
Loaded file /Users/fernandogot/tesstutorial/engoutput/base_checkpoint, unpacking...
Successfully restored trainer from /Users/fernandogot/tesstutorial/engoutput/base_checkpoint
Loaded 72/72 pages (1-72) of document /Users/fernandogot/tesstutorial/eng/eng.Verdana.exp0.lstmf
Loaded 72/72 pages (1-72) of document /Users/fernandogot/tesstutorial/eng/eng.Verdana.exp0.lstmf
Starting sh -c "trap 'kill %1' 0 1 2 ; java -Xms1024m -Xmx2048m -jar /Users/fernandogot/projects/tesseract/java/ScrollView.jar & wait"
Error: Unable to access jarfile /Users/fernandogot/projects/tesseract/java/ScrollView.jar
sh: line 0: kill: %1: no such job

Any idea on how to fix it?

Thanks for reading and for your time!

ShreeDevi Kumar

unread,
Apr 7, 2018, 11:40:29 AM4/7/18
to tesser...@googlegroups.com

From which dir did you try 

make ScrollView.jar

ShreeDevi
____________________________________________________________
भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com

--
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 tesseract-ocr+unsubscribe@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/4bdadb4e-549c-4361-8a83-53199633489a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Fanatico

unread,
Apr 7, 2018, 2:20:21 PM4/7/18
to tesseract-ocr
from the java folder "cd ~/projects/tesseract/java" in my case

ShreeDevi Kumar

unread,
Apr 7, 2018, 2:56:52 PM4/7/18
to tesser...@googlegroups.com
Please try from the main tesseract folder.



--
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 tesseract-oc...@googlegroups.com.

To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.

Fanatico

unread,
Apr 7, 2018, 4:55:39 PM4/7/18
to tesseract-ocr
Same message

make: *** No rule to make target `ScrollView.jar'.  Stop.



Fanatico

unread,
Apr 8, 2018, 5:47:30 AM4/8/18
to tesseract-ocr
I managed to build it, but I needed to clone the repo and build it to use. So I don't recommend to install tesseract using brew
Reply all
Reply to author
Forward
0 new messages