Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unittest: Fix and enable applybox_test #1876

Merged
merged 1 commit into from
Aug 28, 2018
Merged

Conversation

stweil
Copy link
Contributor

@stweil stweil commented Aug 28, 2018

It needs an update of the test submodule.

The tests only pass with a small modification of the ground truth texts
(kTruthTextWords, kTruthTextLine).

Signed-off-by: Stefan Weil sw@weilnetz.de

It needs an update of the test submodule.

The tests only pass with a small modification of the ground truth texts
(kTruthTextWords, kTruthTextLine).

Signed-off-by: Stefan Weil <sw@weilnetz.de>
@zdenop zdenop merged commit a78bbd2 into tesseract-ocr:master Aug 28, 2018
@Shreeshrii
Copy link
Collaborator

unittest/Makefile.am needs slight change for the test to build - needs leptonica.

applybox_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS) $(LEPTONICA_LIBS)

Error was:

/bin/bash ../libtool  --tag=CXX   --mode=link g++  -g -O2 -std=c++11   -o applybox_test applybox_test.o libgtest.la libgtest_main.la ../src/api/libtesseract.la -lpthread
libtool: link: g++ -g -O2 -std=c++11 -o .libs/applybox_test applybox_test.o  ./.libs/libgtest.a ./.libs/libgtest_main.a ../src/api/.libs/libtesseract.so -lpthread -fopenmp
/usr/bin/powerpc64le-linux-gnu-ld: applybox_test.o: undefined reference to symbol 'pixGetHeight'
//usr/lib/powerpc64le-linux-gnu/liblept.so.5: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:894: recipe for target 'applybox_test' failed
make[2]: *** [applybox_test] Error 1

@Shreeshrii
Copy link
Collaborator

Submitted PR #1884

@stweil
Copy link
Contributor Author

stweil commented Aug 30, 2018

Yes, that's correct. I missed that dependency because my build with configure --disable-shared worked fine. Without --disable-shared, I get the linker error.

@stweil stweil deleted the unittest branch August 30, 2018 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants