Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Error when Runnning Qt example on Arm Cortex-A9:could not find or load the Qt platform plugin "linuxfb"
Forum Updated to NodeBB v4.3 + New Features

Error when Runnning Qt example on Arm Cortex-A9:could not find or load the Qt platform plugin "linuxfb"

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 2 Posters 554 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.
  • D Offline
    D Offline
    drunk_solder
    wrote on 16 Nov 2018, 12:45 last edited by
    #1

    Recently I've cross compiled QT 5.6 using arm-linux-gnueabihf in my ubuntu 14.04.And after I build up everything,I just mvoe it to the target board for a check.And things went unexpected when i run the analogclock:

    root@FriendlyELEC:/usr/local/qt_sdk/examples/gui/analogclock# ./analogclock 
    This application failed to start because it could not find or load the Qt platform plugin "linuxfb"
    in "/usr/local/qt_sdk/plugins/platforms".
    
    Available platform plugins are: linuxfb (from /usr/local/qt_sdk/plugins/platforms), minimal (from /usr/local/qt_sdk/plugins/platforms), offscreen (from /usr/local/qt_sdk/plugins/platforms).
    
    Reinstalling the application may fix this problem.
    Aborted (core dumped)
    root@FriendlyELEC:/usr/local/qt_sdk/examples/gui/analogclock# 
    
    

    It puzzled me because the system had found the .so files but unable to carry out.
    And it seems that my configuration is not to blame.This is part of my /etc/profile:

    export QTDIR=/usr/local/qt_sdk
    export QT_QPA_FONTDIR=$QTDIR/lib/fonts
    #export QT_PLUGIN_PATH=$QTDIR/plugins/platforms
    export QT_QPA_PLATFORM_PLUGIN_PATH=$QTDIR/plugins/platforms
    export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
    #export LD_LIBRARY_PATH=/usr/lib/arm-linux-gnueabihf/:$LD_LIBRARY_PATH
    export QT_QPA_PLATFORM=linuxfb:fb=/dev/fb0:size=800x600:mmSize=800x600:offset=0xx
    0:tty=/dev/tty1
    #framebuffer
    export QWS_MOUSE_PROTO=/dev/input/event0
    export QT_PLUGIN_PATH=$QTDIR/plugins/platforms/
    
    export PATH=$QTDIR/bin:$PATH
    
    

    And I also checked my directory:

    root@FriendlyELEC:/usr/local/qt_sdk# ls plugins/platforms
    libqlinuxfb.so  libqminimal.so  libqoffscreen.so  libqxcb.so
    
    

    And now I am wondering that maybe I got something wrong with my cross-compiling.Before I cross compiled the QT,I have set the env var PKG_CONFIG_LIBDIR:

    root@ming-2-00:~/qt-everywhere-opensource-src-5.6.0# echo $PKG_CONFIG_LIBDIR
    /usr/lib/arm-linux-gnueabihf/pkgconfig
    
    

    This is what I used for cross compiling QT:

    #!/bin/sh
    ./configure -prefix /opt/arm/qt5.6_64/qt_sdk \
    -opensource \
    -release \
    -no-pch \
    -confirm-license \
    -xplatform linux-arm-gnueabi-g++ \
    -shared \
    -qt-zlib \
    -iconv \
    -no-gif \
    -no-nis \
    -qt-libjpeg \
    -no-opengl \
    -no-cups \
    -no-glib \
    -no-dbus \
    -no-rpath \
    -no-sse2 -no-sse3 -no-ssse3 -no-sse4.1 -no-sse4.2 \
    -no-avx \
    -no-openssl \
    -nomake tools \
    -v \
    -qreal float \
    -qt-libpng \
    -qt-xcb \
    -make examples
    
    

    could anybody told me what's the mistake I shall fix?or what i miss?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 16 Nov 2018, 21:52 last edited by
      #2

      Hi and welcome to devnet,

      You should run ldd on the plugin to see if you have all dependencies installed on your device.

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

      1 Reply Last reply
      0

      1/2

      16 Nov 2018, 12:45

      • Login

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