如何在Netbeans中使用mingw设置opencv2.4.0? [英] How to setup opencv2.4.0 with mingw in Netbeans?
问题描述
如何在Netbeans中使用mingw设置opencv2.4.0?我想在Windows XP x86机器上进行设置吗?
How to setup opencv2.4.0 with mingw in Netbeans? I want to make the setup in windows xp x86 machine?
Updated: I made a setup as set in this link SO link. My program get compiled properly but while executing, it got crahed.
我也在此 link-MyPost
用户PATH变量: C:\ ctags; C:\ cscope; C:\ MinGW \ bin; C:\ OpenCV2.4.0 \ build \ x86 \ mingw \ bin;
User PATH Variables: C:\ctags;C:\cscope;C:\MinGW\bin;C:\OpenCV2.4.0\build\x86\mingw\bin;
系统PATH变量: ./bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\wbem;C:\Program 文件\ Intel \ WiFi \ bin; C:\ Program 文件\ TortoiseSVN \ bin; C:\ WINDOWS \ system32 \ gs \ gs7.05 \ bin; C:\ cscope; C:\ ctags; C:\ Program Files \ Vim \ vim73; C:\ Program Files \ QuickTime \ QTSystem \; C:\ Program Files \ Java \ jre6 \ bin; C:\ Program Files \ Windows Imaging \; C:\ MinGW \ msys \ 1.0 \ bin; C:\ OpenCV2.4.0 \ build \ x86 \ mingw \ bin; C:\ MinGW \ bin;
System PATH variable: ./bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\wbem;C:\Program Files\Intel\WiFi\bin;C:\Program Files\TortoiseSVN\bin;C:\WINDOWS\system32\gs\gs7.05\bin;C:\cscope;C:\ctags;C:\Program Files\Vim\vim73;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Java\jre6\bin;C:\Program Files\Windows Imaging\;C:\MinGW\msys\1.0\bin;C:\OpenCV2.4.0\build\x86\mingw\bin;C:\MinGW\bin;
更新:
我尝试在Windows 7中编译并添加TBB路径.即使添加了PATH之后,我也遇到了同样的问题,错误的快照如下:
I tried compiling and adding TBB path in windows 7. Even after adding the PATH I get the same issue and the snap shot of the error is below:
我在Windows XP中尝试了相同的操作,但没有收到上述错误,但应用程序像以前一样崩溃了.
I tried the same in windows XP and I didnt get the above error but the application get crashed as before.
推荐答案
您这样做吗?
Since version 2.1, OpenCV use the TBB library to support parallel processing.
If you use MinGW as a compile suite you should compile TBB yourself
http://opencv.willowgarage.com/wiki/TBB
http://opencv.willowgarage.com/wiki/MinGW
编译后,需要将其路径添加到系统路径.
After compilation, you need to add its path to system path.
FYI,OpenCV 2.4.2提供了针对MingW的已编译TBB dll.
FYI, OpenCV 2.4.2 provided with compiled TBB dll for MingW.
这篇关于如何在Netbeans中使用mingw设置opencv2.4.0?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!