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. How to fix qcollectiongenerator in static Qt 5.8.0?
Qt 6.11 is out! See what's new in the release blog

How to fix qcollectiongenerator in static Qt 5.8.0?

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 2 Posters 6.4k 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.
  • K Offline
    K Offline
    Kroll
    wrote on last edited by Kroll
    #1

    I built qt-everywhere-opensource-src-5.8.0 with -static option under macOS.

    When I executed qcollectiongenerator I got this error:

    This application failed to start because it could not find or load the Qt platform plugin "minimal"
    
    in "".
    
    Available platform plugins are: cocoa.
    
    Reinstalling the application may fix this problem.
    

    Then I add QTPLUGIN.platforms = qminimal to qcollectiongenerator.pro and recompiled static Qt.

    Now the execution of qcollectiongenerator prints this error:

    QSqlDatabase: QSQLITE driver not loaded
    QSqlDatabase: available drivers:
    

    I have 2 questions about this.

    How to fully fix qcollectiongenerator in staticaly linked Qt?

    Is it possible to re-build single static plugin without rebuilding of Qt?

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

      Hi,

      What exact options did you pass to configure ?

      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
      • K Offline
        K Offline
        Kroll
        wrote on last edited by
        #3

        Exactly this command:

        ./configure -opensource -confirm-license -release -static -debug-and-release c++14 -openssl-linked -L/Developer/Qt/qt-deps/openssl-1.0.2k/dist/lib -I/Developer/Qt/qt-deps/openssl-1.0.2k/dist/include -icu -L/Developer/Qt/qt-deps/icu/dist/lib -I/Developer/Qt/qt-deps/icu/dist/include -opengl -nomake examples -prefix /Developer/Qt -recheck-all
        
        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You should check the How to insert image on this forum. thread.

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

          K 1 Reply Last reply
          0
          • SGaistS SGaist

            You should check the How to insert image on this forum. thread.

            K Offline
            K Offline
            Kroll
            wrote on last edited by
            #5

            @SGaist Why? I don't need to post any image.

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

              Because there's been some gremlins around :D That answer was meant for another thread, I don't know why it ended up here.

              In your case, that configure line doesn't work e.g. c++14 is not an option for configure. Also (unless it changed recently) the -L and -I options should have a space between them and the path (contrary to when you give these options to the compiler/linker respectively)

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

              K 1 Reply Last reply
              0
              • SGaistS SGaist

                Because there's been some gremlins around :D That answer was meant for another thread, I don't know why it ended up here.

                In your case, that configure line doesn't work e.g. c++14 is not an option for configure. Also (unless it changed recently) the -L and -I options should have a space between them and the path (contrary to when you give these options to the compiler/linker respectively)

                K Offline
                K Offline
                Kroll
                wrote on last edited by Kroll
                #7

                @SGaist

                Sorry, I missed the key before c++14.

                fixed line:

                ./configure -opensource -confirm-license -release -static -debug-and-release -c++std c++14 -openssl-linked -L/Developer/Qt/qt-deps/openssl-1.0.2k/dist/lib -I/Developer/Qt/qt-deps/openssl-1.0.2k/dist/include -icu -L/Developer/Qt/qt-deps/icu/dist/lib -I/Developer/Qt/qt-deps/icu/dist/include -opengl -nomake examples -prefix /Developer/Qt -recheck-all
                

                I have no problem with compilation finishing. And I have no problems when build my project binary on this static Qt.

                When I ran this configure line it printed me icu yes and openssl yes, no configure errors.

                You think that "QSQLITE driver not loaded" error because of no spaces between -L options and their values?

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

                  Static build of Qt means that you need additional handling for plugins. See here.

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

                  K 1 Reply Last reply
                  1
                  • SGaistS SGaist

                    Static build of Qt means that you need additional handling for plugins. See here.

                    K Offline
                    K Offline
                    Kroll
                    wrote on last edited by
                    #9

                    @SGaist of course I do this in my project file.

                    My question is about a qt tool binary file. Qt compiling generate a bunch of it's tools one of them I want to use. When static option is enabled qcollectiongenerator need some static plugins in it's pro-file but it have no.

                    I just run qcollectiongenerator help.qhcp -o help.qhc in command line and get this error. Without any touch of compiling my project.

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

                      Did you call make install after you built Qt ?

                      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