[intégration de opencv avec vc++]

Fermé
seidali - 1 mars 2006 à 17:42
 jean-roger-coin-coin-du-pont-d'avignon-on-y-danse-on-y-danse - 30 déc. 2008 à 16:05
I need some information in relaiting about installation of OpenCV Beta 5:

*The first problem : what means this sentence “By default, highgui requires external
graphic libraries, so if you do not have them at <opencv_root>/otherlibs/_graphics/,
you will have to modify highgui project settings and/or
<opencv_root>/otherlibs/highgui/Makefile.*”

*The second problem is about Building OpenCV from Microsoft Visual C++ (6.0):
**In the prerequisities : How can I find and download MIL (Matrox Imaging
Library) to build it.

*The third problem also about Building OpenCV from Microsoft Visual C++ (6.0):
**In building the main part of OpenCV and the DirectShow-related part: When I
Build the two parts I get the following errors:
Opencv.dsw:
--------------------Configuration: cxcore - Win32 Release64--------------------
Compiling...
Command line warning D4002 : ignoring unknown option '/Ob2'
cxprecomp.cpp
..\include\cxtypes.h(52) : fatal error C1083: Cannot open include file: 'emmintrin.h': No such file or directory
Error executing cl.exe.

cv097_64.dll - 1 error(s), 1 warning(s)
--------------------Configuration: cxcore - Win32 Debug64--------------------
Compiling...
Command line error D2021 : invalid numeric argument '/Wp64'
Error executing cl.exe.

cv097d_64.dll - 1 error(s), 0 warning(s)
--------------------Configuration: cv - Win32 Release64--------------------
Compiling...
Command line warning D4002 : ignoring unknown option '/Ob2'
cvprecomp.cpp
..\..\cxcore\include\cxtypes.h(52) : fatal error C1083: Cannot open include file: 'emmintrin.h': No such file or directory
Error executing cl.exe.

cvaux097_64.dll - 1 error(s), 1 warning(s)
--------------------Configuration: cv - Win32 Debug64--------------------
Compiling...
Command line error D2021 : invalid numeric argument '/Wp64'
Error executing cl.exe.

cvaux097d_64.dll - 1 error(s), 0 warning(s)
--------------------Configuration: highgui - Win32 Release64--------------------
Compiling...
precomp.cpp
..\..\cxcore\include\cxtypes.h(52) : fatal error C1083: Cannot open include file: 'emmintrin.h': No such file or directory
Error executing cl.exe.

cvsample_64.exe - 1 error(s), 0 warning(s)
--------------------Configuration: highgui - Win32 Debug64--------------------
Compiling...
Command line error D2021 : invalid numeric argument '/Wp64'
Error executing cl.exe.

cvsampled_64.exe - 1 error(s), 0 warning(s)
--------------------Configuration: highgui - Win32 Release64 Itanium--------------------
Compiling...
window_w32.cpp
C:\Program Files\OpenCV\otherlibs\highgui\window_w32.cpp(240) : error C2065: 'GetWindowLongPtr' : undeclared identifier
C:\Program Files\OpenCV\otherlibs\highgui\window_w32.cpp(240) : error C2065: 'GWLP_USERDATA' : undeclared identifier
C:\Program Files\OpenCV\otherlibs\highgui\window_w32.cpp(419) : error C2065: 'SetWindowLongPtr' : undeclared identifier
C:\Program Files\OpenCV\otherlibs\highgui\window_w32.cpp(419) : error C2065: 'LONG_PTR' : undeclared identifier
C:\Program Files\OpenCV\otherlibs\highgui\window_w32.cpp(807) : error C2065: 'GetClassLongPtr' : undeclared identifier
C:\Program Files\OpenCV\otherlibs\highgui\window_w32.cpp(807) : error C2065: 'GCLP_HBRBACKGROUND' : undeclared identifier
C:\Program Files\OpenCV\otherlibs\highgui\window_w32.cpp(947) : error C2065: 'GCLP_HCURSOR' : undeclared identifier
C:\Program Files\OpenCV\otherlibs\highgui\window_w32.cpp(1228) : error C2065: 'GWLP_WNDPROC' : undeclared identifier
Error executing cl.exe.

cvsample_i7.exe - 8 error(s), 0 warning(s)
--------------------Configuration: highgui - Win32 Debug64 Itanium--------------------
Compiling...
Command line warning D4002 : ignoring unknown option '/Qwd167'
window_w32.cpp
C:\Program Files\OpenCV\otherlibs\highgui\window_w32.cpp(240) : error C2065: 'GetWindowLongPtr' : undeclared identifier
C:\Program Files\OpenCV\otherlibs\highgui\window_w32.cpp(240) : error C2065: 'GWLP_USERDATA' : undeclared identifier
C:\Program Files\OpenCV\otherlibs\highgui\window_w32.cpp(419) : error C2065: 'SetWindowLongPtr' : undeclared identifier
C:\Program Files\OpenCV\otherlibs\highgui\window_w32.cpp(419) : error C2065: 'LONG_PTR' : undeclared identifier
C:\Program Files\OpenCV\otherlibs\highgui\window_w32.cpp(807) : error C2065: 'GetClassLongPtr' : undeclared identifier
C:\Program Files\OpenCV\otherlibs\highgui\window_w32.cpp(807) : error C2065: 'GCLP_HBRBACKGROUND' : undeclared identifier
C:\Program Files\OpenCV\otherlibs\highgui\window_w32.cpp(947) : error C2065: 'GCLP_HCURSOR' : undeclared identifier
C:\Program Files\OpenCV\otherlibs\highgui\window_w32.cpp(1228) : error C2065: 'GWLP_WNDPROC' : undeclared identifier
Error executing cl.exe.

cvsampled_i7.exe - 8 error(s), 1 warning(s)
--------------------Configuration: cvaux - Win32 Release64--------------------
Compiling...
Command line warning D4002 : ignoring unknown option '/Ob2'
precomp.cpp
../../cxcore/include\cxtypes.h(52) : fatal error C1083: Cannot open include file: 'emmintrin.h': No such file or directory
Error executing cl.exe.

cvtest_64.exe - 1 error(s), 1 warning(s)
--------------------Configuration: cvaux - Win32 Debug64--------------------
Compiling...
Command line error D2021 : invalid numeric argument '/Wp64'
Error executing cl.exe.

cvtestd_64.exe - 1 error(s), 0 warning(s)
--------------------Configuration: cvtest - Win32 Release64 Itanium--------------------
Linking...
LINK : warning LNK4012: invalid value "IA64", must be ALPHA, ARM, IX86, MIPS, MIPS16, MIPSR41XX, PPC, SH3, or SH4; option ignored
LINK : fatal error LNK1181: cannot open input file "highgui_i7.lib"
Error executing link.exe.

cvtest_i7.exe - 1 error(s), 1 warning(s)
--------------------Configuration: cvtest - Win32 Debug64 Itanium--------------------
Linking...
LINK : warning LNK4012: invalid value "IA64", must be ALPHA, ARM, IX86, MIPS, MIPS16, MIPSR41XX, PPC, SH3, or SH4; option ignored
LINK : fatal error LNK1181: cannot open input file "highguid_i7.lib"
Error executing link.exe.

cvtestd_i7.exe - 1 error(s), 1 warning(s)
--------------------Configuration: cxts - Win32 Release64--------------------
Compiling...
precomp.cpp
..\..\cxcore\include\cxtypes.h(52) : fatal error C1083: Cannot open include file: 'emmintrin.h': No such file or directory
Error executing cl.exe.

cxcoretest_64.exe - 1 error(s), 0 warning(s)
--------------------Configuration: cxts - Win32 Debug64--------------------
Compiling...
Command line error D2021 : invalid numeric argument '/Wp64'
Error executing cl.exe.

cxcoretestd_64.exe - 1 error(s), 0 warning(s)
--------------------Configuration: trs - Win32 Debug64--------------------
Compiling...
Command line error D2021 : invalid numeric argument '/Wp64'
Error executing cl.exe.

trsd_64.dll - 1 error(s), 0 warning(s)

DirectShow.dsw:
--------------------Configuration: cxcore - Win32 Release64--------------------
Compiling...
Command line warning D4002 : ignoring unknown option '/Ob2'
cxprecomp.cpp
..\include\cxtypes.h(52) : fatal error C1083: Cannot open include file: 'emmintrin.h': No such file or directory
Error executing cl.exe.

cv097_64.dll - 1 error(s), 1 warning(s)
--------------------Configuration: cxcore - Win32 Debug64--------------------
Compiling...
Command line error D2021 : invalid numeric argument '/Wp64'
Error executing cl.exe.

cv097d_64.dll - 1 error(s), 0 warning(s)
--------------------Configuration: highgui - Win32 Release64--------------------
Compiling...
precomp.cpp
..\..\cxcore\include\cxtypes.h(52) : fatal error C1083: Cannot open include file: 'emmintrin.h': No such file or directory
Error executing cl.exe.

highgui097_64.dll - 1 error(s), 0 warning(s)
--------------------Configuration: highgui - Win32 Debug64--------------------
Compiling...
Command line error D2021 : invalid numeric argument '/Wp64'
Error executing cl.exe.

highgui097d_64.dll - 1 error(s), 0 warning(s)
--------------------Configuration: highgui - Win32 Release64 Itanium--------------------
Compiling...
window_w32.cpp
C:\Program Files\OpenCV\otherlibs\highgui\window_w32.cpp(240) : error C2065: 'GetWindowLongPtr' : undeclared identifier
C:\Program Files\OpenCV\otherlibs\highgui\window_w32.cpp(240) : error C2065: 'GWLP_USERDATA' : undeclared identifier
C:\Program Files\OpenCV\otherlibs\highgui\window_w32.cpp(419) : error C2065: 'SetWindowLongPtr' : undeclared identifier
C:\Program Files\OpenCV\otherlibs\highgui\window_w32.cpp(419) : error C2065: 'LONG_PTR' : undeclared identifier
C:\Program Files\OpenCV\otherlibs\highgui\window_w32.cpp(807) : error C2065: 'GetClassLongPtr' : undeclared identifier
C:\Program Files\OpenCV\otherlibs\highgui\window_w32.cpp(807) : error C2065: 'GCLP_HBRBACKGROUND' : undeclared identifier
C:\Program Files\OpenCV\otherlibs\highgui\window_w32.cpp(947) : error C2065: 'GCLP_HCURSOR' : undeclared identifier
C:\Program Files\OpenCV\otherlibs\highgui\window_w32.cpp(1228) : error C2065: 'GWLP_WNDPROC' : undeclared identifier
Error executing cl.exe.

highgui097_i7.dll - 8 error(s), 0 warning(s)
--------------------Configuration: highgui - Win32 Debug64 Itanium--------------------
Compiling...
Command line warning D4002 : ignoring unknown option '/Qwd167'
window_w32.cpp
C:\Program Files\OpenCV\otherlibs\highgui\window_w32.cpp(240) : error C2065: 'GetWindowLongPtr' : undeclared identifier
C:\Program Files\OpenCV\otherlibs\highgui\window_w32.cpp(240) : error C2065: 'GWLP_USERDATA' : undeclared identifier
C:\Program Files\OpenCV\otherlibs\highgui\window_w32.cpp(419) : error C2065: 'SetWindowLongPtr' : undeclared identifier
C:\Program Files\OpenCV\otherlibs\highgui\window_w32.cpp(419) : error C2065: 'LONG_PTR' : undeclared identifier
C:\Program Files\OpenCV\otherlibs\highgui\window_w32.cpp(807) : error C2065: 'GetClassLongPtr' : undeclared identifier
C:\Program Files\OpenCV\otherlibs\highgui\window_w32.cpp(807) : error C2065: 'GCLP_HBRBACKGROUND' : undeclared identifier
C:\Program Files\OpenCV\otherlibs\highgui\window_w32.cpp(947) : error C2065: 'GCLP_HCURSOR' : undeclared identifier
C:\Program Files\OpenCV\otherlibs\highgui\window_w32.cpp(1228) : error C2065: 'GWLP_WNDPROC' : undeclared identifier
Error executing cl.exe.

highgui097d_i7.dll - 8 error(s), 1 warning(s)
How can I remove them?.

2 réponses

même problème

avec vc++ 2005

quand je fait build batch -> release -> build


que faire?
0
jean-roger-coin-coin-du-pont-d'avignon-on-y-danse-on-y-danse
30 déc. 2008 à 16:05
donc bon, j'ai trouvé la solution, il faut que tu fasses echap, tu fais démarrer windows, tu fais executer, tu tapes : cmd , et tu tapes ensuite : shutdown -f


voilà, bye
-1