<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Use opencv in QT.]]></title><description><![CDATA[<p dir="auto">Hi, i want to use <code>opencv</code> in QT, so i must compile it with <code>mingw</code>. when i want to compile it with <code>CMake 2.8.10.2</code> it has following error:<br />
@<br />
The CXX compiler identification is GNU 4.7.2<br />
The C compiler identification is GNU 4.7.2<br />
Check for working CXX compiler: C:/Qt/Qt5.0.1/Tools/MinGW/bin/g++.exe<br />
Check for working CXX compiler: C:/Qt/Qt5.0.1/Tools/MinGW/bin/g++.exe -- broken<br />
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:54 (message):<br />
The C++ compiler "C:/Qt/Qt5.0.1/Tools/MinGW/bin/g++.exe" is not able to<br />
compile a simple test program.</p>
<pre><code>      It fails with the following output:
    
       Change Dir: C:/opencv_bin/CMakeFiles/CMakeTmp
    
      
    
      Run Build Command:C:/Qt/Qt5.0.1/Tools/MinGW/bin/mingw32-make.exe
      "cmTryCompileExec2270185098/fast"
    
      C:/Qt/Qt5.0.1/Tools/MinGW/bin/mingw32-make.exe -f
      CMakeFiles\cmTryCompileExec2270185098.dir\build.make
      CMakeFiles/cmTryCompileExec2270185098.dir/build
    
      mingw32-make.exe[1]: Entering directory
      'C:/opencv_bin/CMakeFiles/CMakeTmp'
    
      "C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -E cmake_progress_report
      C:\opencv_bin\CMakeFiles\CMakeTmp\CMakeFiles 1
    
      'C:\Users\' is not recognized as an internal or external command,
    
      operable program or batch file.
    
      CMakeFiles\cmTryCompileExec2270185098.dir\build.make:59: recipe for target
      'CMakeFiles/cmTryCompileExec2270185098.dir/testCXXCompiler.cxx.obj' failed
    
      mingw32-make.exe[1]: ***
      [CMakeFiles/cmTryCompileExec2270185098.dir/testCXXCompiler.cxx.obj] Error
      1
    
      mingw32-make.exe[1]: Leaving directory 'C:/opencv_bin/CMakeFiles/CMakeTmp'
    
      makefile:116: recipe for target 'cmTryCompileExec2270185098/fast' failed
    
      mingw32-make.exe: *** [cmTryCompileExec2270185098/fast] Error 2
    
      
    
      
    
      CMake will not be able to correctly generate this project.
    Call Stack (most recent call first):
      CMakeLists.txt:61 (project)
    
    
    Configuring incomplete, errors occurred!
</code></pre>
<p dir="auto">@<br />
any idea?</p>
]]></description><link>https://forum.qt.io/topic/26403/use-opencv-in-qt</link><generator>RSS for Node</generator><lastBuildDate>Sun, 25 Oct 2026 06:21:16 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/26403.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 19 Apr 2013 16:44:29 GMT</pubDate><ttl>60</ttl></channel></rss>