Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Error on running Qt 5 example project on embedded arm target

    Mobile and Embedded
    2
    4
    1429
    Loading More Posts
    • 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
      kraj_mdn last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • K
          kraj_mdn @SGaist last edited by

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

          Regards,
          Krishnaraj

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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 Reply Quote 0
            • First post
              Last post