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 QT 5.12.11 LTS to run on both CentOS7 and CentOS8

Building QT 5.12.11 LTS to run on both CentOS7 and CentOS8

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 318 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.
  • Q Offline
    Q Offline
    qa_test
    wrote on last edited by
    #1

    I can build 5.12.11 LTS from source on CentOS7 with the native gcc 4.8.5 using the suggested config options from the table on the support page (e.g., -opensource -confirm-license -verbose -release -shared -nomake tests -nomake examples -no-libudev -no-use-gold-linker -force-debug-info -separate
    -debug-info -no-sql-mysql -plugin-sql-psql -plugin-sql-sqlite -qt-libjpeg -qt-libpng -qt-xcb -sysconfdir /etc/xdg -qt-pcre -qt-harfbuzz -R .)

    The CentOS7 build does create a libQt5X11Extras.so and Qt binaries link against the native CentOS7 libraries like libicu*.so.50 and libpng15.so.15. That CentOS7 build cannot run on CentOS8 because those system library versions have been respectively bumped to 60 and 16.

    If I build the same 5.12.11 source on CentOS8 using the native gcc 8.4.1 with the same config options used for the CentOS7 build, then the newer libicu* and libpng* system libs are linked in, but no libQt5X11Extras.so is built - which our code uses.

    I'm somewhat new to building QT from source and so would like to understand if my approach is correct, e.g., is it OK to expect the 5.12.11 source can be configured to build libQt5X11Extras.so on CentOS8 - or what a workaround/alternative could be for config options.

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

      Hi and welcome to devnet,

      If that module is not built then you are likely missing one of its dependencies. Did you check that ?

      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
      • JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on last edited by
        #3

        Hi, and welcome!

        As @SGaist mentioned, it's likely a dependency issue. Ensure that you've installed all the development libraries listed at https://doc.qt.io/qt-5/linux-requirements.html

        The same configuration options should then work.

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply
        1
        • Q Offline
          Q Offline
          qa_test
          wrote on last edited by
          #4

          Thank you SGaist and JKSH for the prompt replies and info. For both the cos7 and cos8 builds the init-repository command listed the qtx11extras module by default and I also manually did a "git submodule init qtx11extras" followed by a "git submodule update qtx11extras". When I compare the build logs I see the cos7 build enters the qtx11extras/src subdir and shortly after a perl command is run, make recurses down 3 levels and builds that source. But in the cos8 build make only recurses down 2 levels and does not issue commands to build the source. I will try to see if I am missing something on the cos8 system. I have attached a screenshot comparing the build logs.

          ![0_1631609347734_qt_5_12_11_cos7_cos8_x11extras_1.png](Uploading 100%)

          1 Reply Last reply
          0
          • Q Offline
            Q Offline
            qa_test
            wrote on last edited by
            #5

            ... trying upload of smaller size for my previous post.
            qt_5_12_11_cos7_cos8_x11extras_2.jpg

            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