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. Error on running Qt 5 example project on embedded arm target
Forum Updated to NodeBB v4.3 + New Features

Error on running Qt 5 example project on embedded arm target

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 1.8k 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.
  • K Offline
    K Offline
    kraj_mdn
    wrote on last edited by
    #1

    I have downloaded Qt 5.7 open source version. Then configured and built it to run on an embedded target with below mentioned configuration options.

    ./configure -xplatform linux-arm-hisiv400-linux-gnueabi-g++ -opensource -skip qtquickcontrols -skip qtwebchannel -skip qtactiveqt -skip qtandroidextras -skip qtdeclarative -skip qtimageformats -skip qtmacextras -skip qtserialport -skip qtx11extras -skip qtxmlpatterns -skip qtconnectivity -skip qtdoc -skip qtgraphicaleffects -skip qtlocation -skip qtmultimedia -skip qtsensors -skip qttools -skip qttranslations -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwinextras -verbose -no-gif -no-libjpeg -no-mtdev -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-xcb -qt-freetype -fontconfig -no-harfbuzz -no-xinput2 -no-xcb-xlib -no-pulseaudio -no-alsa -no-nis -no-cups -no-iconv -no-icu -no-eglfs -no-openssl -shared -qpa linuxfb -confirm-license

    I was able to configure it successfully and after built the Qt 5.7. After this, copied generated libraries from <loc_Qt_source>/qt_base/lib/ to my embedded target. Also copied one of the GUI example project analogclock (qtbase/examples/gui/analogclock) to embedded target. In the embedded target set the library path correctly. Then tried running this example project using command shown below.

    ./analogclock -platform linuxfb

    But I am getting below error on running this example project.

    Failed to open framebuffer /dev/fb0 (Operation not permitted)
    linuxfb: Failed to initialize screen
    Segmentation fault

    Could any one please let me know what might be wrong here and how to fix this issue.

    Regards,
    Kraj.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Did you check that you have the rights to access that device ?

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

      K 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Did you check that you have the rights to access that device ?

        K Offline
        K Offline
        kraj_mdn
        wrote on last edited by
        #3

        @SGaist Thank you for your reply. Yes, I have the rights to access the device.

        Regards,
        Krishnaraj

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Just to be sure we are talking about the same thing: I meant /deb/fb0 on the target not the target itself.

          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

          • Login

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