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. Qt creator cannot successfully start app built with custom built qt bundle on windows

Qt creator cannot successfully start app built with custom built qt bundle on windows

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
build qtqtcreatordeployment
7 Posts 3 Posters 2.0k 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.
  • F Offline
    F Offline
    farta
    wrote on 16 Apr 2018, 09:07 last edited by farta
    #1

    I've tried to build qt from source by the following configuration on windows.

    E:\build\qt\5.10.0\Src\configure.bat -prefix E:\build\qt\5.10.0\target -opengl desktop -platform win32-g++ -opensource -c++std c++14 -nomake examples -confirm-license
    mingw32-make -j4
    mingw32-make install -j4

    It works well. After setup qt.conf file, I can successfully register this qt bundle into qt creator. Qt creator also have no problem in building app with this bundle. However, when trying to run it in qt creator (both debugging & raw running), qt creator will report it cannot find supporting qt DLLs, just like you're trying to run a qt-based app in explorer, when qt DLLs is absent.
    The workaround is to manually run windeployqt.exe on built app before running. I've checked environment variables and other settings in building configurations and found no clue.
    This is not related to compiler versions as I've tried many versions of mingw-w64, include the official 5.3.0.
    I hit this issue in all qt & qt creator versions I've met, roughly since 5.7.0. Does anyone know how to fix this issue? Am I missing anything in configuring/building qt from source, or anything in register qt bundle into qt creator, or anything in building settings?
    Thanks a lot for any help.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 16 Apr 2018, 21:53 last edited by
      #2

      Hi and welcome to devnet,

      Something strange here, you shouldn't need to fiddle with qt.conf after you installed Qt. What made you do it ?

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

      F 1 Reply Last reply 17 Apr 2018, 03:31
      0
      • S SGaist
        16 Apr 2018, 21:53

        Hi and welcome to devnet,

        Something strange here, you shouldn't need to fiddle with qt.conf after you installed Qt. What made you do it ?

        F Offline
        F Offline
        farta
        wrote on 17 Apr 2018, 03:31 last edited by
        #3

        @SGaist said in Qt creator cannot successfully start app built with custom built qt bundle on windows:

        Hi and welcome to devnet,

        Something strange here, you shouldn't need to fiddle with qt.conf after you installed Qt. What made you do it ?

        I need to add a qt.conf file to the bin folder with content
        [Paths]
        Prefix=..

        Or I cannot register it in qt creator.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 17 Apr 2018, 21:37 last edited by SGaist
          #4

          Did you clone Qt or started from a package ?

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

          F 1 Reply Last reply 18 Apr 2018, 04:13
          0
          • S SGaist
            17 Apr 2018, 21:37

            Did you clone Qt or started from a package ?

            F Offline
            F Offline
            farta
            wrote on 18 Apr 2018, 04:13 last edited by
            #5

            @SGaist said in Qt creator cannot successfully start app built with custom built qt bundle on windows:

            Did you clone Qt or stated from a package ?

            I don't know what 'clone' means here. I was compiling Qt from source. I've tried everywhere src package and source code included in an offline installer.

            J 1 Reply Last reply 18 Apr 2018, 05:17
            0
            • F farta
              18 Apr 2018, 04:13

              @SGaist said in Qt creator cannot successfully start app built with custom built qt bundle on windows:

              Did you clone Qt or stated from a package ?

              I don't know what 'clone' means here. I was compiling Qt from source. I've tried everywhere src package and source code included in an offline installer.

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 18 Apr 2018, 05:17 last edited by
              #6

              @farta clone means here cloning from Qt repository (git clone)

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

              F 1 Reply Last reply 18 Apr 2018, 08:33
              0
              • J jsulm
                18 Apr 2018, 05:17

                @farta clone means here cloning from Qt repository (git clone)

                F Offline
                F Offline
                farta
                wrote on 18 Apr 2018, 08:33 last edited by
                #7

                @jsulm said in Qt creator cannot successfully start app built with custom built qt bundle on windows:

                @farta clone means here cloning from Qt repository (git clone)

                Thank you.
                I never clone it from Qt repository.

                1 Reply Last reply
                0

                6/7

                18 Apr 2018, 05:17

                • Login

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