opencvsharp 应用程序设置后不起作用
我在 openCVSharp 中做了一个应用程序。效果很好。我已经对此应用程序进行了设置/安装程序,并包含了所需的所有 dll,正如 openCVSharp 附带的自述文件中提到的,我包含了 openCVSharExtern.dll 。当我在我的电脑上执行安装时,它安装了应用程序,并且应用程序也运行良好。但是当我在其他电脑上安装该应用程序时,它安装得很好,但是当它在那台电脑上运行时,它会抛出异常 P/Invoke 和有关 cxcore210.dll 的信息...
我做错了什么?
谢谢
I have made an application in openCVSharp.It works great. I have made the setup/installer to this app and have included all the dlls required, also as mentioned in the Readme file that comes along openCVSharp, i have included openCVSharExtern.dll . When i execute the setup in my PC, its installs the app fine and the app runs fine too. But when i install the app on someother pc, it installs fine, but when its run on that pc, it throws an exception P/Invoke and something about cxcore210.dll...
What am i doing wrong?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您在项目中引用 DLL 时,您是否在安装程序安装的位置引用 DLL?
例如,如果 DLL 安装在某个文件夹中的一个目录中,那么当您构建它时,应该在您的 PC 上引用它,即一个具有相同名称的文件夹的目录中。
我只是想知道当你在你的电脑上构建应用程序时,你是否从不同的位置引用DLL(它可以在你的电脑上找到,因为它存在),但在另一台电脑上它找不到它。
When you reference the DLL in your project, are you referencing the DLL in the location that gets installed by the installer?
e.g. if the DLL is installed one directory back in a certain folder then it should be referenced on your PC when you build it, one directory back with the same named folder.
I'm just wondering if when you build the app on you PC you are referencing the DLL from a different location (which works find on your PC because it exists) but on another PC it can't find it.