I just don't seem to be able to get OpenCV to work properly. Here's what I want to accomplish:
我似乎无法使OpenCV正常工作。这就是我想要完成的事情:
Use CodeBlocks (which I installed using codeblocks-10.05mingw-setup.exe) with OpenCV (installer: OpenCV-2.4.2.exe) on my Windows x64.
在我的Windows x64上使用CodeBlocks(我使用codeblocks-10.05mingw-setup.exe安装)和OpenCV(安装程序:OpenCV-2.4.2.exe)。
I've tried a lot of different configurations which will only bother you if I posted them all, so I hope you don't mind if I just ask the simple question: how do I get this to work?
我已经尝试了很多不同的配置,如果我全部发布它们只会打扰你,所以我希望你不介意我只问一个简单的问题:如何让它工作?
I think I'm missing the smallest detail right now, so a detailed description of how to get started would be welcome.
我想我现在错过了最小的细节,所以欢迎详细介绍如何入门。
2 个解决方案
#1
2
If the OpenCV installer did the job, you should have by now OpenCV libraries and headers already installed in your system.
如果OpenCV安装程序完成了这项工作,那么您现在应该已经在系统中安装了OpenCV库和标头。
I would then go ahead and try to compile a hello world basic code, like the one you can get from here. If you would like to program using an IDE, like VisualC++ in Windows, you can follow this guide that will help you setting up the environment.
然后我会继续尝试编译一个hello world基本代码,就像你可以从这里获得的那样。如果您想使用IDE(如Windows中的VisualC ++)进行编程,可以按照本指南来帮助您设置环境。
#2
2
OpenCV team just introduced their new web site. There you can find Introduction to OpenCV section with installation instructions, including detailed instructions for Windows. Don't forget to cleanup your system before installation to avoid problems with mixing different install options. If you still can't get it working with CodeBlocks, follow Dan's advice and try compiling from command line.
OpenCV团队刚刚介绍了他们的新网站。在那里,您可以找到OpenCV简介部分,其中包含安装说明,包括Windows的详细说明。在安装之前不要忘记清理系统,以避免混合使用不同的安装选项时出现问题。如果仍然无法使用CodeBlocks,请遵循Dan的建议并尝试从命令行进行编译。
When you are done with installation, go on and read there great new tutorials!
完成安装后,继续阅读那些很棒的新教程!
#1
2
If the OpenCV installer did the job, you should have by now OpenCV libraries and headers already installed in your system.
如果OpenCV安装程序完成了这项工作,那么您现在应该已经在系统中安装了OpenCV库和标头。
I would then go ahead and try to compile a hello world basic code, like the one you can get from here. If you would like to program using an IDE, like VisualC++ in Windows, you can follow this guide that will help you setting up the environment.
然后我会继续尝试编译一个hello world基本代码,就像你可以从这里获得的那样。如果您想使用IDE(如Windows中的VisualC ++)进行编程,可以按照本指南来帮助您设置环境。
#2
2
OpenCV team just introduced their new web site. There you can find Introduction to OpenCV section with installation instructions, including detailed instructions for Windows. Don't forget to cleanup your system before installation to avoid problems with mixing different install options. If you still can't get it working with CodeBlocks, follow Dan's advice and try compiling from command line.
OpenCV团队刚刚介绍了他们的新网站。在那里,您可以找到OpenCV简介部分,其中包含安装说明,包括Windows的详细说明。在安装之前不要忘记清理系统,以避免混合使用不同的安装选项时出现问题。如果仍然无法使用CodeBlocks,请遵循Dan的建议并尝试从命令行进行编译。
When you are done with installation, go on and read there great new tutorials!
完成安装后,继续阅读那些很棒的新教程!