Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. "Plugin uses incompatible Qt library" after build from sources
Forum Updated to NodeBB v4.3 + New Features

"Plugin uses incompatible Qt library" after build from sources

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 5.1k 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.
  • B Offline
    B Offline
    BrMisha
    wrote on 17 Dec 2020, 17:23 last edited by
    #1

    Hello!
    I have built Qt from sources (5.15.2) on Raspberry 4 (not cross compile) with next config:

    ~/trash/qt-everywhere-src-5.15.2/configure -v -no-pch -prefix ~/Qt/Qt5.15.2/ -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -qt-harfbuzz -make libs -nomake tools -nomake examples -nomake tools -nomake tests -opensource -confirm-license -skip qtwebengine -no-rpath -openssl-linked -opengl desktop -sysconfdir "/etc/xdg" -no-qml-debug -feature-freetype -fontconfig -feature-relocatable -strip -gstreamer 1.0
    

    Then i tried to build some small test project which uses multimedia. That compiled successfully but on running i got an error:

    $ QT_PLUGIN_PATH="/home/ubuntu/Qt/Qt5.15.2/plugins/" ./VideoStreamer                                                                                                         
    QFactoryLoader::QFactoryLoader() checking directory path "/home/ubuntu/Qt/Qt5.15.2/plugins/mediaservice" ...                                                                                                       
    QFactoryLoader::QFactoryLoader() looking at "/home/ubuntu/Qt/Qt5.15.2/plugins/mediaservice/libgstaudiodecoder.so"                                                                                                  
    Found metadata in lib /home/ubuntu/Qt/Qt5.15.2/plugins/mediaservice/libgstaudiodecoder.so, metadata=                                                                                                               
    {                                                                                                                                                                                                                  
        "IID": "org.qt-project.qt.mediaserviceproviderfactory/5.0",                                                                                                                                                    
        "MetaData": {                                                                                                                                                                                                  
            "Keys": [                                                                                                                                                                                                  
                "gstreameraudiodecode"                                                                                                                                                                                 
            ],                                                                                                                                                                                                         
            "Services": [                                                                                                                                                                                              
                "org.qt-project.qt.audiodecode"                                                                                                                                                                        
            ]                                                                                                                                                                                                          
        },                                                                                                                                                                                                             
        "archreq": 0,                                                                                                                                                                                                  
        "className": "QGstreamerAudioDecoderServicePlugin",                                                                                                                                                            
        "debug": false,                                                                                                                                                                                                
        "version": 331520                                                                                                                                                                                              
    }                                                                                                                                                                                                                  
                                                                                                                                                                                                                       
                                                                                                                                                                                                                       
    In /home/ubuntu/Qt/Qt5.15.2/plugins/mediaservice/libgstaudiodecoder.so:                                                                                                                                            
      Plugin uses incompatible Qt library (5.15.0) [release]                                                                                                                                                           
    "The plugin '/home/ubuntu/Qt/Qt5.15.2/plugins/mediaservice/libgstaudiodecoder.so' uses incompatible Qt library. (5.15.0) [release]"                                                                                
             not a plugin                                                                                                                                                                                              
    QFactoryLoader::QFactoryLoader() looking at "/home/ubuntu/Qt/Qt5.15.2/plugins/mediaservice/libgstcamerabin.so"                                                                                                     
    Found metadata in lib /home/ubuntu/Qt/Qt5.15.2/plugins/mediaservice/libgstcamerabin.so, metadata=                                                                                                                  
    {                                                                                                                                                                                                                  
        "IID": "org.qt-project.qt.mediaserviceproviderfactory/5.0",                                                                                                                                                    
        "MetaData": {                                                                                                                                                                                                  
            "Keys": [                                                                                                                                                                                                  
                "gstreamercamerabin"                                                                                                                                                                                   
            ],                                                                                                                                                                                                         
            "Services": [                                                                                                                                                                                              
                "org.qt-project.qt.camera"                                                                                                                                                                             
            ]                                                                                                                                                                                                          
        },                                                                                                                                                                                                             
        "archreq": 0,                                                                                                                                                                                                  
        "className": "CameraBinServicePlugin",                                                                                                                                                                         
        "debug": false,                                                                                                                                                                                                
        "version": 331520                                                                                                                                                                                              
    }           
    
    In /home/ubuntu/Qt/Qt5.15.2/plugins/mediaservice/libgstcamerabin.so:                                                                                                                                     [115/1916]
      Plugin uses incompatible Qt library (5.15.0) [release]
    "The plugin '/home/ubuntu/Qt/Qt5.15.2/plugins/mediaservice/libgstcamerabin.so' uses incompatible Qt library. (5.15.0) [release]" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/home/ubuntu/Qt/Qt5.15.2/plugins/mediaservice/libgstmediacapture.so"
    Found metadata in lib /home/ubuntu/Qt/Qt5.15.2/plugins/mediaservice/libgstmediacapture.so, metadata=
    {
        "IID": "org.qt-project.qt.mediaserviceproviderfactory/5.0",
        "MetaData": {
            "Keys": [
                "gstreamermediacapture"
            ],
            "Services": [
                "org.qt-project.qt.audiosource"
            ]
        },
        "archreq": 0,
        "className": "QGstreamerCaptureServicePlugin",
        "debug": false,
        "version": 331520
    }
    
    
    In /home/ubuntu/Qt/Qt5.15.2/plugins/mediaservice/libgstmediacapture.so:
      Plugin uses incompatible Qt library (5.15.0) [release]
    "The plugin '/home/ubuntu/Qt/Qt5.15.2/plugins/mediaservice/libgstmediacapture.so' uses incompatible Qt library. (5.15.0) [release]" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/home/ubuntu/Qt/Qt5.15.2/plugins/mediaservice/libgstmediaplayer.so"
    Found metadata in lib /home/ubuntu/Qt/Qt5.15.2/plugins/mediaservice/libgstmediaplayer.so, metadata=
    {
        "IID": "org.qt-project.qt.mediaserviceproviderfactory/5.0",
        "MetaData": {
            "Keys": [
                "gstreamermediaplayer"
            ],
            "Services": [
                "org.qt-project.qt.mediaplayer"
            ]
        },
        "archreq": 0,
        "className": "QGstreamerPlayerServicePlugin",
        "debug": false,
        "version": 331520
    }
    
    
    In /home/ubuntu/Qt/Qt5.15.2/plugins/mediaservice/libgstmediaplayer.so:
      Plugin uses incompatible Qt library (5.15.0) [release]
    "The plugin '/home/ubuntu/Qt/Qt5.15.2/plugins/mediaservice/libgstmediaplayer.so' uses incompatible Qt library. (5.15.0) [release]" 
             not a plugin
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/aarch64-linux-gnu/qt5/plugins/mediaservice" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/home/ubuntu/projects/VideoStreamer/mediaservice" ...
    defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.camera"
    

    Why some plugins have version 5.15.0 if i built from sources 5.15.2?
    Thanks

    1 Reply Last reply
    0
    • C Online
      C Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 17 Dec 2020, 17:37 last edited by
      #2

      Make sure you don't have a Qt5.15 in your LD_LIBRARY_PATH. And print out the current Qt version in your main.cpp to see what you really load (https://doc.qt.io/qt-5/qtglobal.html#qVersion)

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

      B 1 Reply Last reply 17 Dec 2020, 20:38
      1
      • C Christian Ehrlicher
        17 Dec 2020, 17:37

        Make sure you don't have a Qt5.15 in your LD_LIBRARY_PATH. And print out the current Qt version in your main.cpp to see what you really load (https://doc.qt.io/qt-5/qtglobal.html#qVersion)

        B Offline
        B Offline
        BrMisha
        wrote on 17 Dec 2020, 20:38 last edited by
        #3

        @Christian-Ehrlicher Thanks for your answer!
        I dont know why, but qVersion() returns 5.12.8))) Now i'm rebuilding Qt

        1 Reply Last reply
        0
        • B Offline
          B Offline
          BrMisha
          wrote on 18 Dec 2020, 08:30 last edited by BrMisha
          #4

          In my system really was installed Qt 5.12. I added new Qt libs to ldconfig and now it works)))

          Note: If you are still getting "Error: cannot create camera service, the 'camerabin' plugin is missing for GStreamer 1.16" then try to install:

          libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad libgstreamer-plugins-bad1.0-dev gstreamer1.0-pulseaudio gstreamer1.0-tools gstreamer1.0-alsa  libasound2-dev
          
          
          1 Reply Last reply
          0

          1/4

          17 Dec 2020, 17:23

          • Login

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