Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QT embedded with X11
Forum Updated to NodeBB v4.3 + New Features

QT embedded with X11

Scheduled Pinned Locked Moved Installation and Deployment
13 Posts 2 Posters 9.4k 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.
  • Q Offline
    Q Offline
    qtandme
    wrote on last edited by
    #4

    I need Qt to be using X11 instead of the default linux framebuffer. How else I can proceed ?

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

      Do you have the x11 arm libs ?

      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
      • Q Offline
        Q Offline
        qtandme
        wrote on last edited by
        #6

        Yes, I do.

        1 Reply Last reply
        0
        • Q Offline
          Q Offline
          qtandme
          wrote on last edited by
          #7

          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.

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

            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

            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
            • Q Offline
              Q Offline
              qtandme
              wrote on last edited by
              #9

              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 ?

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

                Something like that yes, unless you have a window manager, you should then also be able to start your application from there

                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
                • Q Offline
                  Q Offline
                  qtandme
                  wrote on last edited by
                  #11

                  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++

                  1 Reply Last reply
                  0
                  • Q Offline
                    Q Offline
                    qtandme
                    wrote on last edited by
                    #12

                    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 2

                    When 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

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

                      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

                      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