Advertisement
MrPoxipol

opencv windows error

Feb 1st, 2014
440
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.09 KB | None | 0 0
  1. [ 26%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui_pch_dephelp
  2. .dir/opencv_highgui_pch_dephelp.cxx.obj
  3. In file included from C:\Users\Acer\Downloads\opencv\bl\modules\highgui\opencv_h
  4. ighgui_pch_dephelp.cxx:1:0:
  5. C:/Users/Acer/Downloads/opencv/sources/modules/highgui/src/precomp.hpp:2:7: erro
  6. r: stray '#' in program
  7. + #if !defined _WIN32_WINNT
  8. ^
  9. C:/Users/Acer/Downloads/opencv/sources/modules/highgui/src/precomp.hpp:3:11: err
  10. or: stray '#' in program
  11. + #ifdef HAVE_MSMF
  12. ^
  13. C:/Users/Acer/Downloads/opencv/sources/modules/highgui/src/precomp.hpp:4:15: err
  14. or: stray '#' in program
  15. + #define _WIN32_WINNT 0x0600 // Windows Vista
  16. ^
  17. C:/Users/Acer/Downloads/opencv/sources/modules/highgui/src/precomp.hpp:5:11: err
  18. or: stray '#' in program
  19. + #else
  20. ^
  21. C:/Users/Acer/Downloads/opencv/sources/modules/highgui/src/precomp.hpp:6:15: err
  22. or: stray '#' in program
  23. + #define _WIN32_WINNT 0x0500 // Windows 2000
  24. ^
  25. C:/Users/Acer/Downloads/opencv/sources/modules/highgui/src/precomp.hpp:7:11: err
  26. or: stray '#' in program
  27. + #endif
  28. ^
  29. C:/Users/Acer/Downloads/opencv/sources/modules/highgui/src/precomp.hpp:8:7: erro
  30. r: stray '#' in program
  31. + #endif
  32. ^
  33. In file included from C:\Users\Acer\Downloads\opencv\bl\modules\highgui\opencv_h
  34. ighgui_pch_dephelp.cxx:1:0:
  35. C:/Users/Acer/Downloads/opencv/sources/modules/highgui/src/precomp.hpp:1:0: erro
  36. r: unterminated #if
  37. #if defined WIN32 || defined WINCE
  38. ^
  39. C:/Users/Acer/Downloads/opencv/sources/modules/highgui/src/precomp.hpp:2:2: erro
  40. r: expected unqualified-id before '+' token
  41. + #if !defined _WIN32_WINNT
  42. ^
  43. In file included from c:\mingw\include\windows.h:47:0,
  44. from C:/Users/Acer/Downloads/opencv/sources/modules/highgui/src
  45. /precomp.hpp:10,
  46. from C:\Users\Acer\Downloads\opencv\bl\modules\highgui\opencv_h
  47. ighgui_pch_dephelp.cxx:1:
  48. c:\mingw\lib\gcc\mingw32\4.8.1\include\stdarg.h:98:9: error: '__gnuc_va_list' do
  49. es not name a type
  50. typedef __gnuc_va_list va_list;
  51. ^
  52. In file included from c:\mingw\include\windows.h:50:0,
  53. from C:/Users/Acer/Downloads/opencv/sources/modules/highgui/src
  54. /precomp.hpp:10,
  55. from C:\Users\Acer\Downloads\opencv\bl\modules\highgui\opencv_h
  56. ighgui_pch_dephelp.cxx:1:
  57. c:\mingw\include\winbase.h:1538:77: error: 'va_list' has not been declared
  58. WINBASEAPI DWORD WINAPI FormatMessageA(DWORD,PCVOID,DWORD,DWORD,LPSTR,DWORD,va_
  59. list*);
  60. ^
  61. c:\mingw\include\winbase.h:1539:78: error: 'va_list' has not been declared
  62. WINBASEAPI DWORD WINAPI FormatMessageW(DWORD,PCVOID,DWORD,DWORD,LPWSTR,DWORD,va
  63. _list*);
  64. ^
  65. In file included from c:\mingw\include\windows.h:55:0,
  66. from C:/Users/Acer/Downloads/opencv/sources/modules/highgui/src
  67. /precomp.hpp:10,
  68. from C:\Users\Acer\Downloads\opencv\bl\modules\highgui\opencv_h
  69. ighgui_pch_dephelp.cxx:1:
  70. c:\mingw\include\winuser.h:4150:47: error: 'va_list' has not been declared
  71. WINUSERAPI int WINAPI wvsprintfA(LPSTR,LPCSTR,va_list arglist);
  72. ^
  73. c:\mingw\include\winuser.h:4151:49: error: 'va_list' has not been declared
  74. WINUSERAPI int WINAPI wvsprintfW(LPWSTR,LPCWSTR,va_list arglist);
  75. ^
  76. modules\highgui\CMakeFiles\opencv_highgui_pch_dephelp.dir\build.make:67: recipe
  77. for target 'modules/highgui/CMakeFiles/opencv_highgui_pch_dephelp.dir/opencv_hig
  78. hgui_pch_dephelp.cxx.obj' failed
  79. mingw32-make[2]: *** [modules/highgui/CMakeFiles/opencv_highgui_pch_dephelp.dir/
  80. opencv_highgui_pch_dephelp.cxx.obj] Error 1
  81. CMakeFiles\Makefile2:2039: recipe for target 'modules/highgui/CMakeFiles/opencv_
  82. highgui_pch_dephelp.dir/all' failed
  83. mingw32-make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui_pch_dephelp.dir/
  84. all] Error 2
  85. Makefile:115: recipe for target 'all' failed
  86. mingw32-make: *** [all] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement