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.6k 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.
  • P Offline
    P Offline
    Pavel_47
    wrote on 25 Oct 2019, 10:22 last edited by
    #53

    So, problems in Makefile ?

    J 1 Reply Last reply 25 Oct 2019, 11:10
    0
    • P Pavel_47
      25 Oct 2019, 10:22

      So, problems in Makefile ?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 25 Oct 2019, 11:10 last edited by
      #54

      @Pavel_47 Try

      file /home/pavel/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libxkbcommon.so
      

      and post the output here.

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

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Pavel_47
        wrote on 25 Oct 2019, 11:24 last edited by
        #55

        here it is:

        pavel@ALABAMA:~/raspi/qtbase$ file ~/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libxkbcommon.so
        /home/pavel/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libxkbcommon.so: symbolic link to libxkbcommon.so.0.0.0
        
        J 1 Reply Last reply 25 Oct 2019, 12:04
        0
        • P Pavel_47
          25 Oct 2019, 11:24

          here it is:

          pavel@ALABAMA:~/raspi/qtbase$ file ~/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libxkbcommon.so
          /home/pavel/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libxkbcommon.so: symbolic link to libxkbcommon.so.0.0.0
          
          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 25 Oct 2019, 12:04 last edited by
          #56

          @Pavel_47 Then please do

          file /home/pavel/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libxkbcommon.so.0.0.0
          

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

          1 Reply Last reply
          0
          • P Offline
            P Offline
            Pavel_47
            wrote on 25 Oct 2019, 12:10 last edited by
            #57
            pavel@ALABAMA:~/raspi/qtbase$ file ~/pavel/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libxkbcommon.so.0.0.0
            /home/pavel/pavel/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libxkbcommon.so.0.0.0: cannot open `/home/pavel/pavel/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libxkbcommon.so.0.0.0' (No such file or directory)
            
            P 1 Reply Last reply 25 Oct 2019, 13:56
            0
            • P Pavel_47
              24 Oct 2019, 11:09

              I've just checked libxkbcommon-dev and libxkbcommon-x11-dev on RPi. As on Ubuntu they are installed and are newest versions.

              P Offline
              P Offline
              Pablo J. Rogina
              wrote on 25 Oct 2019, 13:28 last edited by
              #58

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

              I've just checked libxkbcommon-dev and libxkbcommon-x11-dev on RPi.

              So sync them to your sysroot in the host PC!

              As on Ubuntu they are installed and are newest versions.

              Forget about that, it doesn't matter.

              For cross-compilation you need your libraries + headers installed properly in target device (RPi), then copy (synchronize) some folders from your target device into the sysroot folder in your host PC (with Ubuntu) and only then attempt to build (Qt framework, modules, your application).

              Please take a look at this guide for cross-compiling Qt for RPi

              Upvote the answer(s) that helped you solve the issue
              Use "Topic Tools" button to mark your post as Solved
              Add screenshots via postimage.org
              Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

              P 1 Reply Last reply 25 Oct 2019, 13:48
              1
              • P Pablo J. Rogina
                25 Oct 2019, 13:28

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

                I've just checked libxkbcommon-dev and libxkbcommon-x11-dev on RPi.

                So sync them to your sysroot in the host PC!

                As on Ubuntu they are installed and are newest versions.

                Forget about that, it doesn't matter.

                For cross-compilation you need your libraries + headers installed properly in target device (RPi), then copy (synchronize) some folders from your target device into the sysroot folder in your host PC (with Ubuntu) and only then attempt to build (Qt framework, modules, your application).

                Please take a look at this guide for cross-compiling Qt for RPi

                P Offline
                P Offline
                Pavel_47
                wrote on 25 Oct 2019, 13:48 last edited by
                #59

                @Pablo-J-Rogina said in How to build Qt on system without a GUI?:

                Please take a look at this guide for cross-compiling Qt for RPi

                I proceeded exactly as described on the page you mentioned.
                Sure I performed the resync with RPi

                1 Reply Last reply
                0
                • P Pavel_47
                  25 Oct 2019, 12:10
                  pavel@ALABAMA:~/raspi/qtbase$ file ~/pavel/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libxkbcommon.so.0.0.0
                  /home/pavel/pavel/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libxkbcommon.so.0.0.0: cannot open `/home/pavel/pavel/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libxkbcommon.so.0.0.0' (No such file or directory)
                  
                  P Offline
                  P Offline
                  Pablo J. Rogina
                  wrote on 25 Oct 2019, 13:56 last edited by
                  #60

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

                  Sure I performed the resync with RPi

                  I'm not going to argue in contrary, so your next task is to figure out why even having rsync'd the file is missing from your sysroot folder...

                  /home/pavel/pavel/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libxkbcommon.so.0.0.0: cannot open

                  Upvote the answer(s) that helped you solve the issue
                  Use "Topic Tools" button to mark your post as Solved
                  Add screenshots via postimage.org
                  Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                  1 Reply Last reply
                  0
                  • P Offline
                    P Offline
                    Pavel_47
                    wrote on 25 Oct 2019, 14:26 last edited by
                    #61

                    The file isn't missing. It's there:
                    alt text

                    P 1 Reply Last reply 25 Oct 2019, 14:41
                    0
                    • P Pavel_47
                      25 Oct 2019, 14:26

                      The file isn't missing. It's there:
                      alt text

                      P Offline
                      P Offline
                      Pablo J. Rogina
                      wrote on 25 Oct 2019, 14:41 last edited by
                      #62

                      @Pavel_47

                      The file isn't missing. It's there:

                      Well, it's somewhere else but not in the expected location it seems...

                      /home/pavel/pavel/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libxkbcommon.so.0.0.0

                      is different from the location in your last post (again, please stop posting screenshots!)

                      /home/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libxkbcommon.so.0.0.0

                      Upvote the answer(s) that helped you solve the issue
                      Use "Topic Tools" button to mark your post as Solved
                      Add screenshots via postimage.org
                      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                      1 Reply Last reply
                      0
                      • P Offline
                        P Offline
                        Pavel_47
                        wrote on 25 Oct 2019, 14:48 last edited by
                        #63

                        Sorry, I've been mistaken while executing:
                        file /home/pavel/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libxkbcommon.so.0.0.0

                        the correct result is here:

                        pavel@ALABAMA:~/raspi/qtbase$ file ~/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libxkbcommon.so.0.0.0
                        /home/pavel/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libxkbcommon.so.0.0.0: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, BuildID[sha1]=ca40d4cec17c0cb8d6a85dcefc44fc89ac706d41, stripped
                        
                        
                        1 Reply Last reply
                        0
                        • P Offline
                          P Offline
                          Pavel_47
                          wrote on 28 Oct 2019, 10:04 last edited by
                          #64

                          I contacted Ran Benita, the developer of xkbcommon package, and exposed him the problem. After some checks on my system, here is his conclusion:

                          "The version of libxkbcommon you have in your arm-linux-gnueabihf raspi/sysroot is very very old. Qt requires a newer version. You should update your cross-compilation environment to something more recent."

                          Where /home/pavel/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libxkbcommon.so comes from ?

                          J 1 Reply Last reply 28 Oct 2019, 13:26
                          0
                          • P Pavel_47
                            28 Oct 2019, 10:04

                            I contacted Ran Benita, the developer of xkbcommon package, and exposed him the problem. After some checks on my system, here is his conclusion:

                            "The version of libxkbcommon you have in your arm-linux-gnueabihf raspi/sysroot is very very old. Qt requires a newer version. You should update your cross-compilation environment to something more recent."

                            Where /home/pavel/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libxkbcommon.so comes from ?

                            J Offline
                            J Offline
                            jsulm
                            Lifetime Qt Champion
                            wrote on 28 Oct 2019, 13:26 last edited by
                            #65

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

                            Where /home/pavel/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libxkbcommon.so comes from ?

                            From your Raspberry Pi when you're syncing it...
                            What exact OS (including version) do you run on it?

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

                            1 Reply Last reply
                            0
                            • P Offline
                              P Offline
                              Pavel_47
                              wrote on 28 Oct 2019, 13:33 last edited by
                              #66

                              uname -a
                              Linux raspberry 4.9.77-v7+

                              cat /etc/os-release
                              Raspian GNU/Linux 8 (jessie)

                              J 1 Reply Last reply 28 Oct 2019, 13:35
                              0
                              • P Pavel_47
                                28 Oct 2019, 13:33

                                uname -a
                                Linux raspberry 4.9.77-v7+

                                cat /etc/os-release
                                Raspian GNU/Linux 8 (jessie)

                                J Offline
                                J Offline
                                jsulm
                                Lifetime Qt Champion
                                wrote on 28 Oct 2019, 13:35 last edited by
                                #67

                                @Pavel_47 You can try to upgrade to current Raspbian version and then recreate your sysroot.

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

                                1 Reply Last reply
                                0
                                • P Offline
                                  P Offline
                                  Pavel_47
                                  wrote on 28 Oct 2019, 13:45 last edited by
                                  #68

                                  Well ... I did it just before resync. Then, as I remember, after some manipulations with other staff, system proposed to remove unused files ... and I did it. Ok, I'll try to upgrade one more time. Then what should I check on RPi3, that xkbcommon package is latest version ?

                                  P 1 Reply Last reply 28 Oct 2019, 13:47
                                  0
                                  • P Pavel_47
                                    28 Oct 2019, 13:45

                                    Well ... I did it just before resync. Then, as I remember, after some manipulations with other staff, system proposed to remove unused files ... and I did it. Ok, I'll try to upgrade one more time. Then what should I check on RPi3, that xkbcommon package is latest version ?

                                    P Offline
                                    P Offline
                                    Pablo J. Rogina
                                    wrote on 28 Oct 2019, 13:47 last edited by
                                    #69

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

                                    I'll try to upgrade one more time. Then what should I check on RPi3, that xkbcommon package is latest version ?

                                    please be aware that @jsulm is suggesting to update your OS, not just that library/package...

                                    Latest Raspbian release is Buster

                                    Upvote the answer(s) that helped you solve the issue
                                    Use "Topic Tools" button to mark your post as Solved
                                    Add screenshots via postimage.org
                                    Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                                    1 Reply Last reply
                                    1
                                    • P Offline
                                      P Offline
                                      Pavel_47
                                      wrote on 28 Oct 2019, 14:01 last edited by
                                      #70

                                      Yes, I understood the suggestion and upgraded system ... but being within "jessie". The Buster is quite new version, released 3-4 months ago. Ran Benita qualified xkbcommon staff, that caused problems and that originates from Raspberry (if my comprehension is correct), as "very very old". So, let's say in May 2019 (before Buster) it was impossible to install Qt toolchain ... or I missed something ? I've just checked upgrade to Buster ... according to some manual I've found on the web, it could take several hours. So, is it really necessary to upgrade to Buster ?

                                      1 Reply Last reply
                                      0
                                      • P Offline
                                        P Offline
                                        Pavel_47
                                        wrote on 28 Oct 2019, 14:27 last edited by
                                        #71

                                        Has anyone managed to install Qt toolchain on Ubuntu that was synchronized with RPi running Buster ? If it's the case I will immediately buy new RPi4 and install Buster on it.

                                        J 1 Reply Last reply 29 Oct 2019, 06:12
                                        0
                                        • P Pavel_47
                                          28 Oct 2019, 14:27

                                          Has anyone managed to install Qt toolchain on Ubuntu that was synchronized with RPi running Buster ? If it's the case I will immediately buy new RPi4 and install Buster on it.

                                          J Offline
                                          J Offline
                                          jsulm
                                          Lifetime Qt Champion
                                          wrote on 29 Oct 2019, 06:12 last edited by
                                          #72

                                          @Pavel_47 I plan to do so this week. I already have RPi4, but need to install Buster first. Can't tell you when exactly I will do all this. You can ping me end of week (if it is not that urgent :-)).

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

                                          1 Reply Last reply
                                          1

                                          62/92

                                          25 Oct 2019, 14:41

                                          • Login

                                          • Login or register to search.
                                          62 out of 92
                                          • First post
                                            62/92
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved