Tesseract OCR“您的计算机中缺少VCRUNTIME140.dll"但是示例解决方案有效吗? [英] Tesseract OCR "VCRUNTIME140.dll is missing from your computer" but sample solution works?

查看:202
本文介绍了Tesseract OCR“您的计算机中缺少VCRUNTIME140.dll"但是示例解决方案有效吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio 2013解决方案中安装了Tesseract NuGet软件包,并且在运行时初始化Tesseract引擎时,它引发错误该程序无法启动,因为您的计算机缺少VCRUNTIME140.dll.请尝试将程序重新安装到解决此问题."

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."

奇怪的是,在此处找到的示例解决方案确实可以编译,构建和运行,并且可以找到该dll或不需要它?我已经检查了配置管理器和引用管理器.它们在生成输出文件夹中都具有相同的dll,我可以找到的唯一区别是.config文件,其中示例似乎依赖于.NET 4.0 Framework和我在.NET 4.5.2 Framework上的解决方案.有什么想法可以使我的解决方案以与示例解决方案相同的方式编译?

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?

推荐答案

Tesseract NuGet软件包是使用VS2015创建的;因此,它需要Visual Studio 2015的Visual C ++ Redistributable.由于您是使用VS2013下载并编译的示例解决方案,因此它不依赖于VC ++ 2015运行时,而是依赖于VS2013 IDE安装随附的VC ++ 2013.

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.

这篇关于Tesseract OCR“您的计算机中缺少VCRUNTIME140.dll"但是示例解决方案有效吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆