Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Cannot configure Qt 4.7.4 with VS2008 - Error 1083

Cannot configure Qt 4.7.4 with VS2008 - Error 1083

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 3 Posters 3.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hasdjhf
    wrote on last edited by
    #1

    Hi everyone, first time poster here.

    So I've done the following steps:

    Using Windows 8, 64-bit
    Installed Visual Studio 2008 with all features (ie. including c++ compilers)
    Downloaded the qt-everywhere-opensource .zip file for qt 4.7.4 and extracted it to D:\Program Files\Qt\4.7.4-64bit
    I am using Qt 4.7.4 because the program I'd like to develop for was originally built against Qt4.7.4
    In the file mkspecs/win32-msvc2008/qmake.conf, I've changed the line that reads

    QMAKE_LIBS_CORE = kernel32.lib user32.lib shell32.lib uuid.lib ole32.lib advapi32.lib ws2_32.lib

    to

    QMAKE_LIBS_CORE = ole32.lib uuid.lib ws2_32.lib advapi32.lib shell32.lib user32.lib kernel32.lib

    This is supposedly in order to run the program I want to develop for.

    However, when I go to the 64-bit command prompt for Visual Studio, and run the following command:

    configure.exe -platform win32-msvc2008 -no-gif -qt-libpng -qt-zlib -no-libmng -qt-libtiff -qt-libjpeg -no-openssl -no-phonon -no-qt3support -D _BIND_TO_CURRENT_VCLIBS_VERSION=1

    I get the following output:

    Creating qmake...
    cl -c -Fo./ -W3 -nologo -O2 /MP -I. -Igenerators -Igenerators\unix -Igenerators\win32 -Igenerators\mac -Igenerators\symbian -ID:\Program Files\Qt\4.7.4-64bit\include -ID:\Program Files\Qt\4.7.4-64bit\include\QtCore -ID:\Program Files\Qt\4.7.4-64bit\include -ID:\Program Files\Qt\4.7.4-64bit\include\QtCore -ID:\Program Files\Qt\4.7.4-64bit\src\corelib\global -ID:\Program Files\Qt\4.7.4-64bit\src\corelib\xml -ID:\Program Files\Qt\4.7.4-64bit\mkspecs\win32-msvc2008 -ID:\Program Files\Qt\4.7.4-64bit\tools\shared -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_NO_PCRE -DQT_BOOTSTRAPPED -DQLIBRARYINFO_EPOCROOT -c -Yc -Fpqmake_pch.pch -TP qmake_pch.h
    cl : Command line warning D9030 : '/Yc' is incompatible with multiprocessing; ignoring /MP switch
    include
    c1xx : fatal error C1083: Cannot open source file: 'Files\Qt\4.7.4-64bit\include': No such file or directory
    QtCore
    c1xx : fatal error C1083: Cannot open source file: 'Files\Qt\4.7.4-64bit\include\QtCore': No such file or directory
    include
    c1xx : fatal error C1083: Cannot open source file: 'Files\Qt\4.7.4-64bit\include': No such file or directory
    QtCore
    c1xx : fatal error C1083: Cannot open source file: 'Files\Qt\4.7.4-64bit\include\QtCore': No such file or directory
    global
    c1xx : fatal error C1083: Cannot open source file: 'Files\Qt\4.7.4-64bit\src\corelib\global': No such file or directory
    xml
    c1xx : fatal error C1083: Cannot open source file: 'Files\Qt\4.7.4-64bit\src\corelib\xml': No such file or directory
    win32-msvc2008
    c1xx : fatal error C1083: Cannot open source file: 'Files\Qt\4.7.4-64bit\mkspecs\win32-msvc2008': No such file or directory
    shared
    c1xx : fatal error C1083: Cannot open source file: 'Files\Qt\4.7.4-64bit\tools\shared': No such file or directory
    qmake_pch.h
    qmake_pch.h(44) : fatal error C1083: Cannot open include file: 'qglobal.h': No such file or directory

    and

    cl -c -Fo./ -W3 -nologo -O2 /MP -I. -Igenerators -Igenerators\unix -Igenerators\win32 -Igenerators\mac -Igenerators\symbian -ID:\Program Files\Qt\4.7.4-64bit\include -ID:\Program Files\Qt\4.7.4-64bit\include\QtCore -ID:\Program Files\Qt\4.7.4-64bit\include -ID:\Program Files\Qt\4.7.4-64bit\include\QtCore -ID:\Program Files\Qt\4.7.4-64bit\src\corelib\global -ID:\Program Files\Qt\4.7.4-64bit\src\corelib\xml -ID:\Program Files\Qt\4.7.4-64bit\mkspecs\win32-msvc2008 -ID:\Program Files\Qt\4.7.4-64bit\tools\shared -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_NO_PCRE -DQT_BOOTSTRAPPED -DQLIBRARYINFO_EPOCROOT -c -Yc -Fpqmake_pch.pch -TP qmake_pch.h
    cl : Command line warning D9030 : '/Yc' is incompatible with multiprocessing; ignoring /MP switch
    include
    c1xx : fatal error C1083: Cannot open source file: 'Files\Qt\4.7.4-64bit\include': No such file or directory
    QtCore
    c1xx : fatal error C1083: Cannot open source file: 'Files\Qt\4.7.4-64bit\include\QtCore': No such file or directory
    include
    c1xx : fatal error C1083: Cannot open source file: 'Files\Qt\4.7.4-64bit\include': No such file or directory
    QtCore
    c1xx : fatal error C1083: Cannot open source file: 'Files\Qt\4.7.4-64bit\include\QtCore': No such file or directory
    global
    c1xx : fatal error C1083: Cannot open source file: 'Files\Qt\4.7.4-64bit\src\corelib\global': No such file or directory
    xml
    c1xx : fatal error C1083: Cannot open source file: 'Files\Qt\4.7.4-64bit\src\corelib\xml': No such file or directory
    win32-msvc2008
    c1xx : fatal error C1083: Cannot open source file: 'Files\Qt\4.7.4-64bit\mkspecs\win32-msvc2008': No such file or directory
    shared
    c1xx : fatal error C1083: Cannot open source file: 'Files\Qt\4.7.4-64bit\tools\shared': No such file or directory
    qmake_pch.h
    qmake_pch.h(44) : fatal error C1083: Cannot open include file: 'qglobal.h': No such file or directory
    Building qmake failed, return code 2

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Don't put Qt in a path with spaces, it's known to be problematic on this OS.

      The recommended path on windows is C:\Qt\name_of_qt_version

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • H Offline
        H Offline
        hasdjhf
        wrote on last edited by
        #3

        That did it! That's pretty embarrassing. I have a 128GB SSD that houses my OS, and a 1TB drive that I like to keep my data on. If I want to build Qt on my D drive, do I just need to make the path D:\Qt\4.7.4? Do you know what it is exactly that causes problems when the path becomes too long?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          That would be enough yes.

          The command line (cmd/bash etc.) can pass only so much char to a command so if you use long paths you'll saturate the call quickly

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • hskoglundH Offline
            hskoglundH Offline
            hskoglund
            wrote on last edited by
            #5

            Hi, in this case however I think it's the "embedded spaces" syndrome that strikes first, because Visual Studio does not see your path "D:\Program Files\Qt\4.7.4-64bit\include", only "Files\Qt\4.7.4-64bit\include"

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved