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. QTDIR paring Error after latest Visual Studio update
Forum Updated to NodeBB v4.3 + New Features

QTDIR paring Error after latest Visual Studio update

Scheduled Pinned Locked Moved Solved Installation and Deployment
visual studioqmakeupdate
7 Posts 3 Posters 4.3k Views
  • 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.
  • ArtoriasA Offline
    ArtoriasA Offline
    Artorias
    wrote on last edited by
    #1

    Greetings,
    yesterday I updated my Visual Studio to Update 3.
    When I try to open my .pro I get this Error:

    --- (Import): Generating new project of CGViewer.pro file
    --- (qmake) : Using: C:\Qt\Qt5.7.0\5.7\msvc2015_64\bin\qmake
    --- (qmake) : Working Directory: D:\Workspace\SoSe2016\ComputerGrafik\CGViewer\CGViewer 2
    --- (qmake) : Arguments: -tp vc "CGViewer.pro" -o "CGViewer.vcxproj" QMAKE_INCDIR_QT=$(QTDIR)\include QMAKE_LIBDIR=$(QTDIR)\lib QMAKE_MOC=$(QTDIR)\bin\moc.exe QMAKE_QMAKE=$(QTDIR)\bin\qmake.exe

    [1] - WARNING: Could not parse Compiler option '-std=c++0x'; added to AdditionalOptions.
    [2] - WARNING: You can suppress these warnings with CONFIG+=suppress_vcproj_warnings.
    [3] - WARNING: Could not parse Compiler option '-std=c++0x'; added to AdditionalOptions.

    --- (Import): Error(s): 3
    --- (qmake) : Exit Code: 0

    QTDIR konnte nicht aus Projektdatei CGViewer.vcxproj geparst werden.
    --- (Import): Generated project could not be loaded.
    --- (Import): Please look in the output above for errors and warnings.

    Here .pro:

    #-------------------------------------------------
    #
    # Project created by QtCreator 2014-03-06T11:52:40
    #
    #-------------------------------------------------
    
    QT          += core gui opengl
    
    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
    
    TARGET = CGViewer
    TEMPLATE = app
    
    OBJECTS_DIR		= ./obj
    MOC_DIR 		= ./moc
    
    QMAKE_CXXFLAGS += -std=c++0x
    
    SOURCES     +=  src/main.cpp\
                    src/Mainwindow.cpp \
                    src/Scene.cpp \
                    src/EditWidgets.cpp \
                    src/Model.cpp \
                    src/Light.cpp \
                    src/Sphere.cpp \
                    src/Skybox.cpp
    
    HEADERS     +=  src/Mainwindow.h \
                    src/CGTypes.h \
                    src/Scene.h \
                    src/EditWidgets.h \
                    src/Model.h \
                    src/Light.h \
                    src/Sphere.h \
                    src/CGFunctions.h \
                    src/Skybox.h
    
    CONFIG      += mobility debug console
    MOBILITY    =
    
    
    OTHER_FILES += \
                        shader/fragment.glsl \
                        shader/fragment_cel.glsl \
                        shader/vertex.glsl \
                        shader/sphereFragment.glsl \
                        shader/sphereVertex.glsl \
                        shader/rayVertex.glsl \
                        shader/rayVertex.glsl \
    					shader/skybox_vertex.glsl \
    					shader/chosen_fragment.glsl \
    					shader/skybox.glsl \
                        shader/fragment_selected.glsl \
                        plane/plane.obj \
                        plane/plane.mtl \
    
    LIBS += opengl32.lib
    CONFIG += c++11
    
    

    On my laptop on which I have not done that update everything is running as usual.
    I already tryed the Visual Studio repair setup with no success.

    I hope that I do not need to reinstall Visual Studio update 2 to get rid of the new update.

    raven-worxR jsulmJ 2 Replies Last reply
    0
    • ArtoriasA Artorias

      Greetings,
      yesterday I updated my Visual Studio to Update 3.
      When I try to open my .pro I get this Error:

      --- (Import): Generating new project of CGViewer.pro file
      --- (qmake) : Using: C:\Qt\Qt5.7.0\5.7\msvc2015_64\bin\qmake
      --- (qmake) : Working Directory: D:\Workspace\SoSe2016\ComputerGrafik\CGViewer\CGViewer 2
      --- (qmake) : Arguments: -tp vc "CGViewer.pro" -o "CGViewer.vcxproj" QMAKE_INCDIR_QT=$(QTDIR)\include QMAKE_LIBDIR=$(QTDIR)\lib QMAKE_MOC=$(QTDIR)\bin\moc.exe QMAKE_QMAKE=$(QTDIR)\bin\qmake.exe

      [1] - WARNING: Could not parse Compiler option '-std=c++0x'; added to AdditionalOptions.
      [2] - WARNING: You can suppress these warnings with CONFIG+=suppress_vcproj_warnings.
      [3] - WARNING: Could not parse Compiler option '-std=c++0x'; added to AdditionalOptions.

      --- (Import): Error(s): 3
      --- (qmake) : Exit Code: 0

      QTDIR konnte nicht aus Projektdatei CGViewer.vcxproj geparst werden.
      --- (Import): Generated project could not be loaded.
      --- (Import): Please look in the output above for errors and warnings.

      Here .pro:

      #-------------------------------------------------
      #
      # Project created by QtCreator 2014-03-06T11:52:40
      #
      #-------------------------------------------------
      
      QT          += core gui opengl
      
      greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
      
      TARGET = CGViewer
      TEMPLATE = app
      
      OBJECTS_DIR		= ./obj
      MOC_DIR 		= ./moc
      
      QMAKE_CXXFLAGS += -std=c++0x
      
      SOURCES     +=  src/main.cpp\
                      src/Mainwindow.cpp \
                      src/Scene.cpp \
                      src/EditWidgets.cpp \
                      src/Model.cpp \
                      src/Light.cpp \
                      src/Sphere.cpp \
                      src/Skybox.cpp
      
      HEADERS     +=  src/Mainwindow.h \
                      src/CGTypes.h \
                      src/Scene.h \
                      src/EditWidgets.h \
                      src/Model.h \
                      src/Light.h \
                      src/Sphere.h \
                      src/CGFunctions.h \
                      src/Skybox.h
      
      CONFIG      += mobility debug console
      MOBILITY    =
      
      
      OTHER_FILES += \
                          shader/fragment.glsl \
                          shader/fragment_cel.glsl \
                          shader/vertex.glsl \
                          shader/sphereFragment.glsl \
                          shader/sphereVertex.glsl \
                          shader/rayVertex.glsl \
                          shader/rayVertex.glsl \
      					shader/skybox_vertex.glsl \
      					shader/chosen_fragment.glsl \
      					shader/skybox.glsl \
                          shader/fragment_selected.glsl \
                          plane/plane.obj \
                          plane/plane.mtl \
      
      LIBS += opengl32.lib
      CONFIG += c++11
      
      

      On my laptop on which I have not done that update everything is running as usual.
      I already tryed the Visual Studio repair setup with no success.

      I hope that I do not need to reinstall Visual Studio update 2 to get rid of the new update.

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @Artorias
      We are talking about VS2015?
      And i suppose you are using the unofficial Qt Addin (Qt5Package)?

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      ArtoriasA 1 Reply Last reply
      0
      • ArtoriasA Artorias

        Greetings,
        yesterday I updated my Visual Studio to Update 3.
        When I try to open my .pro I get this Error:

        --- (Import): Generating new project of CGViewer.pro file
        --- (qmake) : Using: C:\Qt\Qt5.7.0\5.7\msvc2015_64\bin\qmake
        --- (qmake) : Working Directory: D:\Workspace\SoSe2016\ComputerGrafik\CGViewer\CGViewer 2
        --- (qmake) : Arguments: -tp vc "CGViewer.pro" -o "CGViewer.vcxproj" QMAKE_INCDIR_QT=$(QTDIR)\include QMAKE_LIBDIR=$(QTDIR)\lib QMAKE_MOC=$(QTDIR)\bin\moc.exe QMAKE_QMAKE=$(QTDIR)\bin\qmake.exe

        [1] - WARNING: Could not parse Compiler option '-std=c++0x'; added to AdditionalOptions.
        [2] - WARNING: You can suppress these warnings with CONFIG+=suppress_vcproj_warnings.
        [3] - WARNING: Could not parse Compiler option '-std=c++0x'; added to AdditionalOptions.

        --- (Import): Error(s): 3
        --- (qmake) : Exit Code: 0

        QTDIR konnte nicht aus Projektdatei CGViewer.vcxproj geparst werden.
        --- (Import): Generated project could not be loaded.
        --- (Import): Please look in the output above for errors and warnings.

        Here .pro:

        #-------------------------------------------------
        #
        # Project created by QtCreator 2014-03-06T11:52:40
        #
        #-------------------------------------------------
        
        QT          += core gui opengl
        
        greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
        
        TARGET = CGViewer
        TEMPLATE = app
        
        OBJECTS_DIR		= ./obj
        MOC_DIR 		= ./moc
        
        QMAKE_CXXFLAGS += -std=c++0x
        
        SOURCES     +=  src/main.cpp\
                        src/Mainwindow.cpp \
                        src/Scene.cpp \
                        src/EditWidgets.cpp \
                        src/Model.cpp \
                        src/Light.cpp \
                        src/Sphere.cpp \
                        src/Skybox.cpp
        
        HEADERS     +=  src/Mainwindow.h \
                        src/CGTypes.h \
                        src/Scene.h \
                        src/EditWidgets.h \
                        src/Model.h \
                        src/Light.h \
                        src/Sphere.h \
                        src/CGFunctions.h \
                        src/Skybox.h
        
        CONFIG      += mobility debug console
        MOBILITY    =
        
        
        OTHER_FILES += \
                            shader/fragment.glsl \
                            shader/fragment_cel.glsl \
                            shader/vertex.glsl \
                            shader/sphereFragment.glsl \
                            shader/sphereVertex.glsl \
                            shader/rayVertex.glsl \
                            shader/rayVertex.glsl \
        					shader/skybox_vertex.glsl \
        					shader/chosen_fragment.glsl \
        					shader/skybox.glsl \
                            shader/fragment_selected.glsl \
                            plane/plane.obj \
                            plane/plane.mtl \
        
        LIBS += opengl32.lib
        CONFIG += c++11
        
        

        On my laptop on which I have not done that update everything is running as usual.
        I already tryed the Visual Studio repair setup with no success.

        I hope that I do not need to reinstall Visual Studio update 2 to get rid of the new update.

        jsulmJ Online
        jsulmJ Online
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @Artorias Regarding "WARNING: Could not parse Compiler option '-std=c++0x'": if you want to activate C++11 then use

        CONFIG += c++11
        

        instead in PRO file

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        ArtoriasA 1 Reply Last reply
        0
        • raven-worxR raven-worx

          @Artorias
          We are talking about VS2015?
          And i suppose you are using the unofficial Qt Addin (Qt5Package)?

          ArtoriasA Offline
          ArtoriasA Offline
          Artorias
          wrote on last edited by
          #4

          @raven-worx
          Yes I am using this add in

          1 Reply Last reply
          0
          • jsulmJ jsulm

            @Artorias Regarding "WARNING: Could not parse Compiler option '-std=c++0x'": if you want to activate C++11 then use

            CONFIG += c++11
            

            instead in PRO file

            ArtoriasA Offline
            ArtoriasA Offline
            Artorias
            wrote on last edited by
            #5

            @jsulm
            in my last collum i already use CONFIG += c++11

            jsulmJ 1 Reply Last reply
            0
            • ArtoriasA Artorias

              @jsulm
              in my last collum i already use CONFIG += c++11

              jsulmJ Online
              jsulmJ Online
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Artorias Then there is no need for QMAKE_CXXFLAGS += -std=c++0x

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              ArtoriasA 1 Reply Last reply
              0
              • jsulmJ jsulm

                @Artorias Then there is no need for QMAKE_CXXFLAGS += -std=c++0x

                ArtoriasA Offline
                ArtoriasA Offline
                Artorias
                wrote on last edited by
                #7

                @jsulm thanks for the tipp!

                I solved my problem by reinstalling VS2015 Update 2.

                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