Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. uic_wrapper.bat fails product compilation
Forum Updated to NodeBB v4.3 + New Features

uic_wrapper.bat fails product compilation

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
8 Posts 3 Posters 2.5k 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.
  • A Offline
    A Offline
    Adib
    wrote on last edited by
    #1

    Hi,
    I've just upgraded Qt to version 5.6.2 (from 4.8.6) by downloading the source code and compiling it locally.
    Before the upgrade, while compiling my code I've seen a call to uic.exe from the Qt folder.
    The problem is that while compiling my code with the new Qt, a different call is being made ("call 'compiled_folder'\ uic_wrapper.bat").
    This results in error later. How should I approach this issue?

    Thanks,
    Adi

    jsulmJ 1 Reply Last reply
    0
    • A Adib

      Hi,
      I've just upgraded Qt to version 5.6.2 (from 4.8.6) by downloading the source code and compiling it locally.
      Before the upgrade, while compiling my code I've seen a call to uic.exe from the Qt folder.
      The problem is that while compiling my code with the new Qt, a different call is being made ("call 'compiled_folder'\ uic_wrapper.bat").
      This results in error later. How should I approach this issue?

      Thanks,
      Adi

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

      @Adib Is your 5.6.2 Kit correctly set up? Are there any warnings/errors?
      Did you rerun qmake after switching to 5.6.2 and then a complete rebuild?

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

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Adib
        wrote on last edited by
        #3

        Thanks for your answer.
        I followed the instructions on http://doc.qt.io/qt-5/windows-building.html.
        Did i miss anything?
        I didn't get any errors/warnings and there was no mentioning of rerunning qmake as you said.

        Thanks,
        Adi

        jsulmJ 1 Reply Last reply
        0
        • A Adib

          Thanks for your answer.
          I followed the instructions on http://doc.qt.io/qt-5/windows-building.html.
          Did i miss anything?
          I didn't get any errors/warnings and there was no mentioning of rerunning qmake as you said.

          Thanks,
          Adi

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

          @Adib The link you posted only talks about building Qt not about using that build for your projects. You have a problem while building your software with Qt 5.6.2, right?
          So my questions are still valid: did you set-up a Kit with Qt 5.6.2? If so, are there any warnings/errors? Did you rerun qmake after selecting the Kit with Qt 5.6.2 (you always have to do this when switching Kit)? Did you rebuild? So, how do you use Qt 5.6.2?

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

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Adib
            wrote on last edited by
            #5

            Hi,

            Indeed I have a problem while building my software with Qt 5.6.2.
            I didn't set-up a Kit with Qt 5.6.2. We didn't do it also in previous Qt upgrades. Is it mandatory to use Kit? Why should I use it?
            In our application during the compilation we use Qt as external libs. I've changed the path to point the Qt5.6.2 output instead of our previous Qt version.

            Thanks,
            Adi.

            jsulmJ 1 Reply Last reply
            0
            • A Adib

              Hi,

              Indeed I have a problem while building my software with Qt 5.6.2.
              I didn't set-up a Kit with Qt 5.6.2. We didn't do it also in previous Qt upgrades. Is it mandatory to use Kit? Why should I use it?
              In our application during the compilation we use Qt as external libs. I've changed the path to point the Qt5.6.2 output instead of our previous Qt version.

              Thanks,
              Adi.

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

              @Adib That's why I asked how you build your app. Do you use QtCreator? qmake? If so then you need to setup a Kit - your own Qt builds will not be recognized automatically.
              "I've changed the path to point the Qt5.6.2 output instead of our previous Qt version" - where did you changed the path?

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

              1 Reply Last reply
              0
              • A Offline
                A Offline
                Adib
                wrote on last edited by
                #7

                Indeed I'm using qmake ("%QTDIR%\bin\qmake" -makefile 'filename'.pro -o %makefile_filename%). Could you please instruct me on how to continue?
                I've changed the path in my makefile.
                Thanks.

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

                  Hi,

                  That's pretty unusual to do command line development on Windows.

                  That note, what path are modifying in your Makefile ?

                  That's calling for trouble. You should rather setup your command line correctly than start fiddling with paths.

                  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

                  • Login

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