Just discovered that I missed a patch in the README. It should say

To build OCRopus 0.4 on MacOS X

1. Install MacPorts

2. Use MacPorts to install jpeg, tiff, libpng, gsl... I think that's
it.

3. Install source
        $ hg clone http://iulib.googlecode.com/hg iulib
        $ hg clone http://ocropus.googlecode.com/hg ocropus

4. Patch iulib/utils/dgraphics_nosdl.cc
diff -r 8015520179e9 utils/dgraphics_nosdl.cc
--- a/utils/dgraphics_nosdl.cc  Tue Jun 09 23:47:16 2009 +0200
+++ b/utils/dgraphics_nosdl.cc  Thu Jun 18 13:45:34 2009 +0100
@@ -68,4 +68,13 @@

     void dwait() {
     }
+
+    bool dactive() {
+        return false;
+    }
+
+       const char *dsection_set(const char *name) {
+        return name;
+    }
+
 }

5. Patch ocropus/ocr-utils/components.cc

diff -r a23e62d08a19 ocr-utils/components.cc
--- a/ocr-utils/components.cc   Fri Jun 05 07:40:19 2009 +0200
+++ b/ocr-utils/components.cc   Thu Jun 18 20:37:54 2009 +0100
@@ -27,6 +27,8 @@
 #include "iulib/iulib.h"
 #include "components.h"

+extern char **environ;
+
 using namespace colib;

 namespace {


6. Extract ocropus/data/models/default.fst.gz to ocropus/data/models/
default.fst

7. Build the XCode project.
--~--~---------~--~----~------------~-------~--~----~
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