Tesseract OCR “VCRUNTIME140.dll is missing from your computer” but sample solution works?

…衆ロ難τιáo~ 提交于 2019-12-25 09:25:04

问题


I installed the Tesseract NuGet Package in my Visual Studio 2013 solution and during runtime when I initialise a Tesseract enginge it throws the error "The program can't start because VCRUNTIME140.dll is missing from your computer. Try reinstalling the program to fix this problem."

The strange thing is that a sample solution found here does compile, build and run, and either can find the dll or doesn't need it? I've checked the Configuration Manager and the Reference Manager. They all have the same dll's in the build output folder, the only difference that I can find is in the .config files where the sample seems to rely on the .NET 4.0 Framework and my solution on .NET 4.5.2 Framework. Any ideas on what I can try to make my solution compile in the same way as the sample solution?


回答1:


Tesseract NuGet Package was created using VS2015; therefore, it requires Visual C++ Redistributable for Visual Studio 2015. Since the sample solution you downloaded and compiled with your VS2013, it would not depend on VC++ 2015 runtime but on VC++ 2013, which comes with your VS2013 IDE installation.



来源:https://stackoverflow.com/questions/39071944/tesseract-ocr-vcruntime140-dll-is-missing-from-your-computer-but-sample-soluti

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!