Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Issues with evdev when cross-compiling Qt statically
Forum Updated to NodeBB v4.3 + New Features

Issues with evdev when cross-compiling Qt statically

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 992 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.
  • M Offline
    M Offline
    michix5d
    wrote on last edited by
    #1

    Hello,

    i'm trying to create a small application for my dev-board (armhf, ubuntu). Currently, the application is made with some widgets and not really functional. But on my dev-computer the application starts correctly and displays everything as expected. At the dev-board is neither a lightweight X nor Qt5 available. So i wanted to use the linuxfb. That also works on my computer with following command:
    @<application> -platform linuxfb -plugin EvdevKeyboard -plugin EvdevMouse@
    Then i cross-compiled Qt 5.3.0 using following configuration:
    @./configure -opensource -confirm-license -prefix /opt/qt5-armhf -static -no-qml-debug -xplatform armhf-g++ -no-gif -qt-libpng -no-libjpeg -no-openssl -no-cups -no-eglfs -no-directfb -no-directfb -qpa linuxfb -no-opengl -nomake examples -nomake tests@
    After compiling everything, moving fonts and application to the dev-board, i started it and got following output at stdout:
    @This plugin does not support setParent!@
    The window was visible, but no input was recognized. The input devices are working correctly, i can cat them without issues. I also tried to link the application with the evdev-plugins via .pro:
    @QT += widgets

    DESTDIR = bin
    HEADERS = src/mainwindow.h src/modules/RepartitionModule.h src/modules/ConfigModule.h
    SOURCES = src/main.cpp src/mainwindow.cpp src/modules/RepartitionModule.cpp
    RESOURCES = installer.qrc
    QTPLUGIN += qevdevkeyboardplugin qevdevmouseplugin@

    What's wrong and how to repair?

    Thanks in advance.

    1 Reply Last reply
    0
    • W Offline
      W Offline
      wickwire
      wrote on last edited by
      #2

      Hi,

      If you run your app as the root user, are you able to use the inputs then?

      1 Reply Last reply
      0
      • M Offline
        M Offline
        michix5d
        wrote on last edited by
        #3

        If using linuxfb, i have to call as root. A normal user is (without modification of udev-rules) not able to open /dev/fbX. So yes: i'm not able to get inputs even running as root.

        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