Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

GammaRay build Error on ubuntu



  • Hi,I want to build GammaRay from source on ubuntu;
    when execute make command I get the error below:
    scanning dependencies of target gammaray_webinspector_ui_plugin
    [ 75%] Building CXX object plugins/webinspector/CMakeFiles/gammaray_webinspector_ui_plugin.dir/gammaray_webinspector_ui_plugin_autogen/mocs_compilation.cpp.o
    [ 75%] Building CXX object plugins/webinspector/CMakeFiles/gammaray_webinspector_ui_plugin.dir/webinspectorwidget.cpp.o
    [ 75%] Building CXX object plugins/webinspector/CMakeFiles/gammaray_webinspector_ui_plugin.dir/moc_webinspectorwidget.cpp.o
    [ 75%] Linking CXX shared module ../../lib/gammaray/2.11/qt5_12-x86_64/gammaray_webinspector_ui_plugin.so
    /usr/bin/ld: /home/yanshizhen/Qt5.12.3/5.12.3/gcc_64/lib/libQt5WebEngineCore.so.5.12.3: .dynsym local symbol at index 3 (>= sh_info of 3)
    /usr/bin/ld: /home/yanshizhen/Qt5.12.3/5.12.3/gcc_64/lib/libQt5WebEngineCore.so.5.12.3: .dynsym local symbol at index 4 (>= sh_info of 3)
    /usr/bin/ld: /home/yanshizhen/Qt5.12.3/5.12.3/gcc_64/lib/libQt5WebEngineCore.so.5.12.3: .dynsym local symbol at index 5 (>= sh_info of 3)
    /usr/bin/ld: /home/yanshizhen/Qt5.12.3/5.12.3/gcc_64/lib/libQt5WebEngineCore.so.5.12.3: .dynsym local symbol at index 6 (>= sh_info of 3)
    /usr/bin/ld: /home/yanshizhen/Qt5.12.3/5.12.3/gcc_64/lib/libQt5WebEngineCore.so.5.12.3: .dynsym local symbol at index 7 (>= sh_info of 3)
    /usr/bin/ld: /home/yanshizhen/Qt5.12.3/5.12.3/gcc_64/lib/libQt5WebEngineCore.so.5.12.3: .dynsym local symbol at index 8 (>= sh_info of 3)
    /usr/bin/ld: /home/yanshizhen/Qt5.12.3/5.12.3/gcc_64/lib/libQt5WebEngineCore.so.5.12.3: .dynsym local symbol at index 9 (>= sh_info of 3)
    /usr/bin/ld: /home/yanshizhen/Qt5.12.3/5.12.3/gcc_64/lib/libQt5WebEngineCore.so.5.12.3: .dynsym local symbol at index 10 (>= sh_info of 3)
    /usr/bin/ld: /home/yanshizhen/Qt5.12.3/5.12.3/gcc_64/lib/libQt5WebEngineCore.so.5.12.3: .dynsym local symbol at index 11 (>= sh_info of 3)
    /usr/bin/ld: /home/yanshizhen/Qt5.12.3/5.12.3/gcc_64/lib/libQt5WebEngineCore.so.5.12.3: .dynsym local symbol at index 12 (>= sh_info of 3)
    /usr/bin/ld: /home/yanshizhen/Qt5.12.3/5.12.3/gcc_64/lib/libQt5WebEngineCore.so.5.12.3: .dynsym local symbol at index 13 (>= sh_info of 3)
    /usr/bin/ld: /home/yanshizhen/Qt5.12.3/5.12.3/gcc_64/lib/libQt5WebEngineCore.so.5.12.3: .dynsym local symbol at index 14 (>= sh_info of 3)
    /usr/bin/ld: /home/yanshizhen/Qt5.12.3/5.12.3/gcc_64/lib/libQt5WebEngineCore.so.5.12.3: .dynsym local symbol at index 15 (>= sh_info of 3)
    /usr/bin/ld: /home/yanshizhen/Qt5.12.3/5.12.3/gcc_64/lib/libQt5WebEngineCore.so.5.12.3: .dynsym local symbol at index 16 (>= sh_info of 3)
    /usr/bin/ld: /home/yanshizhen/Qt5.12.3/5.12.3/gcc_64/lib/libQt5WebEngineCore.so.5.12.3: .dynsym local symbol at index 17 (>= sh_info of 3)
    collect2: error: ld returned 1 exit status
    make[2]: *** [plugins/webinspector/CMakeFiles/gammaray_webinspector_ui_plugin.dir/build.make:136: lib/gammaray/2.11/qt5_12-x86_64/gammaray_webinspector_ui_plugin.so] Error 1
    make[1]: *** [CMakeFiles/Makefile2:9107: plugins/webinspector/CMakeFiles/gammaray_webinspector_ui_plugin.dir/all] Error 2
    make: *** [Makefile:163: all] Error 2

    what is the error? How to resolve it?
    thank you!



  • Maybe in your Qt configuration QtWebengine missing



  • @guerinoni
    QT version: qt-opensource-linux-x64-5.12.3
    ubuntu version:ubuntu-19.10-desktop-amd64



  • @sz_y said in GammaRay build Error on ubuntu:

    qt-opensource-linux-x64-5.12.3

    try to use maintenance tool because you need QtWebengine



  • @guerinoni can you be more specific?
    Thank you!


  • Qt Champions 2019

    @sz_y Qt Webengine is not installed by default, that's why @guerinoni suggested to open the Qt Maintenance Tool and select/install Qt Webengine there for your Qt version. Qt Maintenance Tool is in your Qt installation folder.



  • @jsulm @sz_y Yes, thanks to enforcing my answer, for developer Qt Maintenance is very useful instead installig every package by hand



  • @guerinoni @jsulm Thank you! After I reinstall ubuntu of version ubuntu-18.04.3-desktop-amd64,the error is not appear;Maybe the ubuntu-19.10-desktop-amd64 have some problems in supporting QT.



  • Hello, I have the same problem as above:

    /usr/bin/ld: /home/user/Qt/5.12.6/gcc_64/lib/libQt5WebEngineCore.so.5.12.6: .dynsym local symbol at index 3 (>= sh_info of 3)
    /usr/bin/ld: /home/user/Qt/5.12.6/gcc_64/lib/libQt5WebEngineCore.so.5.12.6: .dynsym local symbol at index 4 (>= sh_info of 3)
    /usr/bin/ld: /home/user/Qt/5.12.6/gcc_64/lib/libQt5WebEngineCore.so.5.12.6: .dynsym local symbol at index 5 (>= sh_info of 3)
    /usr/bin/ld: /home/user/Qt/5.12.6/gcc_64/lib/libQt5WebEngineCore.so.5.12.6: .dynsym local symbol at index 6 (>= sh_info of 3)
    /usr/bin/ld: /home/user/Qt/5.12.6/gcc_64/lib/libQt5WebEngineCore.so.5.12.6: .dynsym local symbol at index 7 (>= sh_info of 3)
    /usr/bin/ld: /home/user/Qt/5.12.6/gcc_64/lib/libQt5WebEngineCore.so.5.12.6: .dynsym local symbol at index 8 (>= sh_info of 3)
    /usr/bin/ld: /home/user/Qt/5.12.6/gcc_64/lib/libQt5WebEngineCore.so.5.12.6: .dynsym local symbol at index 9 (>= sh_info of 3)
    /usr/bin/ld: /home/user/Qt/5.12.6/gcc_64/lib/libQt5WebEngineCore.so.5.12.6: .dynsym local symbol at index 10 (>= sh_info of 3)
    /usr/bin/ld: /home/user/Qt/5.12.6/gcc_64/lib/libQt5WebEngineCore.so.5.12.6: .dynsym local symbol at index 11 (>= sh_info of 3)
    /usr/bin/ld: /home/user/Qt/5.12.6/gcc_64/lib/libQt5WebEngineCore.so.5.12.6: .dynsym local symbol at index 12 (>= sh_info of 3)
    /usr/bin/ld: /home/user/Qt/5.12.6/gcc_64/lib/libQt5WebEngineCore.so.5.12.6: .dynsym local symbol at index 13 (>= sh_info of 3)
    /usr/bin/ld: /home/user/Qt/5.12.6/gcc_64/lib/libQt5WebEngineCore.so.5.12.6: .dynsym local symbol at index 14 (>= sh_info of 3)
    /usr/bin/ld: /home/user/Qt/5.12.6/gcc_64/lib/libQt5WebEngineCore.so.5.12.6: .dynsym local symbol at index 15 (>= sh_info of 3)
    /usr/bin/ld: /home/user/Qt/5.12.6/gcc_64/lib/libQt5WebEngineCore.so.5.12.6: .dynsym local symbol at index 16 (>= sh_info of 3)
    /usr/bin/ld: /home/user/Qt/5.12.6/gcc_64/lib/libQt5WebEngineCore.so.5.12.6: .dynsym local symbol at index 17 (>= sh_info of 3)
    /usr/bin/ld: /home/user/Qt/5.12.6/gcc_64/lib/libQt5WebEngineCore.so.5.12.6: .dynsym local symbol at index 3 (>= sh_info of 3)
    /usr/bin/ld: /home/user/Qt/5.12.6/gcc_64/lib/libQt5WebEngineCore.so.5.12.6: .dynsym local symbol at index 4 (>= sh_info of 3)
    /usr/bin/ld: /home/user/Qt/5.12.6/gcc_64/lib/libQt5WebEngineCore.so.5.12.6: .dynsym local symbol at index 5 (>= sh_info of 3)
    /usr/bin/ld: /home/user/Qt/5.12.6/gcc_64/lib/libQt5WebEngineCore.so.5.12.6: .dynsym local symbol at index 6 (>= sh_info of 3)
    /usr/bin/ld: /home/user/Qt/5.12.6/gcc_64/lib/libQt5WebEngineCore.so.5.12.6: .dynsym local symbol at index 7 (>= sh_info of 3)
    /usr/bin/ld: /home/user/Qt/5.12.6/gcc_64/lib/libQt5WebEngineCore.so.5.12.6: .dynsym local symbol at index 8 (>= sh_info of 3)
    /usr/bin/ld: /home/user/Qt/5.12.6/gcc_64/lib/libQt5WebEngineCore.so.5.12.6: .dynsym local symbol at index 9 (>= sh_info of 3)
    /usr/bin/ld: /home/user/Qt/5.12.6/gcc_64/lib/libQt5WebEngineCore.so.5.12.6: .dynsym local symbol at index 10 (>= sh_info of 3)
    /usr/bin/ld: /home/user/Qt/5.12.6/gcc_64/lib/libQt5WebEngineCore.so.5.12.6: .dynsym local symbol at index 11 (>= sh_info of 3)
    /usr/bin/ld: /home/user/Qt/5.12.6/gcc_64/lib/libQt5WebEngineCore.so.5.12.6: .dynsym local symbol at index 12 (>= sh_info of 3)
    /usr/bin/ld: /home/user/Qt/5.12.6/gcc_64/lib/libQt5WebEngineCore.so.5.12.6: .dynsym local symbol at index 13 (>= sh_info of 3)
    /usr/bin/ld: /home/user/Qt/5.12.6/gcc_64/lib/libQt5WebEngineCore.so.5.12.6: .dynsym local symbol at index 14 (>= sh_info of 3)
    /usr/bin/ld: /home/user/Qt/5.12.6/gcc_64/lib/libQt5WebEngineCore.so.5.12.6: .dynsym local symbol at index 15 (>= sh_info of 3)
    /usr/bin/ld: /home/user/Qt/5.12.6/gcc_64/lib/libQt5WebEngineCore.so.5.12.6: .dynsym local symbol at index 16 (>= sh_info of 3)
    /usr/bin/ld: /home/user/Qt/5.12.6/gcc_64/lib/libQt5WebEngineCore.so.5.12.6: .dynsym local symbol at index 17 (>= sh_info of 3)

    This only happens on the first run after I have changed some code, every re-run of the same stage of code starts directly.
    The QtWebEngine is installed, I already tried to remove and reinstall it, but that does not help. Neither does another version of Qt help.
    It also is correctly linked in the kit-settings.

    I am pretty sure that it worked before I updated my version of Qt, therefore I don't think it is a problem with ubuntu 19.10.
    When I ignore this error my programm runs perfeclty fine, but it is pretty annoying to always click the 'proceed/ignore errors' button after each new build.

    I am thankful for any suggestions on how I can solve this problem.
    And sorry for kind of gravedigging this, but this was the most promising google hit.

    Edit:

    configuring the gold linker with the command:
    sudo ln -sf /usr/bin/x86_64-linux-gnu-ld.gold /usr/bin/ld

    found here:
    https://cristianadam.eu/20170709/speeding-up-cmake/

    did the job, the errors are gone.


Log in to reply