I had previously compiled Ocropus from the Mercurial repository with
multithreading working but now when I tried to compile the newest
version the multithreading support for training has gone away.

I am trying to run the script

ocropus trainseg my.model lines


Is this related to the disabling of OpenMP in the new version ?
See Revision: ba9ff20a70

Previous version from around 10. june:
ocropus Revision: 2e552379084f
iulib Revision: 8015520179e9

I also noticed that compiling Ocropus and Iulib with -O2 disabled the
multithreading.

However if I try to compile the new version with -O3 I get this error.

g++ -o ocr-utils/bookstore.o -c -DDATADIR='"/usr/local/share/ocropus"'
-g -fPIC -O3 -Wall -Wno-sign-compare -Wno-write-strings -
D__warn_unused_result__=__far__ -D_BACKWARD_BACKWARD_WARNING_H=1 -
fopenmp -DHAVE_LEPTONICA -I/usr/local/include -I/tmp/o/include -I/usr/
local/include -I/usr/include/leptonica -I/usr/local/include/leptonica -
I/usr/local/include/leptonica -Iinclude -Iocr-utils ocr-utils/
bookstore.cc
ocr-utils/bookstore.cc: In member function 'virtual int
ocropus::OldBookStore::get_max_page(const char*)':
ocr-utils/bookstore.cc:34: error: invalid exit from OpenMP structured
block
ocr-utils/bookstore.cc: In member function 'virtual int
ocropus::OldBookStore::linesOnPage(int)':
ocr-utils/bookstore.cc:58: error: invalid exit from OpenMP structured
block
ocr-utils/bookstore.cc: In member function 'virtual int
ocropus::OldBookStore::getLineId(int, int)':
ocr-utils/bookstore.cc:63: error: invalid exit from OpenMP structured
block
ocr-utils/bookstore.cc: In member function 'virtual colib::iucstring
ocropus::OldBookStore::path(int, int, const char*, const char*)':
ocr-utils/bookstore.cc:93: error: invalid exit from OpenMP structured
block
ocr-utils/bookstore.cc: In member function 'virtual colib::iucstring
ocropus::BookStore::path(int, int, const char*, const char*)':
ocr-utils/bookstore.cc:207: error: invalid exit from OpenMP structured
block
scons: *** [ocr-utils/bookstore.o] Error 1
scons: building terminated because of errors.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ocropus" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/ocropus?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to