stoefln / node-native-ocr

Other
19 stars 11 forks source link

Error LNK2019: unresolved external symbol "public: __cdecl tesseract::TessBaseAPI::TessBaseAPI(void)" #6

Open ahmedmukhtar1133 opened 3 years ago

ahmedmukhtar1133 commented 3 years ago

Environment:

Unable to install this package getting the following errors during build:

See attached screenshots for reference image image image

ahmedmukhtar1133 commented 3 years ago

Same error with python v2.7 image

jschlight commented 3 years ago

@ahmedmukhtar1133 Would it be possible to get the full build log, including the build command you are using to trigger the build, as plain text either pasted into a comment here or as a gist?

ahmedmukhtar1133 commented 3 years ago

@jschlight I just ran the npm install command to install the dependencies. Here is the complete npm debug log file attached. File is huge, you might want to search through file node-native-ocr 2021-10-05T22_12_10_891Z-debug.log .

jschlight commented 3 years ago

@ahmedmukhtar1133 Thank you. I wasn't clear in my request. You sent what I asked for. I'm hoping to get a textual version of the console output in the screenshots you posted. Can you please verify the following software versions you are running:

I can confirm the code builds with Visual Studio Build Tools 2019. But it may not build with other versions.

ahmedmukhtar1133 commented 3 years ago

As you suggested it might work with VS 2019 build tools, so I'll check again with vs 2019. Incase I get any errors then I'll provide you textual version of the console errors.

ahmedmukhtar1133 commented 2 years ago

I've tried with VS 2019 build tools but it's still not working.

ahmedmukhtar1133 commented 2 years ago

Finally, after trying different combinations have fixed this issue.

Might help someone.