Tesseract-OCR_for_Windows icon indicating copy to clipboard operation
Tesseract-OCR_for_Windows copied to clipboard

Tesseract's latest source code doesn't contain dependency with cube directory

Open saint1729 opened this issue 7 years ago • 3 comments

If this dependency is not removed, we are getting a compilation error. Please look into this and adjust the solution file accordingly.

saint1729 avatar Jan 26 '17 20:01 saint1729

I can make these code changes and let the build happen successfully. Kindly, let me know if you can accept my push request. Thanks in advance.

saint1729 avatar Jan 26 '17 20:01 saint1729

Well, yes send me your pull request.

peirick avatar Jan 27 '17 15:01 peirick

Hi peirick, I have put my effort by making changes to necessary project files. At the end, I'm getting the following linker errors:

Severity Code Description Project File Line Suppression State Error LNK1120 8 unresolved externals tesseract D:\tesseract\VS2015_Tesseract\x64\Debug\tesseract.exe 1 Error LNK2001 unresolved external symbol "private: static bool SIMDDetect::avx_available_" (?avx_available_@SIMDDetect@@0_NA) tesseract D:\tesseract\VS2015_Tesseract\tesseract\tesseractmain.obj 1 Error LNK2001 unresolved external symbol "private: static bool SIMDDetect::sse_available_" (?sse_available_@SIMDDetect@@0_NA) tesseract D:\tesseract\VS2015_Tesseract\tesseract\tesseractmain.obj 1 Error LNK2019 unresolved external symbol "public: void __cdecl tesseract::Tesseract::TrainLineRecognizer(class STRING const &,class STRING const &,class BLOCK_LIST *)" (?TrainLineRecognizer@Tesseract@tesseract@@QEAAXAEBVSTRING@@0PEAVBLOCK_LIST@@@Z) referenced in function "public: int __cdecl tesseract::TessBaseAPI::Recognize(class ETEXT_DESC *)" (?Recognize@TessBaseAPI@tesseract@@QEAAHPEAVETEXT_DESC@@@Z) tesseract D:\tesseract\VS2015_Tesseract\tesseract\baseapi.obj 1 Error LNK2019 unresolved external symbol "public: void __cdecl tesseract::Tesseract::LSTMRecognizeWord(class BLOCK const &,class ROW *,class WERD_RES *,class tesseract::PointerVector<class WERD_RES> *)" (?LSTMRecognizeWord@Tesseract@tesseract@@QEAAXAEBVBLOCK@@PEAVROW@@PEAVWERD_RES@@PEAV?$PointerVector@VWERD_RES@@@2@@Z) referenced in function "public: void __cdecl tesseract::Tesseract::classify_word_pass1(struct tesseract::WordData const &,class WERD_RES * *,class tesseract::PointerVector<class WERD_RES> *)" (?classify_word_pass1@Tesseract@tesseract@@QEAAXAEBUWordData@2@PEAPEAVWERD_RES@@PEAV?$PointerVector@VWERD_RES@@@2@@Z) tesseract D:\tesseract\VS2015_Tesseract\tesseract\control.obj 1 Error LNK2019 unresolved external symbol "public: __cdecl tesseract::LSTMRecognizer::LSTMRecognizer(void)" (??0LSTMRecognizer@tesseract@@QEAA@XZ) referenced in function "public: bool __cdecl tesseract::Tesseract::init_tesseract_lang_data(char const *,char const *,char const *,enum tesseract::OcrEngineMode,char * *,int,class GenericVector<class STRING> const *,class GenericVector<class STRING> const *,bool)" (?init_tesseract_lang_data@Tesseract@tesseract@@QEAA_NPEBD00W4OcrEngineMode@2@PEAPEADHPEBV?$GenericVector@VSTRING@@@@3_N@Z) tesseract D:\tesseract\VS2015_Tesseract\tesseract\tessedit.obj 1 Error LNK2019 unresolved external symbol "public: bool __cdecl tesseract::LSTMRecognizer::DeSerialize(bool,class tesseract::TFile *)" (?DeSerialize@LSTMRecognizer@tesseract@@QEAA_N_NPEAVTFile@2@@Z) referenced in function "public: bool __cdecl tesseract::Tesseract::init_tesseract_lang_data(char const *,char const *,char const *,enum tesseract::OcrEngineMode,char * *,int,class GenericVector<class STRING> const *,class GenericVector<class STRING> const *,bool)" (?init_tesseract_lang_data@Tesseract@tesseract@@QEAA_NPEBD00W4OcrEngineMode@2@PEAPEADHPEBV?$GenericVector@VSTRING@@@@3_N@Z) tesseract D:\tesseract\VS2015_Tesseract\tesseract\tessedit.obj 1 Error LNK2019 unresolved external symbol "public: bool __cdecl tesseract::LSTMRecognizer::LoadDictionary(char const *,char const *)" (?LoadDictionary@LSTMRecognizer@tesseract@@QEAA_NPEBD0@Z) referenced in function "public: bool __cdecl tesseract::Tesseract::init_tesseract_lang_data(char const *,char const *,char const *,enum tesseract::OcrEngineMode,char * *,int,class GenericVector<class STRING> const *,class GenericVector<class STRING> const *,bool)" (?init_tesseract_lang_data@Tesseract@tesseract@@QEAA_NPEBD00W4OcrEngineMode@2@PEAPEADHPEBV?$GenericVector@VSTRING@@@@3_N@Z) tesseract D:\tesseract\VS2015_Tesseract\tesseract\tessedit.obj 1 Error LNK2019 unresolved external symbol "public: __cdecl tesseract::LSTMRecognizer::~LSTMRecognizer(void)" (??1LSTMRecognizer@tesseract@@QEAA@XZ) referenced in function "public: void * __cdecl tesseract::LSTMRecognizer::`scalar deleting destructor'(unsigned int)" (??_GLSTMRecognizer@tesseract@@QEAAPEAXI@Z) tesseract D:\tesseract\VS2015_Tesseract\tesseract\tesseractclass.obj 1

Can you kindly assist me in resolving them?

saint1729 avatar Jan 27 '17 19:01 saint1729