I've been following the DAS08 course tutorials and I noticed that the materials refer to 'ocroscript', but that was ocropus-0.2, and the current is > 0.4.
Is ocroswig the latest scripting extensions for ocropus? I have been trying to install ocroswig, but I get the following build errors (see below). Using Ubuntu 9.10, ocropus, and iulib from the code repositories. I realized I had to install python-numarry, and python-numpy for Python 2.6. Anything else I might be missing? Thanks! ch...@ubuntu:~/Install/ocropus-ocroswig$ make setup rm -rf *.so *.cxx *.o iulib.py ocropus.py *_wrap.cpp *_wrap.h *_wrap.cxx build *.pyc *.err *~ python setup.py build running build running build_py file iulib.py (for module iulib) not found file ocropus.py (for module ocropus) not found creating build creating build/lib.linux-i686-2.6 creating build/lib.linux-i686-2.6/ocrolib copying ocrolib/misc.py -> build/lib.linux-i686-2.6/ocrolib copying ocrolib/__init__.py -> build/lib.linux-i686-2.6/ocrolib file iulib.py (for module iulib) not found file ocropus.py (for module ocropus) not found running build_ext building '_iulib' extension swigging iulib.i to iulib_wrap.cpp swig -python -c++ -I/usr/local/include -o iulib_wrap.cpp iulib.i creating build/temp.linux-i686-2.6 gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall - Wstrict-prototypes -fPIC -I/usr/local/include -I/usr/include/python2.6 -c iulib_wrap.cpp -o build/temp.linux-i686-2.6/iulib_wrap.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux- i686-2.6/iulib_wrap.o -liulib -ltiff -lpng -ljpeg -lSDL -lSDL_gfx - lSDL_image -lm -o build/lib.linux-i686-2.6/_iulib.so building '_ocropus' extension swigging ocropus.i to ocropus_wrap.cpp swig -python -c++ -I/usr/local/include -o ocropus_wrap.cpp ocropus.i ocropus.i:399: Warning(302): Identifier 'load_component_' redefined (ignored), ocropus.i:384: Warning(302): previous definition of 'load_component_'. gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall - Wstrict-prototypes -fPIC -I/usr/local/include -I/usr/include/python2.6 -c ocropus_wrap.cpp -o build/temp.linux-i686-2.6/ocropus_wrap.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ ocropus_wrap.cpp: In function ‘int skeletal_feature_hack(colib::bytearray&, float, float)’: ocropus_wrap.cpp:3082: error: ‘skeletal_feature_counts’ was not declared in this scope ocropus_wrap.cpp: In function ‘PyObject* _wrap_OutputVector_len_set(PyObject*, PyObject*)’: ocropus_wrap.cpp:3091: error: ‘OutputVector’ was not declared in this scope ocropus_wrap.cpp:3091: error: ‘arg1’ was not declared in this scope ocropus_wrap.cpp:3091: error: expected primary-expression before ‘)’ token ocropus_wrap.cpp:3091: error: expected ‘;’ before numeric constant ocropus_wrap.cpp:3105: error: expected type-specifier before ‘OutputVector’ ocropus_wrap.cpp:3105: error: expected ‘>’ before ‘OutputVector’ ocropus_wrap.cpp:3105: error: expected ‘(’ before ‘OutputVector’ ocropus_wrap.cpp:3105: error: expected primary-expression before ‘>’ token ocropus_wrap.cpp:3105: error: expected ‘)’ before ‘;’ token ocropus_wrap.cpp: In function ‘PyObject* _wrap_OutputVector_len_get(PyObject*, PyObject*)’: ocropus_wrap.cpp:3121: error: ‘OutputVector’ was not declared in this scope ocropus_wrap.cpp:3121: error: ‘arg1’ was not declared in this scope ocropus_wrap.cpp:3121: error: expected primary-expression before ‘)’ token ocropus_wrap.cpp:3121: error: expected ‘;’ before numeric constant ocropus_wrap.cpp:3132: error: expected type-specifier before ‘OutputVector’ ocropus_wrap.cpp:3132: error: expected ‘>’ before ‘OutputVector’ ocropus_wrap.cpp:3132: error: expected ‘(’ before ‘OutputVector’ ocropus_wrap.cpp:3132: error: expected primary-expression before ‘>’ token ocropus_wrap.cpp:3132: error: expected ‘)’ before ‘;’ token ocropus_wrap.cpp: In function ‘PyObject* _wrap_OutputVector_keys_set(PyObject*, PyObject*)’: ocropus_wrap.cpp:3143: error: ‘OutputVector’ was not declared in this scope ocropus_wrap.cpp:3143: error: ‘arg1’ was not declared in this scope ocropus_wrap.cpp:3143: error: expected primary-expression before ‘)’ token ocropus_wrap.cpp:3143: error: expected ‘;’ before numeric constant ocropus_wrap.cpp:3157: error: expected type-specifier before ‘OutputVector’ ocropus_wrap.cpp:3157: error: expected ‘>’ before ‘OutputVector’ ocropus_wrap.cpp:3157: error: expected ‘(’ before ‘OutputVector’ ocropus_wrap.cpp:3157: error: expected primary-expression before ‘>’ token ocropus_wrap.cpp:3157: error: expected ‘)’ before ‘;’ token ocropus_wrap.cpp: In function ‘PyObject* _wrap_OutputVector_keys_get(PyObject*, PyObject*)’: ocropus_wrap.cpp:3173: error: ‘OutputVector’ was not declared in this scope ocropus_wrap.cpp:3173: error: ‘arg1’ was not declared in this scope ocropus_wrap.cpp:3173: error: expected primary-expression before ‘)’ token ocropus_wrap.cpp:3173: error: expected ‘;’ before numeric constant ocropus_wrap.cpp:3184: error: expected type-specifier before ‘OutputVector’ ocropus_wrap.cpp:3184: error: expected ‘>’ before ‘OutputVector’ ocropus_wrap.cpp:3184: error: expected ‘(’ before ‘OutputVector’ ocropus_wrap.cpp:3184: error: expected primary-expression before ‘>’ token ocropus_wrap.cpp:3184: error: expected ‘)’ before ‘;’ token ocropus_wrap.cpp: In function ‘PyObject* _wrap_OutputVector_values_set(PyObject*, PyObject*)’: ocropus_wrap.cpp:3195: error: ‘OutputVector’ was not declared in this scope ocropus_wrap.cpp:3195: error: ‘arg1’ was not declared in this scope ocropus_wrap.cpp:3195: error: expected primary-expression before ‘)’ token ocropus_wrap.cpp:3195: error: expected ‘;’ before numeric constant ocropus_wrap.cpp:3209: error: expected type-specifier before ‘OutputVector’ ocropus_wrap.cpp:3209: error: expected ‘>’ before ‘OutputVector’ ocropus_wrap.cpp:3209: error: expected ‘(’ before ‘OutputVector’ ocropus_wrap.cpp:3209: error: expected primary-expression before ‘>’ token ocropus_wrap.cpp:3209: error: expected ‘)’ before ‘;’ token ocropus_wrap.cpp: In function ‘PyObject* _wrap_OutputVector_values_get(PyObject*, PyObject*)’: ocropus_wrap.cpp:3225: error: ‘OutputVector’ was not declared in this scope ocropus_wrap.cpp:3225: error: ‘arg1’ was not declared in this scope ocropus_wrap.cpp:3225: error: expected primary-expression before ‘)’ token ocropus_wrap.cpp:3225: error: expected ‘;’ before numeric constant ocropus_wrap.cpp:3236: error: expected type-specifier before ‘OutputVector’ ocropus_wrap.cpp:3236: error: expected ‘>’ before ‘OutputVector’ ocropus_wrap.cpp:3236: error: expected ‘(’ before ‘OutputVector’ ocropus_wrap.cpp:3236: error: expected primary-expression before ‘>’ token ocropus_wrap.cpp:3236: error: expected ‘)’ before ‘;’ token ocropus_wrap.cpp: In function ‘PyObject* _wrap_new_ -- 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.
