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 my own Qt and using it in Qt Creator
Forum Updated to NodeBB v4.3 + New Features

Building my own Qt and using it in Qt Creator

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

    I've built my own Qt (for 32bit Windows QWebEngine) and I'm having problems running my app that uses it via Qt Creator. I can build it okay when I add the Qt Version & a Kit based on it, but when I try to run it under Qt Creator, it says it is having a problem finding the "platforms" folder. If I add a qt.conf file in the same folder as my app executable that points to my Qt 5.12.3 installation, it works. But I don't really want to do that, as I share this with other people and I don't want them to have to create a qt.conf, because where they put the Qt might not be the same place.

    I don't need the qt.conf file if I am using a Qt installed by the Qt Maintenance Tool. So I am thinking there must be something else when I create the Kit or the Qt Version for my own Qt build, to tell Qt Creator where to find it when it runs my app. Or does that only work for "Auto-detected" kits?

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

      Hi,

      Did you call nmake install after you build of Qt ended ?

      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
      1
      • J Offline
        J Offline
        JonathanA
        wrote on last edited by
        #3

        Yes, I called install. Then I add my qt.conf file:

        [Paths]
        Documentation=../../Docs
        Examples=../../Examples
        Prefix=..
        

        to the bin folder and zip that up. Now I can move that zip anywhere and use that in Qt Creator as a Qt Version and create a Kit from it. So I can build just fine.

        But if I try to run from Qt Creator, it complains about not finding the 'platforms' folder. If I add a qt.conf file to the build folder where my app ends up, pointing to my Qt installation, it works fine. But I don't want to do that step and it certainly isn't done when I use the Qt installed via the Maintenance tool. So what else do I need to do so that I can run my app via Qt Creator without having to carry around a qt.conf?

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

          What options did you use to build Qt ?

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

          J 1 Reply Last reply
          0
          • SGaistS SGaist

            What options did you use to build Qt ?

            J Offline
            J Offline
            JonathanA
            wrote on last edited by
            #5

            @SGaist Here's my configure line:

            %_ROOT%\configure -prefix %_ROOT%\..\5.12.1-32-release -nomake examples -nomake tests -skip qtandroidextras -skip qtgamepad -skip qtmacextras -skip qtquickcontrols -skip qt3d -skip qtcanvas3d -skip qtx11extras -skip qtactiveqt -skip qtcharts -skip qtdatavis3d -skip qtpurchasing -skip qtquickcontrols2 -skip qtvirtualkeyboard -skip qtwayland -opensource -opengl dynamic -confirm-license -I %_OPENSSL%\include -L %_OPENSSL%\lib\windows\lib32\release
            

            I can build with it just fine. I just have to use a qt.conf to run with it via Qt Creator and was wondering why it is different than the Qt versions installed by the maintenance tool.

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

              Did you change Qt version in between ? You mention 5.12.3 before but now it's 5.12.1. Which is it ?

              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
              • J Offline
                J Offline
                JonathanA
                wrote on last edited by
                #7

                Sorry, it is 5.12.3. That's just the readme I used to jot down config notes from the first time I built it with 5.12.1

                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