Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libQt5WebKitWidgets.so.5
QtWS25 Last Chance

could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libQt5WebKitWidgets.so.5

Scheduled Pinned Locked Moved Unsolved Qt WebKit
4 Posts 3 Posters 501 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.
  • A Offline
    A Offline
    Aman55
    wrote on last edited by
    #1

    Running an application in Qt 5.15.1 in debug mode gives error.(Perfectly run in normal debug run mode only problem when to do debug run).

    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libQt5WebKitWidgets.so.5
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgthread-2.0.so.0
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libglib-2.0.so.0
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libfyba.so.0
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libogdi.so.4.1
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libmfhdfalt.so.0
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libwoff2dec.so.1.0.2
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libxslt.so.1
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgstapp-1.0.so.0
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgstbase-1.0.so.0
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgstpbutils-1.0.so.0
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgstaudio-1.0.so.0
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgsttag-1.0.so.0
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgstvideo-1.0.so.0
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgstfft-1.0.so.0
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgobject-2.0.so.0
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libpulse.so.0
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/liblber.so.2
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libbrotlidec.so.1
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libnss3.so
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libsmime3.so
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libplc4.so
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libfyut.so.0
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libfygm.so.0
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libwoff2common.so.1.0.2
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgmodule-2.0.so.0
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/liborc-0.4.so.0
    could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-16.1.so
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libbrotlicommon.so.1
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libnssutil3.so
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libplds4.so
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libcap.so.2
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgdk-3.so.0
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0
    could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
    could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so
    could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libcanberra.so.0

    code is

    
    #include <QApplication>
    #include "qgsapplication.h"
    #include "qgsmapcanvas.h"
    #include "qgsproviderregistry.h"
    #include <QMessageBox>
    #include <QDebug>
    
    int main(int argc, char *argv[]) {
        // 1. Create QApplication FIRST (Crucial!)
        QApplication a(argc, argv);  // This MUST be the very first Qt-related line
    
        // 2. QGIS Application Initialization
        QgsApplication* qgsApp = new QgsApplication(argc, argv, true);
    
        QString prefixPath = "/usr"; // Or your actual path
        qgsApp->setPrefixPath(prefixPath, true);
    
        qgsApp->init();
    
        // 3. Check Initialization (AFTER QApplication creation)
        if (QgsApplication::instance() == nullptr) {
            QMessageBox::critical(nullptr, "Error", "QGIS initialization failed!");
            return 1;
        }
    
        QStringList providers = QgsProviderRegistry::instance()->providerList();
        if (providers.isEmpty()) {
            QMessageBox::warning(nullptr, "Warning", "No QGIS providers found. Check prefix path.");
        } else {
            qDebug() << "Providers:" << providers;
        }
    
        QgsMapCanvas* mapCanvas = new QgsMapCanvas(); // Now safe to use QGIS/Qt classes
        if (mapCanvas == nullptr) {
            QMessageBox::critical(nullptr, "Error", "Failed to create map canvas.");
            delete qgsApp;
            return 1;
        }
        delete mapCanvas;
    
        // qDebug() << "QGIS Version:" << QGIS_VERSION; // Assuming you defined QGIS_VERSION in .pro
    
        QMessageBox::information(nullptr, "Success", "QGIS initialized successfully!");
    
    
        // 4. Your Application Logic Here...
    
        qgsApp->exit();
    
        return a.exec(); // Start the Qt event loop (important!)
    }
    
    
    jsulmJ 1 Reply Last reply
    0
    • A Aman55

      Running an application in Qt 5.15.1 in debug mode gives error.(Perfectly run in normal debug run mode only problem when to do debug run).

      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libQt5WebKitWidgets.so.5
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgthread-2.0.so.0
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libglib-2.0.so.0
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libfyba.so.0
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libogdi.so.4.1
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libmfhdfalt.so.0
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libwoff2dec.so.1.0.2
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libxslt.so.1
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgstapp-1.0.so.0
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgstbase-1.0.so.0
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgstpbutils-1.0.so.0
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgstaudio-1.0.so.0
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgsttag-1.0.so.0
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgstvideo-1.0.so.0
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgstfft-1.0.so.0
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgobject-2.0.so.0
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libpulse.so.0
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/liblber.so.2
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libbrotlidec.so.1
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libnss3.so
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libsmime3.so
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libplc4.so
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libfyut.so.0
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libfygm.so.0
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libwoff2common.so.1.0.2
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgmodule-2.0.so.0
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/liborc-0.4.so.0
      could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-16.1.so
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libbrotlicommon.so.1
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libnssutil3.so
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libplds4.so
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libcap.so.2
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgdk-3.so.0
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0
      could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
      could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so
      could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libcanberra.so.0

      code is

      
      #include <QApplication>
      #include "qgsapplication.h"
      #include "qgsmapcanvas.h"
      #include "qgsproviderregistry.h"
      #include <QMessageBox>
      #include <QDebug>
      
      int main(int argc, char *argv[]) {
          // 1. Create QApplication FIRST (Crucial!)
          QApplication a(argc, argv);  // This MUST be the very first Qt-related line
      
          // 2. QGIS Application Initialization
          QgsApplication* qgsApp = new QgsApplication(argc, argv, true);
      
          QString prefixPath = "/usr"; // Or your actual path
          qgsApp->setPrefixPath(prefixPath, true);
      
          qgsApp->init();
      
          // 3. Check Initialization (AFTER QApplication creation)
          if (QgsApplication::instance() == nullptr) {
              QMessageBox::critical(nullptr, "Error", "QGIS initialization failed!");
              return 1;
          }
      
          QStringList providers = QgsProviderRegistry::instance()->providerList();
          if (providers.isEmpty()) {
              QMessageBox::warning(nullptr, "Warning", "No QGIS providers found. Check prefix path.");
          } else {
              qDebug() << "Providers:" << providers;
          }
      
          QgsMapCanvas* mapCanvas = new QgsMapCanvas(); // Now safe to use QGIS/Qt classes
          if (mapCanvas == nullptr) {
              QMessageBox::critical(nullptr, "Error", "Failed to create map canvas.");
              delete qgsApp;
              return 1;
          }
          delete mapCanvas;
      
          // qDebug() << "QGIS Version:" << QGIS_VERSION; // Assuming you defined QGIS_VERSION in .pro
      
          QMessageBox::information(nullptr, "Success", "QGIS initialized successfully!");
      
      
          // 4. Your Application Logic Here...
      
          qgsApp->exit();
      
          return a.exec(); // Start the Qt event loop (important!)
      }
      
      
      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Aman55 But does the application actually run in debug mode or not?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      A 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Aman55 But does the application actually run in debug mode or not?

        A Offline
        A Offline
        Aman55
        wrote on last edited by
        #3

        @jsulm Screenshot from 2025-02-13 13-56-53.png

        the application run in normal " |>" mode .
        but in the " |>bug" mode i got the above error.

        JonBJ 1 Reply Last reply
        0
        • A Aman55

          @jsulm Screenshot from 2025-02-13 13-56-53.png

          the application run in normal " |>" mode .
          but in the " |>bug" mode i got the above error.

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @Aman55
          What error? The messages you show in your first post when debugging? There is no error. For me they did not appear when I used Qt5 under Ubuntu 22.04 but all appear when I moved to Qt6 under Ubuntu 24.04. Very irritating. I raised the issue at https://askubuntu.com/questions/1526550/ubuntu-24-04-gdb-gnu-debugaltlink-missing-file-messages. No resolution, it's a change in gdb behaviour.

          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