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. Include additional libs to static Qt build
Forum Updated to NodeBB v4.3 + New Features

Include additional libs to static Qt build

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
8 Posts 3 Posters 749 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.
  • A Offline
    A Offline
    al072072
    wrote on 26 Apr 2024, 18:54 last edited by
    #1

    Hello dear community! I am trying to build the static version of Qt 6.7.0 for Linux and i need to include some additional dependency to the static build, here are the dependencies:
    libpcre2-dev
    libxcb-cursor0

    I've successfully built the static lib for Ubuntu, but when i run the app in Debian it doesn't run because of above libs are abscent.

    My question is how to make a static build of Qt with that additional dependencies?

    Here is my current configuration string:

    ./configure -prefix /home/alex/Qt/6.7.0/static_gcc_64 -release -opensource -confirm-license -static -no-glib -no-pulseaudio -no-alsa -opengl desktop -nomake examples -nomake tests -xcb -xcb-xlib 
    
    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 26 Apr 2024, 19:05 last edited by
      #2

      Hi,

      You have to build them statically as well.

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

      A 1 Reply Last reply 26 Apr 2024, 19:08
      2
      • S SGaist
        26 Apr 2024, 19:05

        Hi,

        You have to build them statically as well.

        A Offline
        A Offline
        al072072
        wrote on 26 Apr 2024, 19:08 last edited by
        #3

        @SGaist
        Thank you for reply, after i build them statically how to include them to Qt static build?

        A 1 Reply Last reply 28 Apr 2024, 18:24
        0
        • A al072072
          26 Apr 2024, 19:08

          @SGaist
          Thank you for reply, after i build them statically how to include them to Qt static build?

          A Offline
          A Offline
          al072072
          wrote on 28 Apr 2024, 18:24 last edited by
          #4

          Here is ldd output:

          linux-vdso.so.1 (0x00007fff16deb000)
          	libxcb-glx.so.0 => /lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007f8b07fe0000)
          	libX11-xcb.so.1 => /lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f8b07fdb000)
          	libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f8b06abe000)
          	libEGL.so.1 => /lib/x86_64-linux-gnu/libEGL.so.1 (0x00007f8b07fc5000)
          	libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f8b06a8a000)
          	libOpenGL.so.0 => /lib/x86_64-linux-gnu/libOpenGL.so.0 (0x00007f8b06a5f000)
          	libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f8b06a29000)
          	libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f8b0695e000)
          	libfontconfig.so.1 => /lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f8b06913000)
          	libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f8b068bd000)
          	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f8b0689e000)
          	libpcre2-16.so.0 => /lib/x86_64-linux-gnu/libpcre2-16.so.0 (0x00007f8b06810000)
          	libxkbcommon.so.0 => /lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x00007f8b067ca000)
          	libxkbcommon-x11.so.0 => /lib/x86_64-linux-gnu/libxkbcommon-x11.so.0 (0x00007f8b07fb6000)
          	libxcb-cursor.so.0 => not found
          	libxcb-icccm.so.4 => /lib/x86_64-linux-gnu/libxcb-icccm.so.4 (0x00007f8b067c3000)
          	libxcb-image.so.0 => /lib/x86_64-linux-gnu/libxcb-image.so.0 (0x00007f8b067bd000)
          	libxcb-keysyms.so.1 => /lib/x86_64-linux-gnu/libxcb-keysyms.so.1 (0x00007f8b06400000)
          	libxcb-randr.so.0 => /lib/x86_64-linux-gnu/libxcb-randr.so.0 (0x00007f8b067ac000)
          	libxcb-render-util.so.0 => /lib/x86_64-linux-gnu/libxcb-render-util.so.0 (0x00007f8b06000000)
          	libxcb-shm.so.0 => /lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007f8b067a7000)
          	libxcb-sync.so.1 => /lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007f8b0679f000)
          	libxcb-xfixes.so.0 => /lib/x86_64-linux-gnu/libxcb-xfixes.so.0 (0x00007f8b06796000)
          	libxcb-render.so.0 => /lib/x86_64-linux-gnu/libxcb-render.so.0 (0x00007f8b06788000)
          	libxcb-shape.so.0 => /lib/x86_64-linux-gnu/libxcb-shape.so.0 (0x00007f8b06783000)
          	libxcb-xkb.so.1 => /lib/x86_64-linux-gnu/libxcb-xkb.so.1 (0x00007f8b06766000)
          	libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f8b0673c000)
          	libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f8b05c00000)
          	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f8b0665d000)
          	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f8b0663b000)
          	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8b0621f000)
          	/lib64/ld-linux-x86-64.so.2 (0x00007f8b08010000)
          	libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f8b05f47000)
          	libbrotlidec.so.1 => /lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x00007f8b0662e000)
          	libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f8b06603000)
          	libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f8b05e77000)
          	libxcb-util.so.1 => /lib/x86_64-linux-gnu/libxcb-util.so.1 (0x00007f8b06215000)
          	libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f8b06210000)
          	libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f8b05800000)
          	libbrotlicommon.so.1 => /lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x00007f8b05e54000)
          	libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x00007f8b05e48000)
          	libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f8b05ab9000)
          	liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f8b05a8a000)
          	libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007f8b05744000)
          	liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f8b05e22000)
          	libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f8b05a74000)
          	libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f8b05a4c000)
          	libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007f8b05a3f000)
          
          

          If i understand correctly the only lib that is not statically linked is (libxcb-cursor.so.0 => not found), could someone give me some hints please what steps i need to do to make this lib to link statically and why the other xcb libs were linked correctly (statically) during configuration, but libxcb-cursor0 is not linked? Should i use any additional configuration flags?

          C 1 Reply Last reply 28 Apr 2024, 18:31
          0
          • A al072072
            28 Apr 2024, 18:24

            Here is ldd output:

            linux-vdso.so.1 (0x00007fff16deb000)
            	libxcb-glx.so.0 => /lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007f8b07fe0000)
            	libX11-xcb.so.1 => /lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f8b07fdb000)
            	libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f8b06abe000)
            	libEGL.so.1 => /lib/x86_64-linux-gnu/libEGL.so.1 (0x00007f8b07fc5000)
            	libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f8b06a8a000)
            	libOpenGL.so.0 => /lib/x86_64-linux-gnu/libOpenGL.so.0 (0x00007f8b06a5f000)
            	libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f8b06a29000)
            	libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f8b0695e000)
            	libfontconfig.so.1 => /lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f8b06913000)
            	libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f8b068bd000)
            	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f8b0689e000)
            	libpcre2-16.so.0 => /lib/x86_64-linux-gnu/libpcre2-16.so.0 (0x00007f8b06810000)
            	libxkbcommon.so.0 => /lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x00007f8b067ca000)
            	libxkbcommon-x11.so.0 => /lib/x86_64-linux-gnu/libxkbcommon-x11.so.0 (0x00007f8b07fb6000)
            	libxcb-cursor.so.0 => not found
            	libxcb-icccm.so.4 => /lib/x86_64-linux-gnu/libxcb-icccm.so.4 (0x00007f8b067c3000)
            	libxcb-image.so.0 => /lib/x86_64-linux-gnu/libxcb-image.so.0 (0x00007f8b067bd000)
            	libxcb-keysyms.so.1 => /lib/x86_64-linux-gnu/libxcb-keysyms.so.1 (0x00007f8b06400000)
            	libxcb-randr.so.0 => /lib/x86_64-linux-gnu/libxcb-randr.so.0 (0x00007f8b067ac000)
            	libxcb-render-util.so.0 => /lib/x86_64-linux-gnu/libxcb-render-util.so.0 (0x00007f8b06000000)
            	libxcb-shm.so.0 => /lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007f8b067a7000)
            	libxcb-sync.so.1 => /lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007f8b0679f000)
            	libxcb-xfixes.so.0 => /lib/x86_64-linux-gnu/libxcb-xfixes.so.0 (0x00007f8b06796000)
            	libxcb-render.so.0 => /lib/x86_64-linux-gnu/libxcb-render.so.0 (0x00007f8b06788000)
            	libxcb-shape.so.0 => /lib/x86_64-linux-gnu/libxcb-shape.so.0 (0x00007f8b06783000)
            	libxcb-xkb.so.1 => /lib/x86_64-linux-gnu/libxcb-xkb.so.1 (0x00007f8b06766000)
            	libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f8b0673c000)
            	libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f8b05c00000)
            	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f8b0665d000)
            	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f8b0663b000)
            	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8b0621f000)
            	/lib64/ld-linux-x86-64.so.2 (0x00007f8b08010000)
            	libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f8b05f47000)
            	libbrotlidec.so.1 => /lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x00007f8b0662e000)
            	libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f8b06603000)
            	libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f8b05e77000)
            	libxcb-util.so.1 => /lib/x86_64-linux-gnu/libxcb-util.so.1 (0x00007f8b06215000)
            	libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f8b06210000)
            	libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f8b05800000)
            	libbrotlicommon.so.1 => /lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x00007f8b05e54000)
            	libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x00007f8b05e48000)
            	libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f8b05ab9000)
            	liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f8b05a8a000)
            	libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007f8b05744000)
            	liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f8b05e22000)
            	libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f8b05a74000)
            	libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f8b05a4c000)
            	libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007f8b05a3f000)
            
            

            If i understand correctly the only lib that is not statically linked is (libxcb-cursor.so.0 => not found), could someone give me some hints please what steps i need to do to make this lib to link statically and why the other xcb libs were linked correctly (statically) during configuration, but libxcb-cursor0 is not linked? Should i use any additional configuration flags?

            C Offline
            C Offline
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on 28 Apr 2024, 18:31 last edited by
            #5

            @al072072 said in Include additional libs to static Qt build:

            If i understand correctly the only lib that is not statically linked is (libxcb-cursor.so.0 => not found),

            This is wrong - all those libs are linked dynamically, otherwise they won't appear here. You did not install libxcb-cursor.so so it's missing completely.

            Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
            Visit the Qt Academy at https://academy.qt.io/catalog

            A 1 Reply Last reply 30 Apr 2024, 17:05
            2
            • C Christian Ehrlicher
              28 Apr 2024, 18:31

              @al072072 said in Include additional libs to static Qt build:

              If i understand correctly the only lib that is not statically linked is (libxcb-cursor.so.0 => not found),

              This is wrong - all those libs are linked dynamically, otherwise they won't appear here. You did not install libxcb-cursor.so so it's missing completely.

              A Offline
              A Offline
              al072072
              wrote on 30 Apr 2024, 17:05 last edited by
              #6

              @Christian-Ehrlicher
              Thank you, what am i doing wrong? Is there any mistakes in configuration string? How to make fully static build in Linux Ubuntu with Qt 6.7.0 library maybe there is a tutorial...

              Thank you !!!

              C 1 Reply Last reply 30 Apr 2024, 17:22
              0
              • A al072072
                30 Apr 2024, 17:05

                @Christian-Ehrlicher
                Thank you, what am i doing wrong? Is there any mistakes in configuration string? How to make fully static build in Linux Ubuntu with Qt 6.7.0 library maybe there is a tutorial...

                Thank you !!!

                C Offline
                C Offline
                Christian Ehrlicher
                Lifetime Qt Champion
                wrote on 30 Apr 2024, 17:22 last edited by
                #7

                @al072072 said in Include additional libs to static Qt build:

                what am i doing wrong?

                You did not compile all those dependent libs statically I would guess.

                Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                Visit the Qt Academy at https://academy.qt.io/catalog

                A 1 Reply Last reply 2 May 2024, 17:27
                1
                • C Christian Ehrlicher
                  30 Apr 2024, 17:22

                  @al072072 said in Include additional libs to static Qt build:

                  what am i doing wrong?

                  You did not compile all those dependent libs statically I would guess.

                  A Offline
                  A Offline
                  al072072
                  wrote on 2 May 2024, 17:27 last edited by al072072 5 Feb 2024, 17:28
                  #8

                  @Christian-Ehrlicher

                  I compiled the libs: libOpenGL,libGLX,libEGL statically and got the .a files of that libs, also i installed them to linux environment so Qt Creator project find them, but i have a lot of errors trying to compile the test project linking the libs statically.

                  I've built the libs from source: libglvnd

                  I've used the following configuration for meson builder:

                  meson --default-library=static  /home/alex/Downloads/libglvnd/build
                  

                  Here is my .pro file:

                  QT       += core gui
                  
                  greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
                  
                  CONFIG += static
                  
                  
                  # You can make your code fail to compile if it uses deprecated APIs.
                  # In order to do so, uncomment the following line.
                  #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
                  
                  SOURCES += \
                      main.cpp \
                      mainwindow.cpp
                  
                  HEADERS += \
                      mainwindow.h
                  
                  FORMS += \
                      mainwindow.ui
                  
                  QMAKE_LFLAGS += -static
                  
                  # Default rules for deployment.
                  qnx: target.path = /tmp/$${TARGET}/bin
                  else: unix:!android: target.path = /opt/$${TARGET}/bin
                  !isEmpty(target.path): INSTALLS += target
                  
                  

                  Here is compiler errors output:

                  22:16:32: Running steps for project st...
                  22:16:32: Starting: "/usr/bin/make" clean -j2
                  rm -f moc_predefs.h
                  rm -f moc_mainwindow.cpp
                  rm -f ui_mainwindow.h
                  rm -f main.o mainwindow.o st_plugin_import.o moc_mainwindow.o
                  rm -f *~ core *.core
                  22:16:32: The process "/usr/bin/make" exited normally.
                  22:16:32: Starting: "/home/alex/Qt/6.7.0/static_gcc_64/bin/qmake" /home/alex/Qt/QtProjects/st/st.pro -spec linux-g++ CONFIG+=qtquickcompiler
                  22:16:32: The process "/home/alex/Qt/6.7.0/static_gcc_64/bin/qmake" exited normally.
                  22:16:32: Starting: "/usr/bin/make" -f /home/alex/Qt/QtProjects/st/build/Desktop_Qt_6_7_0_static_gcc_64-Release/Makefile qmake_all
                  make: Nothing to be done for 'qmake_all'.
                  22:16:32: The process "/usr/bin/make" exited normally.
                  22:16:32: Starting: "/usr/bin/make" -j2
                  /home/alex/Qt/6.7.0/static_gcc_64/libexec/uic ../../mainwindow.ui -o ui_mainwindow.h
                  g++ -c -pipe -O2 -Wall -Wextra -fPIC -D_REENTRANT -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../st -I. -I../../../../6.7.0/static_gcc_64/include -I../../../../6.7.0/static_gcc_64/include/QtWidgets -I../../../../6.7.0/static_gcc_64/include/QtGui -I../../../../6.7.0/static_gcc_64/include/QtCore -I. -I. -I../../../../6.7.0/static_gcc_64/mkspecs/linux-g++ -o main.o ../../main.cpp
                  g++ -c -pipe -O2 -Wall -Wextra -fPIC -D_REENTRANT -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../st -I. -I../../../../6.7.0/static_gcc_64/include -I../../../../6.7.0/static_gcc_64/include/QtWidgets -I../../../../6.7.0/static_gcc_64/include/QtGui -I../../../../6.7.0/static_gcc_64/include/QtCore -I. -I. -I../../../../6.7.0/static_gcc_64/mkspecs/linux-g++ -o st_plugin_import.o /home/alex/Qt/QtProjects/st/build/Desktop_Qt_6_7_0_static_gcc_64-Release/st_plugin_import.cpp
                  g++ -pipe -O2 -Wall -Wextra -fPIC -dM -E -o moc_predefs.h ../../../../6.7.0/static_gcc_64/mkspecs/features/data/dummy.cpp
                  g++ -c -pipe -O2 -Wall -Wextra -fPIC -D_REENTRANT -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../st -I. -I../../../../6.7.0/static_gcc_64/include -I../../../../6.7.0/static_gcc_64/include/QtWidgets -I../../../../6.7.0/static_gcc_64/include/QtGui -I../../../../6.7.0/static_gcc_64/include/QtCore -I. -I. -I../../../../6.7.0/static_gcc_64/mkspecs/linux-g++ -o mainwindow.o ../../mainwindow.cpp
                  /home/alex/Qt/6.7.0/static_gcc_64/libexec/moc -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB --include /home/alex/Qt/QtProjects/st/build/Desktop_Qt_6_7_0_static_gcc_64-Release/moc_predefs.h -I/home/alex/Qt/6.7.0/static_gcc_64/mkspecs/linux-g++ -I/home/alex/Qt/QtProjects/st -I/home/alex/Qt/6.7.0/static_gcc_64/include -I/home/alex/Qt/6.7.0/static_gcc_64/include/QtWidgets -I/home/alex/Qt/6.7.0/static_gcc_64/include/QtGui -I/home/alex/Qt/6.7.0/static_gcc_64/include/QtCore -I. -I/usr/include/c++/11 -I/usr/include/x86_64-linux-gnu/c++/11 -I/usr/include/c++/11/backward -I/usr/lib/gcc/x86_64-linux-gnu/11/include -I/usr/local/include -I/usr/include/x86_64-linux-gnu -I/usr/include ../../mainwindow.h -o moc_mainwindow.cpp
                  g++ -c -pipe -O2 -Wall -Wextra -fPIC -D_REENTRANT -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../st -I. -I../../../../6.7.0/static_gcc_64/include -I../../../../6.7.0/static_gcc_64/include/QtWidgets -I../../../../6.7.0/static_gcc_64/include/QtGui -I../../../../6.7.0/static_gcc_64/include/QtCore -I. -I. -I../../../../6.7.0/static_gcc_64/mkspecs/linux-g++ -o moc_mainwindow.o moc_mainwindow.cpp
                  g++ -static -Wl,-O1 -o st  main.o mainwindow.o st_plugin_import.o moc_mainwindow.o   /home/alex/Qt/6.7.0/static_gcc_64/lib/objects-Release/Gui_resources_1/.rcc/qrc_qpdf_init.cpp.o /home/alex/Qt/6.7.0/static_gcc_64/lib/objects-Release/Gui_resources_2/.rcc/qrc_gui_shaders_init.cpp.o /home/alex/Qt/6.7.0/static_gcc_64/plugins/platforms/libqxcb.a /home/alex/Qt/6.7.0/static_gcc_64/plugins/xcbglintegrations/libqxcb-egl-integration.a /home/alex/Qt/6.7.0/static_gcc_64/plugins/xcbglintegrations/libqxcb-glx-integration.a /home/alex/Qt/6.7.0/static_gcc_64/lib/libQt6XcbQpa.a -lxkbcommon-x11 -lxcb-cursor -lxcb-icccm -lxcb-image -lxcb-keysyms -lxcb-randr -lxcb-render-util -lxcb-shm -lxcb-sync -lxcb-xfixes -lxcb-render -lxcb-shape -lxcb-xkb -lxcb-glx /home/alex/Qt/6.7.0/static_gcc_64/plugins/iconengines/libqsvgicon.a /home/alex/Qt/6.7.0/static_gcc_64/plugins/imageformats/libqgif.a /home/alex/Qt/6.7.0/static_gcc_64/plugins/imageformats/libqicns.a /home/alex/Qt/6.7.0/static_gcc_64/plugins/imageformats/libqico.a /home/alex/Qt/6.7.0/static_gcc_64/plugins/imageformats/libqjpeg.a /home/alex/Qt/6.7.0/static_gcc_64/lib/libQt6BundledLibjpeg.a /home/alex/Qt/6.7.0/static_gcc_64/plugins/imageformats/libqsvg.a /home/alex/Qt/6.7.0/static_gcc_64/lib/libQt6Svg.a /home/alex/Qt/6.7.0/static_gcc_64/plugins/imageformats/libqtga.a /home/alex/Qt/6.7.0/static_gcc_64/plugins/imageformats/libqtiff.a /home/alex/Qt/6.7.0/static_gcc_64/plugins/imageformats/libqwbmp.a /home/alex/Qt/6.7.0/static_gcc_64/plugins/imageformats/libqwebp.a /home/alex/Qt/6.7.0/static_gcc_64/lib/objects-Release/EglFSDeviceIntegrationPrivate_resources_1/.rcc/qrc_cursor_init.cpp.o /home/alex/Qt/6.7.0/static_gcc_64/plugins/egldeviceintegrations/libqeglfs-emu-integration.a /home/alex/Qt/6.7.0/static_gcc_64/plugins/egldeviceintegrations/libqeglfs-x11-integration.a /home/alex/Qt/6.7.0/static_gcc_64/lib/libQt6EglFSDeviceIntegration.a /home/alex/Qt/6.7.0/static_gcc_64/lib/libQt6FbSupport.a /home/alex/Qt/6.7.0/static_gcc_64/lib/libQt6InputSupport.a /home/alex/Qt/6.7.0/static_gcc_64/lib/libQt6DeviceDiscoverySupport.a /home/alex/Qt/6.7.0/static_gcc_64/lib/libQt6OpenGL.a -lX11-xcb -lxcb /home/alex/Qt/6.7.0/static_gcc_64/lib/objects-Release/Widgets_resources_1/.rcc/qrc_qstyle_init.cpp.o /home/alex/Qt/6.7.0/static_gcc_64/lib/objects-Release/Widgets_resources_2/.rcc/qrc_qstyle1_init.cpp.o /home/alex/Qt/6.7.0/static_gcc_64/lib/objects-Release/Widgets_resources_3/.rcc/qrc_qstyle_fusion_init.cpp.o /home/alex/Qt/6.7.0/static_gcc_64/lib/objects-Release/Widgets_resources_4/.rcc/qrc_qmessagebox_init.cpp.o /home/alex/Qt/6.7.0/static_gcc_64/lib/libQt6Widgets.a /home/alex/Qt/6.7.0/static_gcc_64/lib/libQt6Gui.a -lEGL -lpng /home/alex/Qt/6.7.0/static_gcc_64/lib/libQt6BundledHarfbuzz.a -lfreetype -lfontconfig -lX11 /home/alex/Qt/6.7.0/static_gcc_64/lib/libQt6DBus.a -ldbus-1 -lxkbcommon /home/alex/Qt/6.7.0/static_gcc_64/lib/libQt6Core.a -lz -lm -lpcre2-16 -ldl -lrt -lpthread -lGLX -lOpenGL   
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libGLX.a(libglx.c.o): in function `AtomicIncrement':
                  /home/alex/Downloads/libglvnd-master/build/../src/GLX/libglx.c:1848: multiple definition of `AtomicIncrement'; /usr/local/lib/x86_64-linux-gnu/libEGL.a(libegl.c.o):/home/alex/Downloads/libglvnd-master/build/../src/EGL/libegl.c:1191: first defined here
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libGLX.a(libglx.c.o): in function `AtomicSwap':
                  /home/alex/Downloads/libglvnd-master/build/../src/GLX/libglx.c:1866: multiple definition of `AtomicSwap'; /usr/local/lib/x86_64-linux-gnu/libEGL.a(libegl.c.o):/home/alex/Downloads/libglvnd-master/build/../src/EGL/libegl.c:1209: first defined here
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libGLX.a(libglx.c.o): in function `AtomicCompareAndSwap':
                  /home/alex/Downloads/libglvnd-master/build/../src/GLX/libglx.c:1883: multiple definition of `AtomicCompareAndSwap'; /usr/local/lib/x86_64-linux-gnu/libEGL.a(libegl.c.o):/home/alex/Downloads/libglvnd-master/build/../src/EGL/libegl.c:1226: first defined here
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libGLX.a(libglx.c.o): in function `AtomicDecrementClampAtZero':
                  /home/alex/Downloads/libglvnd-master/build/../src/GLX/libglx.c:1900: multiple definition of `AtomicDecrementClampAtZero'; /usr/local/lib/x86_64-linux-gnu/libEGL.a(libegl.c.o):/home/alex/Downloads/libglvnd-master/build/../src/EGL/libegl.c:1243: first defined here
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libEGL.a(libegl.c.o): in function `IsX11Display':
                  /home/alex/Downloads/libglvnd-master/build/../src/EGL/libegl.c:189: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
                  /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libdbus-1.a(libdbus_1_la-dbus-sysdeps-unix.o): in function `fill_user_info':
                  (.text+0x2cf): warning: Using 'getgrouplist' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
                  /usr/bin/ld: /home/alex/Qt/6.7.0/static_gcc_64/lib/libQt6Core.a(qfilesystemengine_unix.cpp.o): in function `QFileSystemEngine::resolveGroupName(unsigned int)':
                  qfilesystemengine_unix.cpp:(.text._ZN17QFileSystemEngine16resolveGroupNameEj+0x17e): warning: Using 'getgrgid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
                  /usr/bin/ld: /home/alex/Qt/6.7.0/static_gcc_64/lib/libQt6Widgets.a(qfiledialog.cpp.o): in function `qt_tildeExpansion(QString const&)':
                  qfiledialog.cpp:(.text._Z17qt_tildeExpansionRK7QString+0x14d): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
                  /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libdbus-1.a(libdbus_1_la-dbus-sysdeps-unix.o): in function `fill_user_info':
                  (.text+0x17b): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
                  /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libxcb.a(xcb_util.o): in function `_xcb_open_tcp':
                  (.text+0x428): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
                  /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libfreetype.a(sfnt.o): in function `sfnt_init_face':
                  (.text+0xf543): undefined reference to `BrotliDecoderDecompress'
                  /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libfontconfig.a(fcxml.o): in function `FcConfigMessage':
                  (.text+0x2f2): undefined reference to `XML_GetCurrentLineNumber'
                  /usr/bin/ld: (.text+0x371): undefined reference to `XML_GetCurrentLineNumber'
                  /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libfontconfig.a(fcxml.o): in function `FcConfigParseAndLoadFromMemoryInternal':
                  (.text+0x1319): undefined reference to `XML_ParserCreate'
                  /usr/bin/ld: (.text+0x139d): undefined reference to `XML_SetUserData'
                  /usr/bin/ld: (.text+0x13b3): undefined reference to `XML_SetDoctypeDeclHandler'
                  /usr/bin/ld: (.text+0x13c9): undefined reference to `XML_SetElementHandler'
                  /usr/bin/ld: (.text+0x13d8): undefined reference to `XML_SetCharacterDataHandler'
                  /usr/bin/ld: (.text+0x13e9): undefined reference to `XML_GetBuffer'
                  /usr/bin/ld: (.text+0x1452): undefined reference to `XML_ParseBuffer'
                  /usr/bin/ld: (.text+0x145e): undefined reference to `XML_GetErrorCode'
                  /usr/bin/ld: (.text+0x1465): undefined reference to `XML_ErrorString'
                  /usr/bin/ld: (.text+0x14b7): undefined reference to `XML_ParserFree'
                  /usr/bin/ld: (.text+0x154f): undefined reference to `XML_ParseBuffer'
                  /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libxcb-image.a(xcb_image.o): in function `xcb_create_pixmap_from_bitmap_data':
                  (.text+0x14b4): undefined reference to `xcb_aux_create_gc'
                  /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libxcb.a(xcb_auth.o): in function `get_authptr':
                  (.text+0xd0): undefined reference to `XauGetBestAuthByAddr'
                  /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libxcb.a(xcb_auth.o): in function `_xcb_get_auth_info':
                  (.text+0x2d9): undefined reference to `XauDisposeAuth'
                  /usr/bin/ld: (.text+0x51f): undefined reference to `XdmcpWrap'
                  /usr/bin/ld: (.text+0x52f): undefined reference to `XauDisposeAuth'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libEGL.a(libegl.c.o): in function `__eglGetCurrentAPIState':
                  /home/alex/Downloads/libglvnd-master/build/../src/EGL/libeglcurrent.h:104: undefined reference to `__glDispatchGetCurrentThreadState'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libEGL.a(libegl.c.o): in function `InternalLoseCurrent':
                  /home/alex/Downloads/libglvnd-master/build/../src/EGL/libegl.c:559: undefined reference to `__glDispatchLoseCurrent'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libEGL.a(libegl.c.o): in function `InternalMakeCurrentDispatch':
                  /home/alex/Downloads/libglvnd-master/build/../src/EGL/libegl.c:624: undefined reference to `__glDispatchMakeCurrent'
                  /usr/bin/ld: /home/alex/Downloads/libglvnd-master/build/../src/EGL/libegl.c:636: undefined reference to `__glDispatchLoseCurrent'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libEGL.a(libegl.c.o): in function `eglMakeCurrent':
                  /home/alex/Downloads/libglvnd-master/build/../src/EGL/libegl.c:675: undefined reference to `__glDispatchGetCurrentThreadState'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libEGL.a(libegl.c.o): in function `eglReleaseThread':
                  /home/alex/Downloads/libglvnd-master/build/../src/EGL/libegl.c:803: undefined reference to `__glDispatchLoseCurrent'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libEGL.a(libegl.c.o): in function `eglGetProcAddress':
                  /home/alex/Downloads/libglvnd-master/build/../src/EGL/libegl.c:1177: undefined reference to `__glDispatchGetProcAddress'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libEGL.a(libegl.c.o): in function `__eglThreadInitialize':
                  /home/alex/Downloads/libglvnd-master/build/../src/EGL/libegl.c:1308: undefined reference to `__glDispatchCheckMultithreaded'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libEGL.a(libegl.c.o): in function `__eglResetOnFork':
                  /home/alex/Downloads/libglvnd-master/build/../src/EGL/libegl.c:1340: undefined reference to `__glDispatchReset'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libEGL.a(libegl.c.o): in function `__eglInit':
                  /home/alex/Downloads/libglvnd-master/build/../src/EGL/libegl.c:1349: undefined reference to `__glDispatchGetABIVersion'
                  /usr/bin/ld: /home/alex/Downloads/libglvnd-master/build/../src/EGL/libegl.c:1355: undefined reference to `__glDispatchInit'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libEGL.a(libegl.c.o): in function `__eglFini':
                  /home/alex/Downloads/libglvnd-master/build/../src/EGL/libegl.c:1384: undefined reference to `__glDispatchGetCurrentThreadState'
                  /usr/bin/ld: /home/alex/Downloads/libglvnd-master/build/../src/EGL/libegl.c:1387: undefined reference to `__glDispatchLoseCurrent'
                  /usr/bin/ld: /home/alex/Downloads/libglvnd-master/build/../src/EGL/libegl.c:1399: undefined reference to `__glDispatchFini'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libEGL.a(libeglcurrent.c.o): in function `__eglGetCurrentAPIState':
                  /home/alex/Downloads/libglvnd-master/build/../src/EGL/libeglcurrent.h:104: undefined reference to `__glDispatchGetCurrentThreadState'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libEGL.a(libeglvendor.c.o): in function `__eglTeardownVendors':
                  /home/alex/Downloads/libglvnd-master/build/../src/EGL/libeglvendor.c:150: undefined reference to `__glDispatchForceUnpatch'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libEGL.a(libeglvendor.c.o): in function `TeardownVendor':
                  /home/alex/Downloads/libglvnd-master/build/../src/EGL/libeglvendor.c:173: undefined reference to `__glDispatchDestroyTable'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libEGL.a(libeglvendor.c.o): in function `LoadVendor':
                  /home/alex/Downloads/libglvnd-master/build/../src/EGL/libeglvendor.c:572: undefined reference to `__glDispatchNewVendorID'
                  /usr/bin/ld: /home/alex/Downloads/libglvnd-master/build/../src/EGL/libeglvendor.c:576: undefined reference to `__glDispatchCreateTable'
                  /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libfontconfig.a(fcfreetype.o): in function `FcFreeTypeQueryFaceInternal':
                  (.text+0x2ac1): undefined reference to `FT_Get_BDF_Property'
                  /usr/bin/ld: (.text+0x2af7): undefined reference to `FT_Get_BDF_Property'
                  /usr/bin/ld: (.text+0x2bf7): undefined reference to `FT_Get_BDF_Property'
                  /usr/bin/ld: (.text+0x2c58): undefined reference to `FT_Get_BDF_Property'
                  /usr/bin/ld: (.text+0x2c74): undefined reference to `FT_Get_BDF_Property'
                  /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libfontconfig.a(fcfreetype.o):(.text+0x2d77): more undefined references to `FT_Get_BDF_Property' follow
                  /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libfontconfig.a(fchash.o): in function `FcHashUuidCopy':
                  (.text+0x204): undefined reference to `uuid_copy'
                  /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libfontconfig.a(fccache.o): in function `FcDirCacheBasenameUUID':
                  (.text+0x7d2): undefined reference to `uuid_unparse'
                  /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libfontconfig.a(fccache.o): in function `IA__FcDirCacheCreateUUID':
                  (.text+0x1527): undefined reference to `uuid_generate_random'
                  /usr/bin/ld: (.text+0x1570): undefined reference to `uuid_unparse'
                  /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libfontconfig.a(fccache.o): in function `IA__FcDirCacheLoad':
                  (.text+0x2340): undefined reference to `uuid_parse'
                  /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libdbus-1.a(libdbus_1_la-dbus-sysdeps-unix.o): in function `_dbus_listen_systemd_sockets':
                  (.text+0x200e): undefined reference to `sd_listen_fds'
                  /usr/bin/ld: (.text+0x204f): undefined reference to `sd_is_socket'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libGLX.a(libglx.c.o): in function `__glXGetCurrentThreadState':
                  /home/alex/Downloads/libglvnd-master/build/../src/GLX/libglxcurrent.h:71: undefined reference to `__glDispatchGetCurrentThreadState'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libGLX.a(libglx.c.o): in function `__glXDisplayClosed':
                  /home/alex/Downloads/libglvnd-master/build/../src/GLX/libglx.c:626: undefined reference to `__glDispatchLoseCurrent'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libGLX.a(libglx.c.o): in function `InternalLoseCurrent':
                  /home/alex/Downloads/libglvnd-master/build/../src/GLX/libglx.c:838: undefined reference to `__glDispatchLoseCurrent'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libGLX.a(libglx.c.o): in function `InternalMakeCurrentDispatch':
                  /home/alex/Downloads/libglvnd-master/build/../src/GLX/libglx.c:917: undefined reference to `__glDispatchMakeCurrent'
                  /usr/bin/ld: /home/alex/Downloads/libglvnd-master/build/../src/GLX/libglx.c:929: undefined reference to `__glDispatchLoseCurrent'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libGLX.a(libglx.c.o): in function `CommonMakeCurrent':
                  /home/alex/Downloads/libglvnd-master/build/../src/GLX/libglx.c:976: undefined reference to `__glDispatchGetCurrentThreadState'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libGLX.a(libglx.c.o): in function `GetVendorClientStrings':
                  /home/alex/Downloads/libglvnd-master/build/../src/GLX/libglx.c:1250: undefined reference to `XScreenCount'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libGLX.a(libglx.c.o): in function `glXGetClientString':
                  /home/alex/Downloads/libglvnd-master/build/../src/GLX/libglx.c:1393: undefined reference to `XScreenCount'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libGLX.a(libglx.c.o): in function `glXGetProcAddress':
                  /home/alex/Downloads/libglvnd-master/build/../src/GLX/libglx.c:1819: undefined reference to `__glDispatchGetProcAddress'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libGLX.a(libglx.c.o): in function `__glXThreadInitialize':
                  /home/alex/Downloads/libglvnd-master/build/../src/GLX/libglx.c:1965: undefined reference to `__glDispatchCheckMultithreaded'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libGLX.a(libglx.c.o): in function `__glXResetOnFork':
                  /home/alex/Downloads/libglvnd-master/build/../src/GLX/libglx.c:2014: undefined reference to `__glDispatchReset'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libGLX.a(libglx.c.o): in function `__glXInit':
                  /home/alex/Downloads/libglvnd-master/build/../src/GLX/libglx.c:2073: undefined reference to `__glDispatchGetABIVersion'
                  /usr/bin/ld: /home/alex/Downloads/libglvnd-master/build/../src/GLX/libglx.c:2079: undefined reference to `__glDispatchInit'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libGLX.a(libglx.c.o): in function `__glXFini':
                  /home/alex/Downloads/libglvnd-master/build/../src/GLX/libglx.c:2138: undefined reference to `__glDispatchGetCurrentThreadState'
                  /usr/bin/ld: /home/alex/Downloads/libglvnd-master/build/../src/GLX/libglx.c:2141: undefined reference to `__glDispatchLoseCurrent'
                  /usr/bin/ld: /home/alex/Downloads/libglvnd-master/build/../src/GLX/libglx.c:2151: undefined reference to `__glDispatchFini'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libGLX.a(libglxmapping.c.o): in function `__glXGetGLXDispatchAddress':
                  /home/alex/Downloads/libglvnd-master/build/../src/GLX/libglxmapping.c:208: undefined reference to `__glDispatchGetProcAddress'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libGLX.a(libglxmapping.c.o): in function `GLXEntrypointUpdateCallback':
                  /home/alex/Downloads/libglvnd-master/build/../src/GLX/libglxmapping.c:249: undefined reference to `__glDispatchGetProcAddress'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libGLX.a(libglxmapping.c.o): in function `CleanupVendorNameEntry':
                  /home/alex/Downloads/libglvnd-master/build/../src/GLX/libglxmapping.c:309: undefined reference to `__glDispatchDestroyTable'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libGLX.a(libglxmapping.c.o): in function `__glXLookupVendorByName':
                  /home/alex/Downloads/libglvnd-master/build/../src/GLX/libglxmapping.c:440: undefined reference to `__glDispatchNewVendorID'
                  /usr/bin/ld: /home/alex/Downloads/libglvnd-master/build/../src/GLX/libglxmapping.c:443: undefined reference to `__glDispatchCreateTable'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libGLX.a(libglxmapping.c.o): in function `__glXMappingTeardown':
                  /home/alex/Downloads/libglvnd-master/build/../src/GLX/libglxmapping.c:1070: undefined reference to `__glDispatchForceUnpatch'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libOpenGL.a(entry_x86_64_tls.c.o): in function `public_entry_start':
                  entry_x86_64_tls.c:(wtext+0x7): undefined reference to `_glapi_tls_Current'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libOpenGL.a(entry_x86_64_tls.c.o): in function `glActiveShaderProgram':
                  entry_x86_64_tls.c:(wtext+0x27): undefined reference to `_glapi_tls_Current'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libOpenGL.a(entry_x86_64_tls.c.o): in function `glActiveTexture':
                  entry_x86_64_tls.c:(wtext+0x47): undefined reference to `_glapi_tls_Current'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libOpenGL.a(entry_x86_64_tls.c.o): in function `glAlphaFunc':
                  entry_x86_64_tls.c:(wtext+0x67): undefined reference to `_glapi_tls_Current'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libOpenGL.a(entry_x86_64_tls.c.o): in function `glAreTexturesResident':
                  entry_x86_64_tls.c:(wtext+0x87): undefined reference to `_glapi_tls_Current'
                  /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libOpenGL.a(entry_x86_64_tls.c.o):entry_x86_64_tls.c:(wtext+0xa7): more undefined references to `_glapi_tls_Current' follow
                  collect2: error: ld returned 1 exit status
                  make: *** [Makefile:474: st] Error 1
                  22:16:41: The process "/usr/bin/make" exited with code 2.
                  Error while building/deploying project st (kit: Desktop Qt 6.7.0 (static_gcc_64))
                  When executing step "Make"
                  22:16:41: Elapsed time: 00:08.
                  
                  

                  What should i do for solving the errors ? Thank you

                  1 Reply Last reply
                  0

                  1/8

                  26 Apr 2024, 18:54

                  • Login

                  • Login or register to search.
                  1 out of 8
                  • First post
                    1/8
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved