Qt World Summit: Register Today!

Version Confusion

  • I've recently accidentally installed the wrong version of Qt: Got 5.1.0 64bit for VS2012, when I needed 32bit for VS2010 with OpenGL. I've uninstalled and installed the right version.

    I've updated my path variables:
    QTDIR is C:\Qt\Qt5.1.0\5.1.0\msvc2010_opengl
    QMAKESPEC is win32-msvc2010

    However now when I'm trying to build something (QWT), I get this error:

        cd src\ && ( if not exist Makefile C:\Qt\Qt5.1.0\5.1.0\msvc2010_opengl\b

    in\qmake.exe E:\Software\qwt-6.1.0\src\src.pro -o Makefile ) && E:\Software\qwt-
    6.1.0\jom.exe -f Makefile
    E:\Software\qwt-6.1.0\jom.exe -f Makefile.Release all
    Error: dependent 'C:\Qt\Qt5.1.0\5.1.0\msvc2012_64_opengl\include\QtCore\qglobal.
    h' does not exist.

    I don't understand why it searches for the older Qt version (2012 / 64bit) but of course it's not there, and I can't build my project.

    Is there anywhere I should look to make sure I'm switched to the right version?

  • Moderators

    Probably some stale Makefile or configuration. Try a clean rebuild.

Log in to reply