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

QLibrary::isLibrary seems to miss many libraries.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.8.0
    • 5.6.0 Beta
    • Core: I/O
    • None
    • OS X Yosemite / Qt 5.6
    • 9db8c171e7bd775ed4cf5281fe17f8084c0ffbcd

    Description

      Some files are incorrectly marked non libraries by QLibrary::isLibrary:

      // path = Install/Debug/plugins/gammaray/gammaray_widgetinspector_ui_plugin-qt5.6-x86_64_debug.so 
      qDebug()
              << QLibrary::isLibrary("test.so") // TRUE
              << QLibrary::isLibrary("test.so.45") // TRUE
              << QLibrary::isLibrary("test-qt5.6_debug.so") // FALSE
              << QLibrary::isLibrary("libpython2.7.so.1.0") // FALSE
              << QLibrary::isLibrary("libgammaray_actioninspector_plugin-qt5.6-x86_64_debug.so") // FALSE
              << QLibrary::isLibrary("libgammaray_probe-qt5.6-x86_64_debug.dylib") // TRUE
              << QLibrary::isLibrary("libgammaray_probe-qt5.6-x86_64.dylib") // TRUE
              << "--"
              << QLibrary::isLibrary(QString(path).replace("5.6", "56")) // TRUE
              << QLibrary::isLibrary(path) // FALSE
          ;
      

      Attachments

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

        Activity

          People

            filipe.azevedo Filipe Azevedo
            filipe.azevedo Filipe Azevedo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes