You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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)The text was updated successfully, but these errors were encountered: