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

Cannot build from source after PR #1116 #1119

Closed
nimroha opened this issue Sep 11, 2017 · 2 comments
Closed

Cannot build from source after PR #1116 #1119

nimroha opened this issue Sep 11, 2017 · 2 comments

Comments

@nimroha
Copy link

nimroha commented Sep 11, 2017

Environment

Current Behavior:

Cannot build from source from branch master

Expected Behavior:

Should be able to build

Steps to reconstruct:

Run:
git clone --depth 1 https://github.com/tesseract-ocr/tesseract.git
cd /tesseract
./autogen.sh
./configure --enable-debug
LDFLAGS="-L/usr/local/lib" CFLAGS="-I/usr/local/include"
make
make install
make training

Output:
/bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -std=c++11 -L/usr/local/lib -llept -o unicharset_extractor unicharset_extractor.o libtesseract_tessopt.la ../api/libtesseract.la -lpthread
libtool: link: g++ -g -O2 -std=c++11 -o .libs/unicharset_extractor unicharset_extractor.o -L/usr/local/lib /usr/local/lib/liblept.so ./.libs/libtesseract_tessopt.a ../api/.libs/libtesseract.so -lpthread -fopenmp
unicharset_extractor.o: In function tesseract::Main(int, char**)': /tesseract/training/unicharset_extractor.cpp:66: undefined reference to tesseract::ReadFile(std::string const&, bool ()(STRING const&, GenericVector))'
unicharset_extractor.o: In function AddStringsToUnicharset': /tesseract/training/unicharset_extractor.cpp:48: undefined reference to tesseract::NormalizeCleanAndSegmentUTF8(tesseract::UnicodeNormMode, tesseract::OCRNorm, tesseract::GraphemeNormMode, bool, char const*, std::vector<std::string, std::allocatorstd::string >*)'
/tesseract/training/unicharset_extractor.cpp:53: undefined reference to tesseract::IsWhitespace(int)' unicharset_extractor.o: In function tesseract::Main(int, char**)':
/tesseract/training/unicharset_extractor.cpp:81: undefined reference to tesseract::SetupBasicProperties(bool, bool, UNICHARSET*)' unicharset_extractor.o: In function main':
/tesseract/training/unicharset_extractor.cpp:96: undefined reference to tesseract::ParseCommandLineFlags(char const*, int*, char***, bool)' collect2: error: ld returned 1 exit status make[1]: *** [unicharset_extractor] Error 1 make[1]: Leaving directory /tesseract/training'
make: *** [training] Error 2

Suggested Fix:

The rule to make unichar_extractor was changed in the last pull request closed (#1116)

@Shreeshrii
Copy link
Collaborator

Shreeshrii commented Sep 11, 2017

It was an accidental overwrite. I have made a PR to fix it. #1118

@nimroha
Copy link
Author

nimroha commented Sep 11, 2017

Fixed in PR #1118

@nimroha nimroha closed this as completed Sep 11, 2017
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

No branches or pull requests

2 participants