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. Static build of Qt 5.12.3 - errors when building against it

Static build of Qt 5.12.3 - errors when building against it

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
8 Posts 2 Posters 1.3k 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.
  • G Offline
    G Offline
    GregB
    wrote on last edited by
    #1

    I want to build a static version of my program, and so am trying to build a static version of Qt. I have a CentOS 7 machine, and I've downloaded the Qt source, built it using the following command (although I've also tried many other options, and none have an effect)

    ./configure -opensource -confirm-license -recheck-all -silent -static -prefix /Qt/static/5.12.3 -release -nomake tests -nomake examples -skip qtwebengine -sql-mysql -qt-libjpeg -qt-libpng
    

    Qt builds and installs without error. When I build my program against the static build of Qt, using QtCreator, I get warnings and errors

    warning: libicui18n.so.56, needed by //Qt/5.12.3/gcc_64/lib/libQt5Core.so.5, not found (try using -rpath or -rpath-link)
    warning: libicuuc.so.56, needed by //Qt/5.12.3/gcc_64/lib/libQt5Core.so.5, not found (try using -rpath or -rpath-link)
    warning: libicudata.so.56, needed by //Qt/5.12.3/gcc_64/lib/libQt5Core.so.5, not found (try using -rpath or -rpath-link)
    /Qt/5.12.3/gcc_64/lib/libQt5Core.so.5:-1: error: undefined reference to 'u_strToLower_56'
    /Qt/5.12.3/gcc_64/lib/libQt5Core.so.5:-1: error: undefined reference to 'ucnv_getStandardName_56'
    ... 30 more errors ...
    

    I've read some bug reports about Qt static builds not working with ICU, but I can't replicate their work-arounds.

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

      Hi,

      You should share the bug report you read.

      The warning you get does not seem to come from your static build but from another one. See: //Qt/5.12.3/gcc_64/lib/libQt5Core.so.5

      On a side note, installing your build in '/Qt/static' is rather a bad idea. You are messing with the standard file system layout.

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

        I'm looking for the bug report now, but I can't find it.

        So, where does the error come from? QtCreator does seem to be linking to a dynamic version of Qt. That path is part of the Qt installation, but the static QtVersion/Kit points to the one that I built.

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

          Check your Qt versions and your Kits to ensure they are properly configured.

          And also check your project to ensure the right kit is in use.

          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
          • G Offline
            G Offline
            GregB
            wrote on last edited by
            #5

            Here's the bug report that most closely matched my issue: https://bugreports.qt.io/browse/QTBUG-53865

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

              The first thing you should do is check that your static build is installed properly. From the build output your are not using the Qt version you built yourself.

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

              G 1 Reply Last reply
              0
              • SGaistS SGaist

                The first thing you should do is check that your static build is installed properly. From the build output your are not using the Qt version you built yourself.

                G Offline
                G Offline
                GregB
                wrote on last edited by
                #7

                @SGaist That sounds good. How would I check to see if the static build is installed properly? gmake install ran without problem, and Qt Creator seems to recnognize everything from the /Qt/static/5.13.2/qmake path.

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

                  You can try to build your project from a console/terminal.

                  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