Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt app without window manager.
Forum Updated to NodeBB v4.3 + New Features

Qt app without window manager.

Scheduled Pinned Locked Moved General and Desktop
35 Posts 3 Posters 21.9k 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.
  • C Offline
    C Offline
    Cyrilb
    wrote on last edited by
    #12

    What do you mean by system clock? I am using a virtual machine for this.

    The only thing that is not working from that guide is : scl enable devtoolset-1.1 bash

    Now i restarted the system and started a new build under root without webkit.

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

      This line

      @make[3]: Warning: File `../../.qmake.cache' has modification time 1.6e+04 s in the future
      @

      made me think of a clock problem

      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
      • C Offline
        C Offline
        Cyrilb
        wrote on last edited by
        #14

        Finally some progress.

        The build finished fine. I also built my first app. All ok.

        But when i try to run the app i get an error:
        @QFontDatabase: Cannot find font directory /usr/local/Qt-5.1.2/lib/fonts - is Qt installed correctly?@

        At this stage i haven't executed make install . A note on the guide says :
        @Note: Installation is only needed if you haven’t used the configure options -developer-build or -prefix “PWD/qtbase”. Otherwise you can just use Qt from the build directory.@

        And i didn't put -developer-build in my build configuration.
        Could this be the problem?

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

          You need to have this folder on your target computer

          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
          • C Offline
            C Offline
            Cyrilb
            wrote on last edited by
            #16

            Which directory? PWD/qtbase or /usr/local/Qt-5.1.2/lib/fonts ?
            What should it contain?

            I will also try a build with -developer-build but currently gitorious is down.

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

              /usr/local/Qt-5.1.2/lib/fonts, you need it on your target computer, the one running without window manager. It must contain the font files

              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
              • C Offline
                C Offline
                Cyrilb
                wrote on last edited by
                #18

                Ok, on dev platform it worked. The compiled binary is around 150MB.

                In the target at first it failed because it couldn't find libicudata.so.48 libicuuc.so.48 libicui18n.so.48 which is strange because i compiled it statically.
                Do i need any thing extra in the .pro file for static building the app ?

                After copying the requested libs in the target /usr/lib a new error appeared:
                @QXcbConnection Could not connect to display@

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

                  You can build a static library but still have shared dependency.

                  IIRC you need to tell your application which plugin you want to use

                  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
                  • C Offline
                    C Offline
                    Cyrilb
                    wrote on last edited by
                    #20

                    Ok, but why is qt still trying to use xcb, i built it for linuxfb?

                    My build configuration is:
                    @./configure -opensource -release -force-debug-info -confirm-license -static -qt-sql-mysql -qt-zlib -qt-libpng -qt-libjpeg -no-openssl -no-pch -linuxfb -nomake examples -nomake tests
                    @

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

                      Just wild guess, but it might be that linuxfb is built additionally to xcb

                      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
                      • C Offline
                        C Offline
                        Cyrilb
                        wrote on last edited by
                        #22

                        I just finnished rebuilding a fresh copy and if put -no-xcb the compilation fails with error:
                        @g++ -Wl,-rpath-link,/qt51/qtjsbackend/lib -o ../../bin/qmlplugindump .obj/release-static/main.o .obj/release-static/qmlstreamwriter.o .obj/release-static/qmlplugindump_plugin_import.o -L/qt51/qtdeclarative/lib -lQt5Quick -L/qt51/qtbase/lib -L/qt51/qtjsbackend/lib -lQt5Qml -lQt5V8 -lQt5Network -L/qt51/qtbase/plugins/platforms -lqminimal -lQt5PlatformSupport -lfontconfig -lfreetype -lXext -lX11 -lXrender -lQt5Gui -lQt5Core -licui18n -licuuc -lm -ldl -pthread -lgthread-2.0 -lglib-2.0 -lrt -lGL -lpthread
                        /usr/bin/ld: cannot find -lqxcb
                        collect2: error: ld returned 1 exit status
                        make[3]: *** [../../bin/qmlscene] Error 1
                        make[3]: Leaving directory /qt51/qtdeclarative/tools/qmlscene' make[2]: *** [sub-qmlscene-make_first] Error 2 make[2]: *** Waiting for unfinished jobs.... /qt51/qtbase/lib/libQt5Gui.a(qimage.o): In function memset':
                        /usr/include/i386-linux-gnu/bits/string3.h:81: warning: memset used with constant zero length parameter; this could be due to transposed parameters
                        make[3]: Leaving directory /qt51/qtdeclarative/tools/qmlplugindump' make[2]: Leaving directory /qt51/qtdeclarative/tools'
                        make[1]: *** [sub-tools-make_first] Error 2
                        make[1]: Leaving directory `/qt51/qtdeclarative'
                        make: *** [module-qtdeclarative-make_first] Error 2
                        @

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

                          Did you cleanup before rebuilding ?

                          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
                          • C Offline
                            C Offline
                            Cyrilb
                            wrote on last edited by
                            #24

                            It was a fresh build in a new directory.

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

                              Did you try with -qpa linuxfb ?

                              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
                              • C Offline
                                C Offline
                                Cyrilb
                                wrote on last edited by
                                #26

                                This is my configuration now:
                                @sudo ./configure -opensource -release -force-debug-info -confirm-license -static -qt-sql-mysql -qt-zlib -qt-libpng -qt-libjpeg -no-openssl -no-pch -qpa linuxfb -no-xcb -nomake examples -nomake tests@

                                @Build options:
                                Configuration .......... accessibility alsa audio-backend avx avx2 c++11 clock-gettime

                                clock-monotonic compile_examples concurrent cups dbus evdev eventfd fontconfig

                                force_debug_info full-config getaddrinfo getifaddrs gif glib gstreamer gtk2 gtkstyle iconv

                                icu inotify ipv6ifname jpeg large-config largefile linuxfb medium-config minimal-config

                                mremap nis opengl pcre png pulseaudio qpa qpa reduce_exports reduce_relocations release rpath

                                small-config sse2 sse3 sse4_1 sse4_2 ssse3 static system-freetype v8 v8snapshot xlib xrender

                                zlib
                                Build parts ............ libs tools
                                Mode ................... release (with debug info)
                                Using C++11 ............ yes
                                Using PCH .............. no
                                Target compiler supports:
                                SSE2/SSE3/SSSE3 ...... yes/yes/yes
                                SSE4.1/SSE4.2 ........ yes/yes
                                AVX/AVX2 ............. yes/yes

                                Qt modules and options:
                                Qt D-Bus ............... yes (loading dbus-1 at runtime)
                                Qt Concurrent .......... yes
                                Qt GUI ................. yes
                                Qt Widgets ............. yes
                                JavaScriptCore JIT ..... yes (To be decided by JavaScriptCore)
                                QML debugging .......... yes
                                Use system proxies ..... no

                                Support enabled for:
                                Accessibility .......... yes
                                ALSA ................... yes
                                CUPS ................... yes
                                FontConfig ............. yes
                                Iconv .................. yes
                                ICU .................... yes
                                Image formats:
                                GIF .................. yes (in QtGui, using system library)
                                JPEG ................. yes (in QtGui, using bundled copy)
                                PNG .................. yes (in QtGui, using bundled copy)
                                Glib ................... yes
                                GStreamer .............. yes
                                GTK theme .............. yes
                                Large File ............. yes
                                libudev ................ no
                                Networking:
                                getaddrinfo .......... yes
                                getifaddrs ........... yes
                                IPv6 ifname .......... yes
                                OpenSSL .............. no
                                NIS .................... yes
                                OpenGL ................. desktop
                                OpenVG ................. no
                                PCRE ................... yes (bundled copy)
                                pkg-config ............. yes
                                PulseAudio ............. yes
                                QPA backends:
                                DirectFB ............. no
                                EGLFS ................ no
                                KMS .................. no
                                LinuxFB .............. yes
                                XCB .................. no
                                Session management ..... yes
                                SQL drivers:
                                DB2 .................. no
                                InterBase ............ no
                                MySQL ................ qt
                                OCI .................. no
                                ODBC ................. no
                                PostgreSQL ........... no
                                SQLite 2 ............. no
                                SQLite ............... yes (plugin, using bundled copy)
                                TDS .................. no
                                udev ................... no
                                xkbcommon .............. no
                                zlib ................... yes (bundled copy)
                                @

                                It is building now, fingers crossed.

                                1 Reply Last reply
                                0
                                • C Offline
                                  C Offline
                                  Cyrilb
                                  wrote on last edited by
                                  #27

                                  So far so great.

                                  I built twice. It failed the first time because i forgot to ommit the webkit, pfff.

                                  The second time it build perfectly with the above configuration. Thanks SGaist.

                                  So i quickly built a simple gui app and copied it in the target system and voila a window appeared :) .

                                  But, still a but, i don't have a mouse and keyboard. And the system is stuck at this point.

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

                                    Great !

                                    You can also move/remove the webkit folder if you want to avoid that.

                                    Are both detected on your target system ?

                                    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
                                    • C Offline
                                      C Offline
                                      Cyrilb
                                      wrote on last edited by
                                      #29

                                      My target system is just a console system. I guess at least the keyboard should be ok because i am able to launch it.

                                      How can i check if mouse is detected also?

                                      1 Reply Last reply
                                      0
                                      • C Offline
                                        C Offline
                                        Cyrilb
                                        wrote on last edited by
                                        #30

                                        Update:

                                        AnalogClock example runs ok. I mean that the clock ticks.

                                        I changed my app by placing a QLineEdit and i can see the cursor in the QLineEdit blinking but i can't type nor move the mouse.

                                        1 Reply Last reply
                                        0
                                        • C Offline
                                          C Offline
                                          Cyrilb
                                          wrote on last edited by
                                          #31

                                          Update: yes mouse is detected on the target system.

                                          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