Skip to content
This repository has been archived by the owner on Mar 17, 2022. It is now read-only.

make: *** [obj/local/armeabi/objs/tess/tessbaseapi.o] Error 1 #238

Closed
rezaee opened this issue Mar 16, 2018 · 1 comment
Closed

make: *** [obj/local/armeabi/objs/tess/tessbaseapi.o] Error 1 #238

rezaee opened this issue Mar 16, 2018 · 1 comment

Comments

@rezaee
Copy link

rezaee commented Mar 16, 2018

I have tried to copy the tesseract 4 inside the /home/m/tess/tess-two/jni/com_googlecode_tesseract_android/src tess-two to compile it with the ndk-build for Android. But I got these result:

jni/com_googlecode_tesseract_android/tessbaseapi.cpp:550:31: error: assigning to
'PROGRESS_FUNC' (aka 'bool (*)(int, int, int, int, int)') from
incompatible type 'bool (void *, int, int, int, int, int)': different
number of parameters (5 vs 6)
monitor.progress_callback = progressJavaCallback;
^~~~~~~~~~~~~~~~~~~~
jni/com_googlecode_tesseract_android/tessbaseapi.cpp:553:11: error: no member
named 'progress_this' in 'ETEXT_DESC'
monitor.progress_this = nat;

jni/com_googlecode_tesseract_android/tessbaseapi.cpp:628:44: error: no matching
    constructor for initialization of 'tesseract::TessPDFRenderer'
...= new tesseract::TessPDFRenderer(c_output_path, nat->api.GetDatapath());
         ^                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jni/com_googlecode_tesseract_android/src/api/renderer.h:186:16: note: candidate
    constructor (the implicit copy constructor) not viable: requires 1
    argument, but 2 were provided
class TESS_API TessPDFRenderer : public TessResultRenderer {
             ^
jni/com_googlecode_tesseract_android/src/api/renderer.h:186:16: note: candidate
    constructor (the implicit move constructor) not viable: requires 1
    argument, but 2 were provided
jni/com_googlecode_tesseract_android/src/api/renderer.h:190:3: note: candidate
    constructor not viable: requires 3 arguments, but 2 were provided
TessPDFRenderer(const char* outputbase, const char* datadir, bool textonly);
^
3 errors generated.
make: *** [obj/local/armeabi/objs/tess/tessbaseapi.o] Error 1

@rmtheis
Copy link
Owner

rmtheis commented Mar 16, 2018

Thanks for the report. We're tracking Tesseract 4 efforts on #196

@rmtheis rmtheis closed this as completed Mar 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants