QT embedded with X11
-
wrote on 10 Apr 2013, 08:56 last edited by
I need Qt to be using X11 instead of the default linux framebuffer. How else I can proceed ?
-
Do you have the x11 arm libs ?
-
wrote on 10 Apr 2013, 09:44 last edited by
Yes, I do.
-
wrote on 10 Apr 2013, 10:23 last edited by
I need X server to be running on my board. But the Qt application built (embedded) uses linux framebuffer. That's the reason I'm looking into cross compiling Qt with X11.
-
Then you don't want to use the qws mkspecs.
You have to remove the embedded option and IRCC use -arch arm -xplatform linux-arm-g++ (you might want to make your own mkspec for your toolchain setup so you can reuse it while programming)
Hope it helps
-
wrote on 10 Apr 2013, 12:00 last edited by
Yes It did, thanks a ton! :)
Now when I want to run a Qt application, how do I specify the display ?
Like I need to start the X server and do ./QtApp -display =:0 Something like this ? -
Something like that yes, unless you have a window manager, you should then also be able to start your application from there
-
wrote on 12 Apr 2013, 05:36 last edited by
When I'm cross compiling, I'm facing this kind of issue.
$(my_sysroot_path)/usr/include/QtCore/qatomic_armv5.h: Assembler messages:
$(my_sysroot_path)/usr/include/QtCore/qatomic_armv5.h:131: Error: no such instruction: `swpb %al,%dl,[%esi]'My configure variables look like
PKG_CONFIG_SYSROOT_DIR="/home/carol/OMAP_BUILDROOT/buildroot-2012.11.1/output/host/usr/arm-buildroot-linux-gnueabi/sysroot" PKG_CONFIG="/home/carol/OMAP_BUILDROOT/buildroot-2012.11.1/output/host/usr/bin/pkg-config" PKG_CONFIG_PATH="/home/carol/OMAP_BUILDROOT/buildroot-2012.11.1/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/pkgconfig:" MAKEFLAGS=" -j8" ./configure -developer-build -opensource -nomake examples -nomake tests -no-gtkstyle -confirm-license -xplatform linux-omap4-g++ -force-pkg-config -hostprefix /home/carol/OMAP_BUILDROOT/buildroot-2012.11.1/output/host/usr/arm-buildroot-linux-gnueabi/sysroot -largefile -nomake examples -nomake demos -no-glib -no-icu -no-neon -no-avx -no-javascript-jit -no-sse -no-sse2 -no-sse3 -no-ssse3 -no-sse4.1 -no-sse4.2 -no-iconv -no-icu -no-dbus -no-glib -no-avx -no-neon -no-gif -system-libpng -system-libjpeg -no-openssl -prefix $PWD/qtbase -hostprefix /home/carol/OMAP_BUILDROOT/buildroot-2012.11.1/output/host/usr/arm-buildroot-linux-gnueabi/sysroot -no-audio-backend -no-nis -platform linux-g++
-
wrote on 12 Apr 2013, 11:36 last edited by
I was using Qt verison 4.8.4.
Just to verfy I tried using Qt 5.0.2 using configure options:
PKG_CONFIG_SYSROOT_DIR="/home/carol/OMAP_BUILDROOT/buildroot-2012.11.1/output/host/usr/arm-buildroot-linux-gnueabi/sysroot" PKG_CONFIG="/home/carol/OMAP_BUILDROOT/buildroot-2012.11.1/output/host/usr/bin/pkg-config" PKG_CONFIG_PATH="/home/carol/OMAP_BUILDROOT/buildroot-2012.11.1/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/pkgconfig:" MAKEFLAGS=" -j8" ./configure -silent -force-pkg-config -opensource -confirm-license -largefile -nomake examples -nomake demos -no-glib -no-icu -no-neon -no-avx -no-javascript-jit -no-sse -no-sse2 -no-sse3 -no-ssse3 -no-sse4.1 -no-sse4.2 -xsync -xcursor -xfixes -xinput -xrender -xplatform linux-omap4-g++ -release -shared -no-gif -qt-zlib -system-libjpeg -system-libpng -no-openssl -no-sql-sqlite -no-audio-backend -no-javascript-jit -no-xinerama -no-cups -no-nis -no-accessibility -no-separate-debug-info -plugindir /usr/lib/qt/plugins -hostprefix /home/carol/OMAP_BUILDROOT/buildroot-2012.11.1/output/host/usr/arm-buildroot-linux-gnueabi/sysroot -no-rpath -v -device linux-omap4-g++ -make libs -device-option CROSS_COMPILE="/home/carol/OMAP_BUILDROOT/buildroot-2012.11.1/output/host/usr/bin/arm-linux-gnueabihf-" -qt-xcb -no-opengl -no-glib -sysroot /home/carol/OMAP_BUILDROOT/buildroot-2012.11.1/output/host/usr/arm-buildroot-linux-gnueabi/sysroot -no-kms -no-directfb -no-eglfs -xrender
I came across bunch of errors.
make[5]: Entering directory
/home/carol/Documents/Omap/QT_GIT/qt-everywhere-opensource-src-5.0.2/qtdeclarative/src/plugins/qmltooling/qmldbg_qtquick2' compiling qquickviewinspector.cpp In file included from ../../../../include/QtQuick/qsggeometry.h:1:0, from ../../../../include/QtQuick/../../src/quick/scenegraph/coreapi/qsgnode.h:45, from ../../../../include/QtQuick/qsgnode.h:1, from ../../../../include/QtQuick/5.0.2/QtQuick/private/../../../../../src/quick/scenegraph/qsgcontext_p.h:54, from ../../../../include/QtQuick/5.0.2/QtQuick/private/qsgcontext_p.h:1, from ../../../../include/QtQuick/5.0.2/QtQuick/private/../../../../../src/quick/items/qquickwindow_p.h:60, from ../../../../include/QtQuick/5.0.2/QtQuick/private/../../../../../src/quick/items/qquickitem_p.h:62, from ../../../../include/QtQuick/5.0.2/QtQuick/private/qquickitem_p.h:1, from qquickviewinspector.cpp:49: ../../../../include/QtQuick/../../src/quick/scenegraph/coreapi/qsggeometry.h:117:25: error: ‘GLenum’ has not been declared ../../../../include/QtQuick/../../src/quick/scenegraph/coreapi/qsggeometry.h:118:12: error: ‘GLenum’ does not name a type ../../../../include/QtQuick/../../src/quick/scenegraph/coreapi/qsggeometry.h:114:33: error: ‘GL_UNSIGNED_SHORT’ was not declared in this scope ../../../../include/QtQuick/../../src/quick/scenegraph/coreapi/qsggeometry.h: In member function ‘int QSGGeometry::sizeOfIndex() const’: ../../../../include/QtQuick/../../src/quick/scenegraph/coreapi/qsggeometry.h:290:25: error: ‘GL_UNSIGNED_SHORT’ was not declared in this scope ../../../../include/QtQuick/../../src/quick/scenegraph/coreapi/qsggeometry.h:291:30: error: ‘GL_UNSIGNED_BYTE’ was not declared in this scope ../../../../include/QtQuick/../../src/quick/scenegraph/coreapi/qsggeometry.h:292:30: error: ‘GL_UNSIGNED_INT’ was not declared in this scope <...> make[3]: *** [sub-qmltooling-make_first] Error 2 make[3]: Leaving directory
/home/carol/Documents/Omap/QT_GIT/qt-everywhere-opensource-src-5.0.2/qtdeclarative/src/plugins'
make[2]: *** [sub-plugins-make_first-ordered] Error 2
make[2]: Leaving directory/home/carol/Documents/Omap/QT_GIT/qt-everywhere-opensource-src-5.0.2/qtdeclarative/src' make[1]: *** [sub-src-make_first] Error 2 make[1]: Leaving directory
/home/carol/Documents/Omap/QT_GIT/qt-everywhere-opensource-src-5.0.2/qtdeclarative'
make: *** [module-qtdeclarative-make_first] Error 2When i tried to google search for it, I learnt its because of the opengl. I have used -no-opengl option and I'm still facing the issue. Can you help me with this ?
Thanks,
Carol -
I would say you have to disable QtQuick from building, but right now i don't know what option to add or folder to remove in order to do that... (It might be as simple as to remove the qtdeclarative folder before configuration)
Hope it helps
13/13