Error on running Qt 5 example project on embedded arm target
-
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 faultCould any one please let me know what might be wrong here and how to fix this issue.
Regards,
Kraj. -
Hi and welcome to devnet,
Did you check that you have the rights to access that device ?
-
Just to be sure we are talking about the same thing: I meant
/deb/fb0
on the target not the target itself.