Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Building Qt project results in msxml.h and gl.h errors?
Forum Updated to NodeBB v4.3 + New Features

Building Qt project results in msxml.h and gl.h errors?

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 2 Posters 472 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.
  • R Offline
    R Offline
    RichardB2
    wrote on last edited by RichardB2
    #1

    Hi, I'm working on a windows Qt project, the problem i have is that when i try to compile my qt project, i'm receiving the errors below:

    qtcreator_atfjxn4EU7.png

    So far i have tried:

    1. reinstalling Qt
    2. reinstalling the windows 10 sdk
    3. creating a new Qt project and copying the files across.
    4. creating a new Qt project and linking to the existing source files seperately.
    5. turning off jom to use nmake.

    But the errors still appear.

    Here is the full compile log:
    https://pastebin.com/aQTcywz8

    And here is my Qt .pro qmake file:
    https://pastebin.com/ShHgDr0t

    Please help!
    Thanks, Richard

    jsulmJ 1 Reply Last reply
    0
    • R RichardB2

      Hi, I'm working on a windows Qt project, the problem i have is that when i try to compile my qt project, i'm receiving the errors below:

      qtcreator_atfjxn4EU7.png

      So far i have tried:

      1. reinstalling Qt
      2. reinstalling the windows 10 sdk
      3. creating a new Qt project and copying the files across.
      4. creating a new Qt project and linking to the existing source files seperately.
      5. turning off jom to use nmake.

      But the errors still appear.

      Here is the full compile log:
      https://pastebin.com/aQTcywz8

      And here is my Qt .pro qmake file:
      https://pastebin.com/ShHgDr0t

      Please help!
      Thanks, Richard

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @RichardB2 Does a plain new Qt project compile?

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

      R 1 Reply Last reply
      0
      • jsulmJ jsulm

        @RichardB2 Does a plain new Qt project compile?

        R Offline
        R Offline
        RichardB2
        wrote on last edited by
        #3

        @jsulm Yeah a new project works fine, but once i copy all the code files into the project and hit build it pops up these error still

        jsulmJ 1 Reply Last reply
        0
        • R RichardB2

          @jsulm Yeah a new project works fine, but once i copy all the code files into the project and hit build it pops up these error still

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @RichardB2 Then I suggest to add these additional files one by one until the build fails and check the content of the files which causes the build to fail. I guess there are some macros causing problems.

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

          R 1 Reply Last reply
          1
          • jsulmJ jsulm

            @RichardB2 Then I suggest to add these additional files one by one until the build fails and check the content of the files which causes the build to fail. I guess there are some macros causing problems.

            R Offline
            R Offline
            RichardB2
            wrote on last edited by
            #5

            @jsulm Ok good point, i will try to but they are all coupled together.

            R 1 Reply Last reply
            0
            • R RichardB2

              @jsulm Ok good point, i will try to but they are all coupled together.

              R Offline
              R Offline
              RichardB2
              wrote on last edited by RichardB2
              #6

              @jsulm

              Building with just the libraries and it works ok.

              When i move the main.cpp, mainwindow.cpp/.h and mainwindow.ui code files into the new project it breaks.
              Initially it printed that it couldn't find any of the UI elements, then after i restarted QtCreator it came up with the original errors posted above.

              edit - I tried to copy and paste the contents of the main.cpp, mainwindow.cpp/.h and mainwindow.ui instead of overwriting the files but it had no effect.

              edit - will all files in place it still comes up with the msxml.h and gl.h errors

              edit - when i check the "clear environment" checkbox i get these errors qtcreator_oFqhECdBIT.png

              1 Reply Last reply
              0
              • R Offline
                R Offline
                RichardB2
                wrote on last edited by
                #7

                So i couldn't fit the problem at hand, so i rolled back the project to a working commit and managed to integrate the new code successfully.

                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