Static Build Error on ubuntu 18.04



  • make[3]: Entering directory '/home/Soft/Downloads/qt-everywhere-opensource-src-5.7.0/qtdeclarative/tools/qml'
    g++ -Wl,--gc-sections -Wl,-O1 -fuse-ld=gold -Wl,--enable-new-dtags -o ../../bin/qml .obj/main.o .obj/qml_qml_plugin_import.o .obj/qml_plugin_import.o .obj/qrc_qml.o .obj/moc_conf.o -L/home/Soft/Downloads/qt-everywhere-opensource-src-5.7.0/qtdeclarative/lib -L/home/Soft/Downloads/qt-everywhere-opensource-src-5.7.0/qtbase/lib -lQt5Widgets -L/home/Soft/Downloads/qt-everywhere-opensource-src-5.7.0/qtdeclarative/plugins/qmltooling -lqmldbg_debugger -lqmldbg_inspector -lqmldbg_local -lqmldbg_native -lqmldbg_profiler -lqmldbg_quickprofiler -lQt5Quick -lqmldbg_server -lQt5PacketProtocol -lqmldbg_tcp -lQt5Qml -L/home/Soft/Downloads/qt-everywhere-opensource-src-5.7.0/qtbase/plugins/bearer -lqconnmanbearer -lqgenericbearer -lqnmbearer -lQt5Network -lproxy -L/home/Soft/Downloads/qt-everywhere-opensource-src-5.7.0/qtwayland/plugins/platforms -lcustom-wayland -L/usr/local/lib -L/home/Soft/Downloads/qt-everywhere-opensource-src-5.7.0/qtwayland/lib -lqwayland-egl -lwayland-egl -lqwayland-generic -lQt5WaylandClient -lwayland-client -lwayland-cursor -L/home/Soft/Downloads/qt-everywhere-opensource-src-5.7.0/qtbase/plugins/platforms -lqxcb -L/home/Soft/Downloads/qt-everywhere-opensource-src-5.7.0/qtbase/plugins/xcbglintegrations -lqxcb-egl-integration -lqxcb-glx-integration -lxcb-glx -lQt5XcbQpa -lXi -lxcb-render -lxcb-render-util -lSM -lICE -lxcb-image -lxcb-icccm -lxcb-sync -lxcb-xfixes -lxcb-shm -lxcb-randr -lxcb-shape -lxcb-keysyms -lxcb-xinerama -lxcb-xkb -lxkbcommon-x11 -lxkbcommon -L/home/Soft/Downloads/qt-everywhere-opensource-src-5.7.0/qtimageformats/plugins/imageformats -lqdds -lqicns -lqtga -lqtiff -lqwbmp -lqwebp -L/home/Soft/Downloads/qt-everywhere-opensource-src-5.7.0/qtbase/plugins/imageformats -lqico -L/home/Soft/Downloads/qt-everywhere-opensource-src-5.7.0/qtbase/plugins/egldeviceintegrations -lqeglfs-x11-integration -lX11-xcb -lxcb -lQt5EglDeviceIntegration -lQt5PlatformSupport -lfontconfig -lfreetype -lQt5DBus -ldbus-1 -lXrender -lXext -lX11 -ludev -lQt5Gui -lharfbuzz -lQt5Core -licui18n -licuuc -licudata -lqtpcre -lm -ldl -lgthread-2.0 -pthread -lglib-2.0 -lrt -lEGL -lGL -lpthread
    /usr/bin/ld.gold: error: cannot find -lcustom-wayland
    /usr/bin/ld.gold: error: cannot find -lqwayland-egl
    /usr/bin/ld.gold: error: cannot find -lqwayland-generic
    collect2: error: ld returned 1 exit status
    Makefile:113: recipe for target '../../bin/qml' failed
    make[3]: *** [../../bin/qml] Error 1
    make[3]: Leaving directory '/home/Soft/Downloads/qt-everywhere-opensource-src-5.7.0/qtdeclarative/tools/qml'
    Makefile:98: recipe for target 'sub-qml-make_first' failed
    make[2]: *** [sub-qml-make_first] Error 2
    make[2]: Leaving directory '/home/Soft/Downloads/qt-everywhere-opensource-src-5.7.0/qtdeclarative/tools'
    Makefile:70: recipe for target 'sub-tools-make_first' failed
    make[1]: *** [sub-tools-make_first] Error 2
    make[1]: Leaving directory '/home/Soft/Downloads/qt-everywhere-opensource-src-5.7.0/qtdeclarative'
    Makefile:329: recipe for target 'module-qtdeclarative-make_first' failed
    make: *** [module-qtdeclarative-make_first] Error 2

    I follow process
    at make i get these errors


  • Qt Champions 2018

    @anil_arise said in Static Build Error on ubuntu 18.04:

    /usr/bin/ld.gold: error: cannot find -lcustom-wayland
    /usr/bin/ld.gold: error: cannot find -lqwayland-egl
    /usr/bin/ld.gold: error: cannot find -lqwayland-generic

    You're missing these libraries, install them first



  • @jsulm said in Static Build Error on ubuntu 18.04:

    custom-wayland

    not found libcustom-wayland ,libqwayland-egl and libqwayland-generic

    already installed wayland and qtwayland


  • Lifetime Qt Champion

    Hi,

    What exact parameters did you pass to configure ?



  • @SGaist sudo ./configure -static -release -nomake examples -nomake tools --prefix=/home/QT/Qt_Static/ -system-xcb -qt-libpng -no-libjpeg -qt-zlib -qt-pcre -gtk -opensource -confirm-license -opengl -qt-freetype -pulseaudio -alsa


  • Lifetime Qt Champion

    Why are you using sudo ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.