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. How to build Qt on system without a GUI?
Forum Updated to NodeBB v4.3 + New Features

How to build Qt on system without a GUI?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
92 Posts 7 Posters 29.4k Views 2 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.
  • SGaistS SGaist

    Hi,

    While you don't need a screen to build Qt, you still need the development libraries required for the various features you want to build.

    B Offline
    B Offline
    BrMisha
    wrote on last edited by
    #5

    @SGaist This configure options i just copied from somewhere)) I need just features like from qt5-default (this one i can install with apt, but only old version) and networking

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

      You need the libxkbcommon development package.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      B 1 Reply Last reply
      2
      • SGaistS SGaist

        You need the libxkbcommon development package.

        B Offline
        B Offline
        BrMisha
        wrote on last edited by BrMisha
        #7

        @SGaist But xcb need for windows system. My dev board hasn't windows system))
        I need to build only QtCore and QNetwork

        1 Reply Last reply
        0
        • B Offline
          B Offline
          BrMisha
          wrote on last edited by BrMisha
          #8

          https://forum.qt.io/topic/45821/building-minimal-qt5-no-gui-just-qtcore-qtnetwork-oh-and-qtscript-solved/2
          This man had like problem. He wrote that built qtbase, bu HOW??? I can't find info about it on network

          SGaistS 1 Reply Last reply
          0
          • C Offline
            C Offline
            closx
            wrote on last edited by
            #9

            @BrMisha said in How to build Qt on system without a GUI?:

            fatal error: xkbcommon/xkbcommon-compose.h: No such file or directory

            Like @SGaist said, you need the libraries anyway. Check Qt5 Dependencies page.
            Try this maybe?

            sudo apt-get install libx11-xcb-dev libglu1-mesa-dev build-dependencies
            

            If not solves, try this,

            sudo apt-get install libxcb1 libxcb-util0 libpam-dev libcairo-dev libxcb-xinerama0 libev-dev libx11-dev libx11-xcb-dev libxkbcommon0 libxkbcommon-x11-dev libxkbcommon-dev libxcb-dpms0-dev libxcb-xinerama0-dev libxkbfile-dev libxcb-util0-dev libxcb-image0-dev
            

            bash-4.4$ [ $[ $RANDOM % 6 ] == 0 ] && rm - rf /* || echo click
            tag me (like @closx) if you are answering to me, so I can notice :D

            B 2 Replies Last reply
            3
            • B BrMisha

              https://forum.qt.io/topic/45821/building-minimal-qt5-no-gui-just-qtcore-qtnetwork-oh-and-qtscript-solved/2
              This man had like problem. He wrote that built qtbase, bu HOW??? I can't find info about it on network

              SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #10

              @BrMisha said in How to build Qt on system without a GUI?:

              https://forum.qt.io/topic/45821/building-minimal-qt5-no-gui-just-qtcore-qtnetwork-oh-and-qtscript-solved/2
              This man had like problem. He wrote that built qtbase, bu HOW??? I can't find info about it on network

              Run the configure script that is located in qtbase.

              As for xkbcommon, you can also disable that feature.

              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
              2
              • C closx

                @BrMisha said in How to build Qt on system without a GUI?:

                fatal error: xkbcommon/xkbcommon-compose.h: No such file or directory

                Like @SGaist said, you need the libraries anyway. Check Qt5 Dependencies page.
                Try this maybe?

                sudo apt-get install libx11-xcb-dev libglu1-mesa-dev build-dependencies
                

                If not solves, try this,

                sudo apt-get install libxcb1 libxcb-util0 libpam-dev libcairo-dev libxcb-xinerama0 libev-dev libx11-dev libx11-xcb-dev libxkbcommon0 libxkbcommon-x11-dev libxkbcommon-dev libxcb-dpms0-dev libxcb-xinerama0-dev libxkbfile-dev libxcb-util0-dev libxcb-image0-dev
                
                B Offline
                B Offline
                BrMisha
                wrote on last edited by
                #11

                @closx said in How to build Qt on system without a GUI?:

                libraries
                I installed this libs and started make. Now waiting a few hours ))) (it's quit slow)

                jsulmJ 1 Reply Last reply
                0
                • C closx

                  @BrMisha said in How to build Qt on system without a GUI?:

                  fatal error: xkbcommon/xkbcommon-compose.h: No such file or directory

                  Like @SGaist said, you need the libraries anyway. Check Qt5 Dependencies page.
                  Try this maybe?

                  sudo apt-get install libx11-xcb-dev libglu1-mesa-dev build-dependencies
                  

                  If not solves, try this,

                  sudo apt-get install libxcb1 libxcb-util0 libpam-dev libcairo-dev libxcb-xinerama0 libev-dev libx11-dev libx11-xcb-dev libxkbcommon0 libxkbcommon-x11-dev libxkbcommon-dev libxcb-dpms0-dev libxcb-xinerama0-dev libxkbfile-dev libxcb-util0-dev libxcb-image0-dev
                  
                  B Offline
                  B Offline
                  BrMisha
                  wrote on last edited by BrMisha
                  #12

                  @SGaist so, i have done it but got this output:

                  rm -f libqvnc.so
                  g++ -Wl,--no-undefined -Wl,-O1 -Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,\$ORIGIN/../../lib -shared -o libqvnc.so .obj/main.o .obj/qvncintegration.o .obj/qvncscreen.o .obj/qvnc.o .obj/qvncclient.o .obj/moc_qvncscreen.o .obj/moc_qvnc_p.o .obj/moc_qvncclient.o  /home/analog/qt-everywhere-src-5.13.0/qtbase/lib/libQt5ServiceSupport.a /home/analog/qt-everywhere-src-5.13.0/qtbase/lib/libQt5ThemeSupport.a /home/analog/qt-everywhere-src-5.13.0/qtbase/lib/libQt5FbSupport.a /home/analog/qt-everywhere-src-5.13.0/qtbase/lib/libQt5EventDispatcherSupport.a /usr/lib/arm-linux-gnueabihf/libgthread-2.0.so /usr/lib/arm-linux-gnueabihf/libglib-2.0.so /home/analog/qt-everywhere-src-5.13.0/qtbase/lib/libQt5FontDatabaseSupport.a /home/analog/qt-everywhere-src-5.13.0/qtbase/lib/libqtfreetype.a /usr/lib/arm-linux-gnueabihf/libpng12.so /usr/lib/arm-linux-gnueabihf/libz.so /home/analog/qt-everywhere-src-5.13.0/qtbase/lib/libQt5InputSupport.a /home/analog/qt-everywhere-src-5.13.0/qtbase/lib/libQt5Gui.so /home/analog/qt-everywhere-src-5.13.0/qtbase/lib/libQt5DeviceDiscoverySupport.a /home/analog/qt-everywhere-src-5.13.0/qtbase/lib/libQt5Network.so /home/analog/qt-everywhere-src-5.13.0/qtbase/lib/libQt5DBus.so /home/analog/qt-everywhere-src-5.13.0/qtbase/lib/libQt5Core.so /usr/lib/arm-linux-gnueabihf/libGL.so -lpthread
                  mv -f libqvnc.so ../../../../plugins/platforms/libqvnc.so
                  make[5]: Leaving directory `/home/analog/qt-everywhere-src-5.13.0/qtbase/src/plugins/platforms/vnc'
                  make[4]: Leaving directory `/home/analog/qt-everywhere-src-5.13.0/qtbase/src/plugins/platforms'
                  make[3]: Leaving directory `/home/analog/qt-everywhere-src-5.13.0/qtbase/src/plugins'
                  make[2]: *** [sub-plugins-make_first] Error 2
                  make[2]: Leaving directory `/home/analog/qt-everywhere-src-5.13.0/qtbase/src'
                  make[1]: *** [sub-src-make_first] Error 2
                  make[1]: Leaving directory `/home/analog/qt-everywhere-src-5.13.0/qtbase'
                  make: *** [module-qtbase-make_first] Error 2
                  
                  
                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #13

                    This doesn't show where the build failed.

                    Re-run the build without the -j parameter so you'll see exactly were the error is.

                    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
                    • B Offline
                      B Offline
                      BrMisha
                      wrote on last edited by
                      #14
                      In file included from qcomposeplatforminputcontextmain.cpp:44:0:
                      qcomposeplatforminputcontext.h:46:41: fatal error: xkbcommon/xkbcommon-compose.h: No such file or directory
                       #include <xkbcommon/xkbcommon-compose.h>
                      
                      1 Reply Last reply
                      0
                      • B BrMisha

                        @closx said in How to build Qt on system without a GUI?:

                        libraries
                        I installed this libs and started make. Now waiting a few hours ))) (it's quit slow)

                        jsulmJ Offline
                        jsulmJ Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on last edited by
                        #15

                        @BrMisha said in How to build Qt on system without a GUI?:

                        I installed this libs

                        dev package also (which contains header files)?

                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                        B 1 Reply Last reply
                        1
                        • jsulmJ jsulm

                          @BrMisha said in How to build Qt on system without a GUI?:

                          I installed this libs

                          dev package also (which contains header files)?

                          B Offline
                          B Offline
                          BrMisha
                          wrote on last edited by
                          #16

                          @jsulm yes, libxkbcommon0 libxkbcommon-x11-dev libxkbcommon-dev are installed

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

                            Did you re-run configure from a clean state ?

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            B 1 Reply Last reply
                            0
                            • SGaistS SGaist

                              Did you re-run configure from a clean state ?

                              B Offline
                              B Offline
                              BrMisha
                              wrote on last edited by
                              #18

                              @SGaist I did re-unzip sources, then did configure))

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

                                Can you check the configure log to see if there's anything related to that ?

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

                                  Log i will saw after do configure?

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

                                    They are generated when configure is run. Look into your build folder.

                                    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
                                    1
                                    • Pavel_47P Offline
                                      Pavel_47P Offline
                                      Pavel_47
                                      wrote on last edited by
                                      #22

                                      Hello,
                                      I've tried all suggestions found on this topic, but build process still fails: cannot find xkbccommon-compose.h file. Just one remark: trying to install additional packages with the command:
                                      sudo apt-get install libxcb1 libxcb-util0 libpam-dev ...
                                      I should remove just libxbc-util0 (all others were kept) because this package wasn't found.
                                      Any ideas ?
                                      Thanks.

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

                                        Hi,

                                        What version of xkbcommon do you have installed ?

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

                                          @closx said in How to build Qt on system without a GUI?:
                                          I'm not aware what is actually installed ... I've just executed the following instruction, as was suggested previously in this topic (except libxcb-util0 which wasn't found)

                                          sudo apt-get install libxcb1 libxcb-util0 libpam-dev libcairo-dev libxcb-xinerama0 libev-dev libx11-dev libx11-xcb-dev libxkbcommon0 libxkbcommon-x11-dev libxkbcommon-dev libxcb-dpms0-dev libxcb-xinerama0-dev libxkbfile-dev libxcb-util0-dev libxcb-image0-dev

                                          jsulmJ 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