Try just using the HomeBrew recipe to install.
Sven

On Wednesday, April 24, 2013, Andrew Graham wrote:

> Thanks to todd bealmears guide here -
> http://t0dd.io/2012/05/02/using-python-tesseract-on-os-x-lion.html
> i got far with installing tesseract on osx.
>
> However when I build I get some nasty output now-
>
> python setup.py build
>>
>> include path=/usr/local/include
>>
>> Current Version : 0.7
>>
>> running build
>>
>> running build_py
>>
>> creating build
>>
>> creating build/lib.macosx-10.8-x86_64-2.7
>>
>> copying tesseract.py -> build/lib.macosx-10.8-x86_64-2.7
>>
>> running build_ext
>>
>> building '_tesseract' extension
>>
>> swigging tesseract.i to tesseract_wrap.cpp
>>
>> swig -python -c++ -I/usr/local/include/tesseract -I/usr/local/include
>>> -I/usr/local/include/leptonica -o tesseract_wrap.cpp tesseract.i
>>
>> /usr/local/include/tesseract/publictypes.h:78: Warning 462: Unable to set
>>> dimensionless array variable
>>
>> creating build/temp.macosx-10.8-x86_64-2.7
>>
>> cc -fno-strict-aliasing -fno-common -dynamic -I/usr/local/include
>>> -I/usr/local/opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall
>>> -Wstrict-prototypes -arch x86_64 -I. -I/usr/local/include/tesseract
>>> -I/usr/local/include -I/usr/local/include/leptonica
>>> -I/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/include/python2.7
>>> -c tesseract_wrap.cpp -o build/temp.macosx-10.8-x86_64-2.7/tesseract_wrap.o
>>
>> tesseract_wrap.cpp:2390:23: warning: explicitly assigning a
>>
>>       variable of type 'int' to itself [-Wself-assign]
>>
>>                   res = SWIG_AddCast(res);
>>
>>                   ~~~ ^              ~~~
>>
>> tesseract_wrap.cpp:2393:23: warning: explicitly assigning a
>>
>>       variable of type 'int' to itself [-Wself-assign]
>>
>>                   res = SWIG_AddCast(res);
>>
>>                   ~~~ ^              ~~~
>>
>> tesseract_wrap.cpp:4119:18: error: use of undeclared identifier
>>
>>       'temp'
>>
>>       TESS_API * temp;
>>
>>                  ^
>>
>> tesseract_wrap.cpp:4120:7: error: use of undeclared identifier
>>
>>       'temp'
>>
>>       temp  = reinterpret_cast< TESS_API * >(argp);
>>
>>       ^
>>
>> tesseract_wrap.cpp:4120:42: error: type name requires a specifier
>>
>>       or qualifier
>>
>>       temp  = reinterpret_cast< TESS_API * >(argp);
>>
>>                                          ^
>>
>> tesseract_wrap.cpp:4121:30: error: expected unqualified-id
>>
>>       tesseract::TessBaseAPI = *temp;
>>
>>                              ^
>>
>> tesseract_wrap.cpp:4122:38: error: use of undeclared identifier
>>
>>       'temp'
>>
>>       if (SWIG_IsNewObj(res)) delete temp;
>>
>>                                      ^
>>
>> tesseract_wrap.cpp:4134:30: error: expected '(' for function-style
>>
>>       cast or type construction
>>
>>   ...SWIG_NewPointerObj(SWIG_as_voidptr(&tesseract::TessBaseAPI...
>>
>>                         ^                ~~~~~~~~~~~~~~~~~~~~~~
>>
>> tesseract_wrap.cpp:3006:78: note: expanded from macro
>>
>>       'SWIG_as_voidptr'
>>
>>   ...const_cast< void * >(static_cast< const void * >(a))
>>
>>                                                        ^
>>
>> tesseract_wrap.cpp:1176:89: note: expanded from macro
>>
>>       'SWIG_NewPointerObj'
>>
>>   ...flags)            SWIG_Python_NewPointerObj(NULL, ptr,...
>>
>>                                                        ^
>>
>> 2 warnings and 6 errors generated.
>>
>> error: command 'cc' failed with exit status 1
>>
>>
>>>
>
> Any help from you guys would be super appreciated!
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "tesseract-ocr" group.
> To post to this group, send email to 
> [email protected]<javascript:_e({}, 'cvml', 
> '[email protected]');>
> To unsubscribe from this group, send email to
> [email protected] <javascript:_e({}, 'cvml',
> 'tesseract-ocr%[email protected]');>
> For more options, visit this group at
> http://groups.google.com/group/tesseract-ocr?hl=en
>
> ---
> 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] <javascript:_e({},
> 'cvml', 'tesseract-ocr%[email protected]');>.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>


-- 
``All that is gold does not glitter,
  not all those who wander are lost;
the old that is strong does not wither,
  deep roots are not reached by the frost.
>From the ashes a fire shall be woken,
  a light from the shadows shall spring;
renewed shall be blade that was broken,
  the crownless again shall be king.”

-- 
-- 
You received this message because you are subscribed to the Google
Groups "tesseract-ocr" 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/tesseract-ocr?hl=en

--- 
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].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to