Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-57461

Qt WebEngine fails to link on CentOS 6

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.9.0 Beta 2
    • 5.7.0, 5.7.1
    • Build System, WebEngine
    • 5ff4702ea7e567eecc767a2e40d383a27f4ee4fb

      qtwebengine/src/core fails to link on CentOS 6 while it links fine under CentOS 7. This is using the same build environment (devtoolset-3 and python27).

      The LIBS variable in qtwebengine/src/core/Makefile.core_module is missing many system libraries required to link, such as: -lfontconfig, -lfreetype, -lXcursor, -lXtst, and several more. These do appear in the LIBS varialbe of this file when building on CentOS 7.

      In addition, it appears that these are missing from the chromium ninja build as well, which may be the root of the problem.

      For example, here is the libs variable from one of the chromium ninja files.

      Under CentOS 7:

      ./obj/src/3rdparty/chromium/third_party/WebKit/Source/core/webcore_shared.ninja
      
      libs =  -ldl -lrt -lfontconfig -lfreetype -lsmime3 -lnss3 -lnssutil3 $
          -lplds4 -lplc4 -lnspr4 -lpthread -lresolv -lpng -lX11 -lXi -lXcursor $
          -lXext -lXfixes -lXrender -lXss -lXcomposite -lasound -lm -lz -lXdamage $
          -lXtst
      

      Under CentOS 6:

      ./obj/src/3rdparty/chromium/third_party/WebKit/Source/core/webcore_shared.ninja
      
      libs =  -ldl -lrt -lresolv -ljpeg -lasound -lm -lz
      

      Manually adding the missing libs to qtwebengine/src/core/Makefile.core_module allows the link to succeed.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            michal Michal Klocek
            stellartodd Todd Harrington
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes