找回密码
 立即注册

CMake中编译openCV源文件报错

发表于 2017-12-6 21:01:39 | 显示全部楼层 |阅读模式
5Qter豆
版本信息:
Qt Creator 3.5.1,Qt 5.5.1,MinGW 4.9.2
Cmake 3.10.0;
opencv-3.1.0

按照
Win10+QT5.7.1搭建opencv开发环境 - TooyLee - 博客园 http://www.cnblogs.com/TooyLee/p/6438070.html

选择完C编译器后,报错


错误栏输出如下
  1. CMake Deprecation Warning at CMakeLists.txt:72 (cmake_policy):
  2.   The OLD behavior for policy CMP0022 will be removed from a future version
  3.   of CMake.

  4.   The cmake-policies(7) manual explains that the OLD behaviors of all
  5.   policies are deprecated and that a policy should be set to OLD only under
  6.   specific short-term circumstances.  Projects should be ported to the NEW
  7.   behavior and not rely on setting a policy to OLD.


  8. CMake Deprecation Warning at CMakeLists.txt:77 (cmake_policy):
  9.   The OLD behavior for policy CMP0026 will be removed from a future version
  10.   of CMake.

  11.   The cmake-policies(7) manual explains that the OLD behaviors of all
  12.   policies are deprecated and that a policy should be set to OLD only under
  13.   specific short-term circumstances.  Projects should be ported to the NEW
  14.   behavior and not rely on setting a policy to OLD.


  15. CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
  16. CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
  17. Configuring incomplete, errors occurred!
复制代码


求指导

附件: 您需要 登录 才可以下载或查看,没有帐号?立即注册
回复

使用道具 举报

 楼主| 发表于 2017-12-7 00:20:45 | 显示全部楼层

后面编译通过了,控制台输出如下
  1. CMake Deprecation Warning at CMakeLists.txt:72 (cmake_policy):
  2.   The OLD behavior for policy CMP0022 will be removed from a future version
  3.   of CMake.

  4.   The cmake-policies(7) manual explains that the OLD behaviors of all
  5.   policies are deprecated and that a policy should be set to OLD only under
  6.   specific short-term circumstances.  Projects should be ported to the NEW
  7.   behavior and not rely on setting a policy to OLD.


  8. CMake Deprecation Warning at CMakeLists.txt:77 (cmake_policy):
  9.   The OLD behavior for policy CMP0026 will be removed from a future version
  10.   of CMake.

  11.   The cmake-policies(7) manual explains that the OLD behaviors of all
  12.   policies are deprecated and that a policy should be set to OLD only under
  13.   specific short-term circumstances.  Projects should be ported to the NEW
  14.   behavior and not rely on setting a policy to OLD.


  15. The CXX compiler identification is GNU 4.9.2
  16. The C compiler identification is GNU 4.9.2
  17. Check for working CXX compiler: D:/Qt/Qt5.5.1/Tools/mingw492_32/bin/g++.exe
  18. Check for working CXX compiler: D:/Qt/Qt5.5.1/Tools/mingw492_32/bin/g++.exe -- works
  19. Detecting CXX compiler ABI info
  20. Detecting CXX compiler ABI info - done
  21. Detecting CXX compile features
  22. Detecting CXX compile features - done
  23. Check for working C compiler: D:/Qt/Qt5.5.1/Tools/mingw492_32/bin/gcc.exe
  24. Check for working C compiler: D:/Qt/Qt5.5.1/Tools/mingw492_32/bin/gcc.exe -- works
  25. Detecting C compiler ABI info
  26. Detecting C compiler ABI info - done
  27. Detecting C compile features
  28. Detecting C compile features - done
  29. Detected version of GNU GCC: 49 (409)
  30. Performing Test HAVE_CXX_FSIGNED_CHAR
  31. Performing Test HAVE_CXX_FSIGNED_CHAR - Success
  32. Performing Test HAVE_C_FSIGNED_CHAR
  33. Performing Test HAVE_C_FSIGNED_CHAR - Success
  34. Performing Test HAVE_CXX_MSTACKREALIGN
  35. Performing Test HAVE_CXX_MSTACKREALIGN - Success
  36. Performing Test HAVE_C_MSTACKREALIGN
  37. Performing Test HAVE_C_MSTACKREALIGN - Success
  38. Performing Test HAVE_CXX_W
  39. Performing Test HAVE_CXX_W - Success
  40. Performing Test HAVE_C_W
  41. Performing Test HAVE_C_W - Success
  42. Performing Test HAVE_CXX_WALL
  43. Performing Test HAVE_CXX_WALL - Success
  44. Performing Test HAVE_C_WALL
  45. Performing Test HAVE_C_WALL - Success
  46. Performing Test HAVE_CXX_WERROR_RETURN_TYPE
  47. Performing Test HAVE_CXX_WERROR_RETURN_TYPE - Success
  48. Performing Test HAVE_C_WERROR_RETURN_TYPE
  49. Performing Test HAVE_C_WERROR_RETURN_TYPE - Success
  50. Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR
  51. Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR - Success
  52. Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR
  53. Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR - Success
  54. Performing Test HAVE_CXX_WERROR_ADDRESS
  55. Performing Test HAVE_CXX_WERROR_ADDRESS - Success
  56. Performing Test HAVE_C_WERROR_ADDRESS
  57. Performing Test HAVE_C_WERROR_ADDRESS - Success
  58. Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT
  59. Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT - Success
  60. Performing Test HAVE_C_WERROR_SEQUENCE_POINT
  61. Performing Test HAVE_C_WERROR_SEQUENCE_POINT - Success
  62. Performing Test HAVE_CXX_WFORMAT
  63. Performing Test HAVE_CXX_WFORMAT - Success
  64. Performing Test HAVE_C_WFORMAT
  65. Performing Test HAVE_C_WFORMAT - Success
  66. Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY
  67. Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY - Success
  68. Performing Test HAVE_C_WERROR_FORMAT_SECURITY
  69. Performing Test HAVE_C_WERROR_FORMAT_SECURITY - Success
  70. Performing Test HAVE_CXX_WMISSING_DECLARATIONS
  71. Performing Test HAVE_CXX_WMISSING_DECLARATIONS - Success
  72. Performing Test HAVE_C_WMISSING_DECLARATIONS
  73. Performing Test HAVE_C_WMISSING_DECLARATIONS - Success
  74. Performing Test HAVE_CXX_WMISSING_PROTOTYPES
  75. Performing Test HAVE_CXX_WMISSING_PROTOTYPES - Failed
  76. Performing Test HAVE_C_WMISSING_PROTOTYPES
  77. Performing Test HAVE_C_WMISSING_PROTOTYPES - Success
  78. Performing Test HAVE_CXX_WSTRICT_PROTOTYPES
  79. Performing Test HAVE_CXX_WSTRICT_PROTOTYPES - Failed
  80. Performing Test HAVE_C_WSTRICT_PROTOTYPES
  81. Performing Test HAVE_C_WSTRICT_PROTOTYPES - Success
  82. Performing Test HAVE_CXX_WUNDEF
  83. Performing Test HAVE_CXX_WUNDEF - Success
  84. Performing Test HAVE_C_WUNDEF
  85. Performing Test HAVE_C_WUNDEF - Success
  86. Performing Test HAVE_CXX_WINIT_SELF
  87. Performing Test HAVE_CXX_WINIT_SELF - Success
  88. Performing Test HAVE_C_WINIT_SELF
  89. Performing Test HAVE_C_WINIT_SELF - Success
  90. Performing Test HAVE_CXX_WPOINTER_ARITH
  91. Performing Test HAVE_CXX_WPOINTER_ARITH - Success
  92. Performing Test HAVE_C_WPOINTER_ARITH
  93. Performing Test HAVE_C_WPOINTER_ARITH - Success
  94. Performing Test HAVE_CXX_WSHADOW
  95. Performing Test HAVE_CXX_WSHADOW - Success
  96. Performing Test HAVE_C_WSHADOW
  97. Performing Test HAVE_C_WSHADOW - Success
  98. Performing Test HAVE_CXX_WSIGN_PROMO
  99. Performing Test HAVE_CXX_WSIGN_PROMO - Success
  100. Performing Test HAVE_C_WSIGN_PROMO
  101. Performing Test HAVE_C_WSIGN_PROMO - Failed
  102. Performing Test HAVE_CXX_WNO_NARROWING
  103. Performing Test HAVE_CXX_WNO_NARROWING - Success
  104. Performing Test HAVE_C_WNO_NARROWING
  105. Performing Test HAVE_C_WNO_NARROWING - Success
  106. Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR
  107. Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR - Success
  108. Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR
  109. Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR - Failed
  110. Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
  111. Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed
  112. Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
  113. Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed
  114. Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION
  115. Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION - Success
  116. Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION
  117. Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION - Success
  118. Performing Test HAVE_CXX_MARCH_I686
  119. Performing Test HAVE_CXX_MARCH_I686 - Success
  120. Performing Test HAVE_C_MARCH_I686
  121. Performing Test HAVE_C_MARCH_I686 - Success
  122. Performing Test HAVE_CXX_FOMIT_FRAME_POINTER
  123. Performing Test HAVE_CXX_FOMIT_FRAME_POINTER - Success
  124. Performing Test HAVE_C_FOMIT_FRAME_POINTER
  125. Performing Test HAVE_C_FOMIT_FRAME_POINTER - Success
  126. Performing Test HAVE_CXX_MSSE
  127. Performing Test HAVE_CXX_MSSE - Success
  128. Performing Test HAVE_C_MSSE
  129. Performing Test HAVE_C_MSSE - Success
  130. Performing Test HAVE_CXX_MSSE2
  131. Performing Test HAVE_CXX_MSSE2 - Success
  132. Performing Test HAVE_C_MSSE2
  133. Performing Test HAVE_C_MSSE2 - Success
  134. Performing Test HAVE_CXX_MFPMATH_SSE
  135. Performing Test HAVE_CXX_MFPMATH_SSE - Success
  136. Performing Test HAVE_C_MFPMATH_SSE
  137. Performing Test HAVE_C_MFPMATH_SSE - Success
  138. Performing Test HAVE_CXX_FFUNCTION_SECTIONS
  139. Performing Test HAVE_CXX_FFUNCTION_SECTIONS - Success
  140. Performing Test HAVE_C_FFUNCTION_SECTIONS
  141. Performing Test HAVE_C_FFUNCTION_SECTIONS - Success
  142. Performing Test HAVE_CXX_FVISIBILITY_HIDDEN
  143. Performing Test HAVE_CXX_FVISIBILITY_HIDDEN - Success
  144. Performing Test HAVE_C_FVISIBILITY_HIDDEN
  145. Performing Test HAVE_C_FVISIBILITY_HIDDEN - Success
  146. Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN
  147. Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN - Success
  148. Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN
  149. Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN - Failed
  150. Check if the system is big endian
  151. Searching 16 bit integer
  152. Looking for sys/types.h
  153. Looking for sys/types.h - found
  154. Looking for stdint.h
  155. Looking for stdint.h - found
  156. Looking for stddef.h
  157. Looking for stddef.h - found
  158. Check size of unsigned short
  159. Check size of unsigned short - done
  160. Using unsigned short
  161. Check if the system is big endian - little endian
  162. Looking for fseeko
  163. Looking for fseeko - found
  164. Looking for unistd.h
  165. Looking for unistd.h - found
  166. Check size of off64_t
  167. Check size of off64_t - done
  168. Performing Test HAVE_C_WNO_SHORTEN_64_TO_32
  169. Performing Test HAVE_C_WNO_SHORTEN_64_TO_32 - Failed
  170. Performing Test HAVE_C_WNO_ATTRIBUTES
  171. Performing Test HAVE_C_WNO_ATTRIBUTES - Success
  172. Performing Test HAVE_C_WNO_STRICT_PROTOTYPES
  173. Performing Test HAVE_C_WNO_STRICT_PROTOTYPES - Success
  174. Performing Test HAVE_C_WNO_MISSING_PROTOTYPES
  175. Performing Test HAVE_C_WNO_MISSING_PROTOTYPES - Success
  176. Performing Test HAVE_C_WNO_MISSING_DECLARATIONS
  177. Performing Test HAVE_C_WNO_MISSING_DECLARATIONS - Success
  178. Looking for assert.h
  179. Looking for assert.h - found
  180. Looking for fcntl.h
  181. Looking for fcntl.h - found
  182. Looking for io.h
  183. Looking for io.h - found
  184. Looking for jbg_newlen
  185. Looking for jbg_newlen - not found
  186. Looking for mmap
  187. Looking for mmap - not found
  188. Looking for search.h
  189. Looking for search.h - found
  190. Looking for string.h
  191. Looking for string.h - found
  192. Looking for unistd.h
  193. Looking for unistd.h - found
  194. Performing Test HAVE_C_WNO_UNUSED_BUT_SET_VARIABLE
  195. Performing Test HAVE_C_WNO_UNUSED_BUT_SET_VARIABLE - Success
  196. Performing Test HAVE_C_WNO_UNDEF
  197. Performing Test HAVE_C_WNO_UNDEF - Success
  198. Performing Test HAVE_C_WNO_UNUSED
  199. Performing Test HAVE_C_WNO_UNUSED - Success
  200. Performing Test HAVE_C_WNO_SIGN_COMPARE
  201. Performing Test HAVE_C_WNO_SIGN_COMPARE - Success
  202. Performing Test HAVE_C_WNO_CAST_ALIGN
  203. Performing Test HAVE_C_WNO_CAST_ALIGN - Success
  204. Performing Test HAVE_C_WNO_SHADOW
  205. Performing Test HAVE_C_WNO_SHADOW - Success
  206. Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED
  207. Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED - Success
  208. Performing Test HAVE_C_WNO_POINTER_TO_INT_CAST
  209. Performing Test HAVE_C_WNO_POINTER_TO_INT_CAST - Success
  210. Performing Test HAVE_C_WNO_INT_TO_POINTER_CAST
  211. Performing Test HAVE_C_WNO_INT_TO_POINTER_CAST - Success
  212. Performing Test HAVE_C_WNO_UNUSED_PARAMETER
  213. Performing Test HAVE_C_WNO_UNUSED_PARAMETER - Success
  214. Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS
  215. Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS - Success
  216. Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER
  217. Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER - Success
  218. Performing Test HAVE_C_WNO_UNUSED_VARIABLE
  219. Performing Test HAVE_C_WNO_UNUSED_VARIABLE - Success
  220. Performing Test HAVE_C_WNO_UNUSED_FUNCTION
  221. Performing Test HAVE_C_WNO_UNUSED_FUNCTION - Success
  222. Performing Test HAVE_C_WNO_IMPLICIT_FUNCTION_DECLARATION
  223. Performing Test HAVE_C_WNO_IMPLICIT_FUNCTION_DECLARATION - Success
  224. Performing Test HAVE_C_WNO_UNINITIALIZED
  225. Performing Test HAVE_C_WNO_UNINITIALIZED - Success
  226. Performing Test HAVE_C_WNO_UNUSED_BUT_SET_PARAMETER
  227. Performing Test HAVE_C_WNO_UNUSED_BUT_SET_PARAMETER - Success
  228. Performing Test HAVE_C_WNO_STRICT_OVERFLOW
  229. Performing Test HAVE_C_WNO_STRICT_OVERFLOW - Success
  230. Performing Test HAVE_CXX_WNO_SHADOW
  231. Performing Test HAVE_CXX_WNO_SHADOW - Success
  232. Performing Test HAVE_CXX_WNO_UNUSED
  233. Performing Test HAVE_CXX_WNO_UNUSED - Success
  234. Performing Test HAVE_CXX_WNO_SIGN_COMPARE
  235. Performing Test HAVE_CXX_WNO_SIGN_COMPARE - Success
  236. Performing Test HAVE_CXX_WNO_UNDEF
  237. Performing Test HAVE_CXX_WNO_UNDEF - Success
  238. Performing Test HAVE_CXX_WNO_UNINITIALIZED
  239. Performing Test HAVE_CXX_WNO_UNINITIALIZED - Success
  240. Performing Test HAVE_CXX_WNO_SWITCH
  241. Performing Test HAVE_CXX_WNO_SWITCH - Success
  242. Performing Test HAVE_CXX_WNO_PARENTHESES
  243. Performing Test HAVE_CXX_WNO_PARENTHESES - Success
  244. Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS
  245. Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS - Success
  246. Performing Test HAVE_CXX_WNO_EXTRA
  247. Performing Test HAVE_CXX_WNO_EXTRA - Success
  248. Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS
  249. Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS - Success
  250. Downloading opencv_ffmpeg.dll...
  251. Downloading opencv_ffmpeg.dll... Done
  252. Downloading opencv_ffmpeg_64.dll...
  253. Downloading opencv_ffmpeg_64.dll... Done
  254. Downloading ffmpeg_version.cmake...
  255. Downloading ffmpeg_version.cmake... Done
  256. CUDA compilation is disabled (due to only Visual Studio compiler supported on your platform).
  257. Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
  258. To enable PlantUML support, set PLANTUML_JAR environment variable or pass -DPLANTUML_JAR=<filepath> option to cmake
  259. Found PythonInterp: D:/py/python.exe (found suitable version "2.7.9", minimum required is "2.7")
  260. Found PythonLibs: D:/py/libs/libpython27.a (found suitable exact version "2.7.9+")
  261. Traceback (most recent call last):
  262.   File "<string>", line 1, in <module>
  263. ImportError: No module named numpy.distutils

  264. Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "3.4")
  265. Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "3.2")
  266. Found JNI: C:/Program Files/Java/jdk1.7.0_45/lib/jawt.lib  
  267. Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN)
  268. VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file

  269. General configuration for OpenCV 3.1.0 =====================================
  270.   Version control:               unknown

  271.   Platform:
  272.     Host:                        Windows 6.1.7601 x86
  273.     CMake:                       3.10.0
  274.     CMake generator:             MinGW Makefiles
  275.     CMake build tool:            D:/Qt/Qt5.5.1/Tools/mingw492_32/bin/mingw32-make.exe
  276.     Configuration:               Release

  277.   C/C++:
  278.     Built as dynamic libs?:      YES
  279.     C++ Compiler:                D:/Qt/Qt5.5.1/Tools/mingw492_32/bin/g++.exe  (ver 4.9.2)
  280.     C++ flags (Release):         -fsigned-char -mstackrealign -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -march=i686 -fomit-frame-pointer -msse -msse2 -mfpmath=sse -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG  -DNDEBUG
  281.     C++ flags (Debug):           -fsigned-char -mstackrealign -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -march=i686 -fomit-frame-pointer -msse -msse2 -mfpmath=sse -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -g  -O0 -DDEBUG -D_DEBUG
  282.     C Compiler:                  D:/Qt/Qt5.5.1/Tools/mingw492_32/bin/gcc.exe
  283.     C flags (Release):           -fsigned-char -mstackrealign -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -march=i686 -fomit-frame-pointer -msse -msse2 -mfpmath=sse -ffunction-sections -fvisibility=hidden -O2 -DNDEBUG  -DNDEBUG
  284.     C flags (Debug):             -fsigned-char -mstackrealign -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -march=i686 -fomit-frame-pointer -msse -msse2 -mfpmath=sse -ffunction-sections -fvisibility=hidden -g  -O0 -DDEBUG -D_DEBUG
  285.     Linker flags (Release):      
  286.     Linker flags (Debug):        
  287.     Precompiled headers:         YES
  288.     Extra dependencies:          comctl32 gdi32 ole32 setupapi ws2_32 vfw32 winmm
  289.     3rd** dependencies:       zlib libjpeg libwebp libpng libtiff libjasper IlmImf

  290.   OpenCV modules:
  291.     To be built:                 core flann imgproc ml photo video imgcodecs shape videoio highgui objdetect superres ts features2d calib3d stitching videostab
  292.     Disabled:                    world
  293.     Disabled by dependency:      -
  294.     Unavailable:                 cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev java python2 python3 viz

  295.   Windows RT support:            NO

  296.   GUI:
  297.     QT:                          NO
  298.     Win32 UI:                    YES
  299.     OpenGL support:              NO
  300.     VTK support:                 NO

  301.   Media I/O:
  302.     ZLib:                        build (ver 1.2.8)
  303.     JPEG:                        build (ver 90)
  304.     WEBP:                        build (ver 0.3.1)
  305.     PNG:                         build (ver 1.6.19)
  306.     TIFF:                        build (ver 42 - 4.0.2)
  307.     JPEG 2000:                   build (ver 1.900.1)
  308.     OpenEXR:                     build (ver 1.7.1)
  309.     GDAL:                        NO

  310.   Video I/O:
  311.     Video for Windows:           YES
  312.     DC1394 1.x:                  NO
  313.     DC1394 2.x:                  NO
  314.     FFMPEG:                      YES (prebuilt binaries)
  315.       codec:                     YES (ver 56.41.100)
  316.       format:                    YES (ver 56.36.101)
  317.       util:                      YES (ver 54.27.100)
  318.       swscale:                   YES (ver 3.1.101)
  319.       resample:                  NO
  320.       gentoo-style:              YES
  321.     GStreamer:                   NO
  322.     OpenNI:                      NO
  323.     OpenNI PrimeSensor Modules:  NO
  324.     OpenNI2:                     NO
  325.     PvAPI:                       NO
  326.     GigEVisionSDK:               NO
  327.     DirectShow:                  YES
  328.     Media Foundation:            NO
  329.     XIMEA:                       NO
  330.     Intel PerC:                  NO

  331.   Parallel framework:            pthreads

  332.   Other third-** libraries:
  333.     Use IPP:                     NO
  334.     Use IPP Async:               NO
  335.     Use Eigen:                   NO
  336.     Use Cuda:                    NO
  337.     Use OpenCL:                  YES
  338.     Use custom HAL:              NO

  339.   OpenCL:
  340.     Version:                     dynamic
  341.     Include path:                D:/opencv/opencv/sources/3rd**/include/opencl/1.2
  342.     Use AMDFFT:                  NO
  343.     Use AMDBLAS:                 NO

  344.   Python 2:
  345.     Interpreter:                 D:/py/python.exe (ver 2.7.9)

  346.   Python 3:
  347.     Interpreter:                 NO

  348.   Python (for build):            D:/py/python.exe

  349.   Java:
  350.     ant:                         NO
  351.     JNI:                         C:/Program Files/Java/jdk1.7.0_45/include C:/Program Files/Java/jdk1.7.0_45/include/win32 C:/Program Files/Java/jdk1.7.0_45/include
  352.     Java wrappers:               NO
  353.     Java tests:                  NO

  354.   Matlab:                        Matlab not found or implicitly disabled

  355.   Documentation:
  356.     Doxygen:                     NO
  357.     PlantUML:                    NO

  358.   Tests and samples:
  359.     Tests:                       YES
  360.     Performance tests:           YES
  361.     C/C++ Examples:              NO

  362.   Install path:                  D:/opencv_mingw/install

  363.   cvconfig.h is in:              D:/opencv_mingw
  364. -----------------------------------------------------------------

  365. Configuring done
复制代码


回复

使用道具 举报

 楼主| 发表于 2017-12-7 00:28:31 | 显示全部楼层

勾选生成列表中的WITH_OPENGL和WITH_QT两项,再次编译,控制台输出
  1. CMake Deprecation Warning at CMakeLists.txt:72 (cmake_policy):
  2.   The OLD behavior for policy CMP0022 will be removed from a future version
  3.   of CMake.

  4.   The cmake-policies(7) manual explains that the OLD behaviors of all
  5.   policies are deprecated and that a policy should be set to OLD only under
  6.   specific short-term circumstances.  Projects should be ported to the NEW
  7.   behavior and not rely on setting a policy to OLD.


  8. CMake Deprecation Warning at CMakeLists.txt:77 (cmake_policy):
  9.   The OLD behavior for policy CMP0026 will be removed from a future version
  10.   of CMake.

  11.   The cmake-policies(7) manual explains that the OLD behaviors of all
  12.   policies are deprecated and that a policy should be set to OLD only under
  13.   specific short-term circumstances.  Projects should be ported to the NEW
  14.   behavior and not rely on setting a policy to OLD.


  15. Detected version of GNU GCC: 49 (409)
  16. CUDA compilation is disabled (due to only Visual Studio compiler supported on your platform).
  17. Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
  18. To enable PlantUML support, set PLANTUML_JAR environment variable or pass -DPLANTUML_JAR=<filepath> option to cmake
  19. Traceback (most recent call last):
  20.   File "<string>", line 1, in <module>
  21. ImportError: No module named numpy.distutils

  22. Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "3.4")
  23. Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "3.2")
  24. Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN)
  25. VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
  26. CMake Warning (dev) in modules/highgui/CMakeLists.txt:
  27.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  28.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  29.   Use the cmake_policy command to set the policy and suppress this warning.
  30. This warning is for project developers.  Use -Wno-dev to suppress it.


  31. General configuration for OpenCV 3.1.0 =====================================
  32.   Version control:               unknown

  33.   Platform:
  34.     Host:                        Windows 6.1.7601 x86
  35.     CMake:                       3.10.0
  36.     CMake generator:             MinGW Makefiles
  37.     CMake build tool:            D:/Qt/Qt5.5.1/Tools/mingw492_32/bin/mingw32-make.exe
  38.     Configuration:               Release

  39.   C/C++:
  40.     Built as dynamic libs?:      YES
  41.     C++ Compiler:                D:/Qt/Qt5.5.1/Tools/mingw492_32/bin/g++.exe  (ver 4.9.2)
  42.     C++ flags (Release):         -fsigned-char -mstackrealign -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -march=i686 -fomit-frame-pointer -msse -msse2 -mfpmath=sse -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG  -DNDEBUG
  43.     C++ flags (Debug):           -fsigned-char -mstackrealign -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -march=i686 -fomit-frame-pointer -msse -msse2 -mfpmath=sse -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -g  -O0 -DDEBUG -D_DEBUG
  44.     C Compiler:                  D:/Qt/Qt5.5.1/Tools/mingw492_32/bin/gcc.exe
  45.     C flags (Release):           -fsigned-char -mstackrealign -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -march=i686 -fomit-frame-pointer -msse -msse2 -mfpmath=sse -ffunction-sections -fvisibility=hidden -O2 -DNDEBUG  -DNDEBUG
  46.     C flags (Debug):             -fsigned-char -mstackrealign -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -march=i686 -fomit-frame-pointer -msse -msse2 -mfpmath=sse -ffunction-sections -fvisibility=hidden -g  -O0 -DDEBUG -D_DEBUG
  47.     Linker flags (Release):      
  48.     Linker flags (Debug):        
  49.     Precompiled headers:         YES
  50.     Extra dependencies:          comctl32 gdi32 ole32 setupapi ws2_32 Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Test Qt5::Concurrent Qt5::OpenGL vfw32 winmm opengl32 glu32
  51.     3rd** dependencies:       zlib libjpeg libwebp libpng libtiff libjasper IlmImf

  52.   OpenCV modules:
  53.     To be built:                 core flann imgproc ml photo video imgcodecs shape videoio highgui objdetect superres ts features2d calib3d stitching videostab
  54.     Disabled:                    world
  55.     Disabled by dependency:      -
  56.     Unavailable:                 cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev java python2 python3 viz

  57.   Windows RT support:            NO

  58.   GUI:
  59.     QT 5.x:                      YES (ver 5.5.1)
  60.     QT OpenGL support:           YES (Qt5::OpenGL 5.5.1)
  61.     OpenGL support:              YES (opengl32 glu32)
  62.     VTK support:                 NO

  63.   Media I/O:
  64.     ZLib:                        build (ver 1.2.8)
  65.     JPEG:                        build (ver 90)
  66.     WEBP:                        build (ver 0.3.1)
  67.     PNG:                         build (ver 1.6.19)
  68.     TIFF:                        build (ver 42 - 4.0.2)
  69.     JPEG 2000:                   build (ver 1.900.1)
  70.     OpenEXR:                     build (ver 1.7.1)
  71.     GDAL:                        NO

  72.   Video I/O:
  73.     Video for Windows:           YES
  74.     DC1394 1.x:                  NO
  75.     DC1394 2.x:                  NO
  76.     FFMPEG:                      YES (prebuilt binaries)
  77.       codec:                     YES (ver 56.41.100)
  78.       format:                    YES (ver 56.36.101)
  79.       util:                      YES (ver 54.27.100)
  80.       swscale:                   YES (ver 3.1.101)
  81.       resample:                  NO
  82.       gentoo-style:              YES
  83.     GStreamer:                   NO
  84.     OpenNI:                      NO
  85.     OpenNI PrimeSensor Modules:  NO
  86.     OpenNI2:                     NO
  87.     PvAPI:                       NO
  88.     GigEVisionSDK:               NO
  89.     DirectShow:                  YES
  90.     Media Foundation:            NO
  91.     XIMEA:                       NO
  92.     Intel PerC:                  NO

  93.   Parallel framework:            pthreads

  94.   Other third-** libraries:
  95.     Use IPP:                     NO
  96.     Use IPP Async:               NO
  97.     Use Eigen:                   NO
  98.     Use Cuda:                    NO
  99.     Use OpenCL:                  YES
  100.     Use custom HAL:              NO

  101.   OpenCL:
  102.     Version:                     dynamic
  103.     Include path:                D:/opencv/opencv/sources/3rd**/include/opencl/1.2
  104.     Use AMDFFT:                  NO
  105.     Use AMDBLAS:                 NO

  106.   Python 2:
  107.     Interpreter:                 D:/py/python.exe (ver 2.7.9)

  108.   Python 3:
  109.     Interpreter:                 NO

  110.   Python (for build):            D:/py/python.exe

  111.   Java:
  112.     ant:                         NO
  113.     JNI:                         C:/Program Files/Java/jdk1.7.0_45/include C:/Program Files/Java/jdk1.7.0_45/include/win32 C:/Program Files/Java/jdk1.7.0_45/include
  114.     Java wrappers:               NO
  115.     Java tests:                  NO

  116.   Matlab:                        Matlab not found or implicitly disabled

  117.   Documentation:
  118.     Doxygen:                     NO
  119.     PlantUML:                    NO

  120.   Tests and samples:
  121.     Tests:                       YES
  122.     Performance tests:           YES
  123.     C/C++ Examples:              NO

  124.   Install path:                  D:/opencv_mingw/install

  125.   cvconfig.h is in:              D:/opencv_mingw
  126. -----------------------------------------------------------------

  127. Configuring done
复制代码


回复

使用道具 举报

 楼主| 发表于 2017-12-7 00:32:06 | 显示全部楼层

点击“生成”,输出如下
  1. CMake Warning (dev) in modules/highgui/CMakeLists.txt:
  2.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  3.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  4.   Use the cmake_policy command to set the policy and suppress this warning.
  5. This warning is for project developers.  Use -Wno-dev to suppress it.

  6. CMake Warning (dev) in modules/highgui/CMakeLists.txt:
  7.   Policy CMP0071 is not set: Let AUTOMOC and AUTOUIC process GENERATED files.
  8.   Run "cmake --help-policy CMP0071" for policy details.  Use the cmake_policy
  9.   command to set the policy and suppress this warning.

  10.   For compatibility, CMake is excluding the GENERATED source file(s):

  11.     "D:/opencv_mingw/modules/highgui/opencv_test_highgui_pch_dephelp.cxx"

  12.   from processing by AUTOMOC.  If any of the files should be processed, set
  13.   CMP0071 to NEW.  If any of the files should not be processed, explicitly
  14.   exclude them by setting the source file property SKIP_AUTOMOC:

  15.     set_property(SOURCE file.h PROPERTY SKIP_AUTOMOC ON)

  16. This warning is for project developers.  Use -Wno-dev to suppress it.

  17. CMake Warning (dev) in modules/highgui/CMakeLists.txt:
  18.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  19.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  20.   Use the cmake_policy command to set the policy and suppress this warning.
  21. This warning is for project developers.  Use -Wno-dev to suppress it.

  22. CMake Warning (dev) in modules/highgui/CMakeLists.txt:
  23.   Policy CMP0071 is not set: Let AUTOMOC and AUTOUIC process GENERATED files.
  24.   Run "cmake --help-policy CMP0071" for policy details.  Use the cmake_policy
  25.   command to set the policy and suppress this warning.

  26.   For compatibility, CMake is excluding the GENERATED source file(s):

  27.     "D:/opencv_mingw/modules/highgui/qrc_window_QT.cpp"

  28.   from processing by AUTOMOC.  If any of the files should be processed, set
  29.   CMP0071 to NEW.  If any of the files should not be processed, explicitly
  30.   exclude them by setting the source file property SKIP_AUTOMOC:

  31.     set_property(SOURCE file.h PROPERTY SKIP_AUTOMOC ON)

  32. This warning is for project developers.  Use -Wno-dev to suppress it.

  33. CMake Warning (dev) in modules/highgui/CMakeLists.txt:
  34.   Policy CMP0071 is not set: Let AUTOMOC and AUTOUIC process GENERATED files.
  35.   Run "cmake --help-policy CMP0071" for policy details.  Use the cmake_policy
  36.   command to set the policy and suppress this warning.

  37.   For compatibility, CMake is excluding the GENERATED source file(s):

  38.     "D:/opencv_mingw/modules/highgui/qrc_window_QT.cpp"

  39.   from processing by AUTOMOC.  If any of the files should be processed, set
  40.   CMP0071 to NEW.  If any of the files should not be processed, explicitly
  41.   exclude them by setting the source file property SKIP_AUTOMOC:

  42.     set_property(SOURCE file.h PROPERTY SKIP_AUTOMOC ON)

  43. This warning is for project developers.  Use -Wno-dev to suppress it.

  44. CMake Warning (dev) in modules/highgui/CMakeLists.txt:
  45.   Policy CMP0071 is not set: Let AUTOMOC and AUTOUIC process GENERATED files.
  46.   Run "cmake --help-policy CMP0071" for policy details.  Use the cmake_policy
  47.   command to set the policy and suppress this warning.

  48.   For compatibility, CMake is excluding the GENERATED source file(s):

  49.     "D:/opencv_mingw/modules/highgui/opencv_highgui_pch_dephelp.cxx"

  50.   from processing by AUTOMOC.  If any of the files should be processed, set
  51.   CMP0071 to NEW.  If any of the files should not be processed, explicitly
  52.   exclude them by setting the source file property SKIP_AUTOMOC:

  53.     set_property(SOURCE file.h PROPERTY SKIP_AUTOMOC ON)

  54. This warning is for project developers.  Use -Wno-dev to suppress it.

  55. CMake Warning (dev) in modules/highgui/CMakeLists.txt:
  56.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  57.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  58.   Use the cmake_policy command to set the policy and suppress this warning.
  59. This warning is for project developers.  Use -Wno-dev to suppress it.

  60. CMake Warning (dev) in modules/highgui/CMakeLists.txt:
  61.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  62.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  63.   Use the cmake_policy command to set the policy and suppress this warning.
  64. This warning is for project developers.  Use -Wno-dev to suppress it.

  65. CMake Warning (dev) in modules/objdetect/CMakeLists.txt:
  66.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  67.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  68.   Use the cmake_policy command to set the policy and suppress this warning.
  69. This warning is for project developers.  Use -Wno-dev to suppress it.

  70. CMake Warning (dev) in modules/objdetect/CMakeLists.txt:
  71.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  72.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  73.   Use the cmake_policy command to set the policy and suppress this warning.
  74. This warning is for project developers.  Use -Wno-dev to suppress it.

  75. CMake Warning (dev) in modules/ts/CMakeLists.txt:
  76.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  77.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  78.   Use the cmake_policy command to set the policy and suppress this warning.
  79. This warning is for project developers.  Use -Wno-dev to suppress it.

  80. CMake Warning (dev) in modules/ts/CMakeLists.txt:
  81.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  82.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  83.   Use the cmake_policy command to set the policy and suppress this warning.
  84. This warning is for project developers.  Use -Wno-dev to suppress it.

  85. CMake Warning (dev) in modules/features2d/CMakeLists.txt:
  86.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  87.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  88.   Use the cmake_policy command to set the policy and suppress this warning.
  89. This warning is for project developers.  Use -Wno-dev to suppress it.

  90. CMake Warning (dev) in modules/features2d/CMakeLists.txt:
  91.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  92.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  93.   Use the cmake_policy command to set the policy and suppress this warning.
  94. This warning is for project developers.  Use -Wno-dev to suppress it.

  95. CMake Warning (dev) in modules/calib3d/CMakeLists.txt:
  96.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  97.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  98.   Use the cmake_policy command to set the policy and suppress this warning.
  99. This warning is for project developers.  Use -Wno-dev to suppress it.

  100. CMake Warning (dev) in modules/calib3d/CMakeLists.txt:
  101.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  102.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  103.   Use the cmake_policy command to set the policy and suppress this warning.
  104. This warning is for project developers.  Use -Wno-dev to suppress it.

  105. CMake Warning (dev) in modules/stitching/CMakeLists.txt:
  106.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  107.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  108.   Use the cmake_policy command to set the policy and suppress this warning.
  109. This warning is for project developers.  Use -Wno-dev to suppress it.

  110. CMake Warning (dev) in modules/stitching/CMakeLists.txt:
  111.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  112.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  113.   Use the cmake_policy command to set the policy and suppress this warning.
  114. This warning is for project developers.  Use -Wno-dev to suppress it.

  115. CMake Warning (dev) in modules/videostab/CMakeLists.txt:
  116.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  117.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  118.   Use the cmake_policy command to set the policy and suppress this warning.
  119. This warning is for project developers.  Use -Wno-dev to suppress it.

  120. CMake Warning (dev) in modules/videostab/CMakeLists.txt:
  121.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  122.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  123.   Use the cmake_policy command to set the policy and suppress this warning.
  124. This warning is for project developers.  Use -Wno-dev to suppress it.

  125. CMake Warning (dev) in modules/core/CMakeLists.txt:
  126.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  127.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  128.   Use the cmake_policy command to set the policy and suppress this warning.
  129. This warning is for project developers.  Use -Wno-dev to suppress it.

  130. CMake Warning (dev) in modules/core/CMakeLists.txt:
  131.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  132.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  133.   Use the cmake_policy command to set the policy and suppress this warning.
  134. This warning is for project developers.  Use -Wno-dev to suppress it.

  135. CMake Warning (dev) in modules/flann/CMakeLists.txt:
  136.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  137.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  138.   Use the cmake_policy command to set the policy and suppress this warning.
  139. This warning is for project developers.  Use -Wno-dev to suppress it.

  140. CMake Warning (dev) in modules/imgproc/CMakeLists.txt:
  141.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  142.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  143.   Use the cmake_policy command to set the policy and suppress this warning.
  144. This warning is for project developers.  Use -Wno-dev to suppress it.

  145. CMake Warning (dev) in modules/imgproc/CMakeLists.txt:
  146.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  147.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  148.   Use the cmake_policy command to set the policy and suppress this warning.
  149. This warning is for project developers.  Use -Wno-dev to suppress it.

  150. CMake Warning (dev) in modules/ml/CMakeLists.txt:
  151.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  152.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  153.   Use the cmake_policy command to set the policy and suppress this warning.
  154. This warning is for project developers.  Use -Wno-dev to suppress it.

  155. CMake Warning (dev) in modules/photo/CMakeLists.txt:
  156.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  157.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  158.   Use the cmake_policy command to set the policy and suppress this warning.
  159. This warning is for project developers.  Use -Wno-dev to suppress it.

  160. CMake Warning (dev) in modules/photo/CMakeLists.txt:
  161.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  162.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  163.   Use the cmake_policy command to set the policy and suppress this warning.
  164. This warning is for project developers.  Use -Wno-dev to suppress it.

  165. CMake Warning (dev) in modules/video/CMakeLists.txt:
  166.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  167.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  168.   Use the cmake_policy command to set the policy and suppress this warning.
  169. This warning is for project developers.  Use -Wno-dev to suppress it.

  170. CMake Warning (dev) in modules/video/CMakeLists.txt:
  171.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  172.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  173.   Use the cmake_policy command to set the policy and suppress this warning.
  174. This warning is for project developers.  Use -Wno-dev to suppress it.

  175. CMake Warning (dev) in modules/imgcodecs/CMakeLists.txt:
  176.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  177.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  178.   Use the cmake_policy command to set the policy and suppress this warning.
  179. This warning is for project developers.  Use -Wno-dev to suppress it.

  180. CMake Warning (dev) in modules/imgcodecs/CMakeLists.txt:
  181.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  182.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  183.   Use the cmake_policy command to set the policy and suppress this warning.
  184. This warning is for project developers.  Use -Wno-dev to suppress it.

  185. CMake Warning (dev) in modules/shape/CMakeLists.txt:
  186.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  187.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  188.   Use the cmake_policy command to set the policy and suppress this warning.
  189. This warning is for project developers.  Use -Wno-dev to suppress it.

  190. CMake Warning (dev) in modules/videoio/CMakeLists.txt:
  191.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  192.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  193.   Use the cmake_policy command to set the policy and suppress this warning.
  194. This warning is for project developers.  Use -Wno-dev to suppress it.

  195. CMake Warning (dev) in modules/videoio/CMakeLists.txt:
  196.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  197.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  198.   Use the cmake_policy command to set the policy and suppress this warning.
  199. This warning is for project developers.  Use -Wno-dev to suppress it.

  200. CMake Warning (dev) in modules/highgui/CMakeLists.txt:
  201.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  202.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  203.   Use the cmake_policy command to set the policy and suppress this warning.
  204. This warning is for project developers.  Use -Wno-dev to suppress it.

  205. CMake Warning (dev) in modules/objdetect/CMakeLists.txt:
  206.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  207.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  208.   Use the cmake_policy command to set the policy and suppress this warning.
  209. This warning is for project developers.  Use -Wno-dev to suppress it.

  210. CMake Warning (dev) in modules/objdetect/CMakeLists.txt:
  211.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  212.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  213.   Use the cmake_policy command to set the policy and suppress this warning.
  214. This warning is for project developers.  Use -Wno-dev to suppress it.

  215. CMake Warning (dev) in modules/superres/CMakeLists.txt:
  216.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  217.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  218.   Use the cmake_policy command to set the policy and suppress this warning.
  219. This warning is for project developers.  Use -Wno-dev to suppress it.

  220. CMake Warning (dev) in modules/superres/CMakeLists.txt:
  221.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  222.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  223.   Use the cmake_policy command to set the policy and suppress this warning.
  224. This warning is for project developers.  Use -Wno-dev to suppress it.

  225. CMake Warning (dev) in modules/features2d/CMakeLists.txt:
  226.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  227.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  228.   Use the cmake_policy command to set the policy and suppress this warning.
  229. This warning is for project developers.  Use -Wno-dev to suppress it.

  230. CMake Warning (dev) in modules/features2d/CMakeLists.txt:
  231.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  232.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  233.   Use the cmake_policy command to set the policy and suppress this warning.
  234. This warning is for project developers.  Use -Wno-dev to suppress it.

  235. CMake Warning (dev) in modules/calib3d/CMakeLists.txt:
  236.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  237.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  238.   Use the cmake_policy command to set the policy and suppress this warning.
  239. This warning is for project developers.  Use -Wno-dev to suppress it.

  240. CMake Warning (dev) in modules/calib3d/CMakeLists.txt:
  241.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  242.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  243.   Use the cmake_policy command to set the policy and suppress this warning.
  244. This warning is for project developers.  Use -Wno-dev to suppress it.

  245. CMake Warning (dev) in modules/stitching/CMakeLists.txt:
  246.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  247.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  248.   Use the cmake_policy command to set the policy and suppress this warning.
  249. This warning is for project developers.  Use -Wno-dev to suppress it.

  250. CMake Warning (dev) in modules/stitching/CMakeLists.txt:
  251.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  252.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  253.   Use the cmake_policy command to set the policy and suppress this warning.
  254. This warning is for project developers.  Use -Wno-dev to suppress it.

  255. CMake Warning (dev) in apps/traincascade/CMakeLists.txt:
  256.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  257.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  258.   Use the cmake_policy command to set the policy and suppress this warning.
  259. This warning is for project developers.  Use -Wno-dev to suppress it.

  260. CMake Warning (dev) in apps/createsamples/CMakeLists.txt:
  261.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  262.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  263.   Use the cmake_policy command to set the policy and suppress this warning.
  264. This warning is for project developers.  Use -Wno-dev to suppress it.

  265. CMake Warning (dev) in apps/annotation/CMakeLists.txt:
  266.   Policy CMP0020 is not set: Automatically link Qt executables to qtmain
  267.   target on Windows.  Run "cmake --help-policy CMP0020" for policy details.
  268.   Use the cmake_policy command to set the policy and suppress this warning.
  269. This warning is for project developers.  Use -Wno-dev to suppress it.

  270. Generating done
复制代码


回复

使用道具 举报

发表于 2017-12-7 09:11:10 | 显示全部楼层
编译错误我不知道为啥,但是我编译成功了这个东西,你要的话,我可以发给你!

点评

谢谢,我后面编译成功了,但是DOS下使用mingw32-make命令无此命令,问题描述见下面链接,还请指导 http://www.qter.org/forum.php?mod=viewthread&tid=12302&extra=  详情 回复 发表于 2017-12-7 23:26
回复

使用道具 举报

 楼主| 发表于 2017-12-7 23:26:22 | 显示全部楼层
Since 发表于 2017-12-7 09:11
编译错误我不知道为啥,但是我编译成功了这个东西,你要的话,我可以发给你! ...

谢谢,我后面编译成功了,但是DOS下使用mingw32-make命令无此命令,问题描述见下面链接,还请指导
http://www.qter.org/forum.php?mo ... id=12302&extra=
回复

使用道具 举报

发表于 2017-12-9 19:40:06 | 显示全部楼层
cmake找不到mingw的位置;
其实,我感觉还是用msys2更方便

点评

我勾选上“advanced”选项就编译没事,顺利到了这一步 求助:DOS下使用mingw32-make命令无此命令 - 项目作品 - Qt开源社区 - Powered by Discuz! http://www.qter.org/forum.php?mod=viewthread&tid=12302&page=1#pi  详情 回复 发表于 2017-12-9 22:03
回复

使用道具 举报

 楼主| 发表于 2017-12-9 22:03:25 | 显示全部楼层
pkgfs 发表于 2017-12-9 19:40
cmake找不到mingw的位置;
其实,我感觉还是用msys2更方便

我勾选上“advanced”选项就编译没事,顺利到了这一步
求助:DOS下使用mingw32-make命令无此命令 - 项目作品 - Qt开源社区 - Powered by Discuz! http://www.qter.org/forum.php?mo ... amp;page=1#pid37988
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

suoma

    主题

    帖子

    199

    积分

    Qter2级会员

    Rank: 2

    积分
    199

Qter2级会员

发私信

Qt开源社区——开源 共享 自由

微信扫一扫
查看精品教程!