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?
QtWS25 Last Chance

How to build Qt on system without a GUI?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
92 Posts 7 Posters 25.8k Views
  • 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.
  • Pavel_47P Offline
    Pavel_47P Offline
    Pavel_47
    wrote on last edited by
    #77

    Hear is after clean and launching make:

    constant_mappings.cpp: In function ‘quint64 spiStatesFromQState(QAccessible::State)’:
    constant_mappings.cpp:82:35: error: ‘ATSPI_STATE_READ_ONLY’ was not declared in this scope
             setSpiStateBit(&spiState, ATSPI_STATE_READ_ONLY);
                                       ^
    Makefile:2911: recipe for target '.obj/constant_mappings.o' failed
    make[3]: *** [.obj/constant_mappings.o] Error 1
    make[3]: Leaving directory '/home/pavel/qtbase/src/platformsupport/linuxaccessibility'
    Makefile:358: recipe for target 'sub-linuxaccessibility-make_first' failed
    make[2]: *** [sub-linuxaccessibility-make_first] Error 2
    make[2]: Leaving directory '/home/pavel/qtbase/src/platformsupport'
    Makefile:585: recipe for target 'sub-platformsupport-make_first' failed
    make[1]: *** [sub-platformsupport-make_first] Error 2
    make[1]: Leaving directory '/home/pavel/qtbase/src'
    Makefile:50: recipe for target 'sub-src-make_first' failed
    make: *** [sub-src-make_first] Error 2
    
    
    jsulmJ 1 Reply Last reply
    0
    • Pavel_47P Pavel_47

      Hear is after clean and launching make:

      constant_mappings.cpp: In function ‘quint64 spiStatesFromQState(QAccessible::State)’:
      constant_mappings.cpp:82:35: error: ‘ATSPI_STATE_READ_ONLY’ was not declared in this scope
               setSpiStateBit(&spiState, ATSPI_STATE_READ_ONLY);
                                         ^
      Makefile:2911: recipe for target '.obj/constant_mappings.o' failed
      make[3]: *** [.obj/constant_mappings.o] Error 1
      make[3]: Leaving directory '/home/pavel/qtbase/src/platformsupport/linuxaccessibility'
      Makefile:358: recipe for target 'sub-linuxaccessibility-make_first' failed
      make[2]: *** [sub-linuxaccessibility-make_first] Error 2
      make[2]: Leaving directory '/home/pavel/qtbase/src/platformsupport'
      Makefile:585: recipe for target 'sub-platformsupport-make_first' failed
      make[1]: *** [sub-platformsupport-make_first] Error 2
      make[1]: Leaving directory '/home/pavel/qtbase/src'
      Makefile:50: recipe for target 'sub-src-make_first' failed
      make: *** [sub-src-make_first] Error 2
      
      
      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #78

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

      ATSPI_STATE_READ_ONLY

      This belongs to libatspi. Do you have it and its dev package in your sysroot for RPi?

      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
        #79

        You mean in sysroot/lib/ ?
        No at that place there is no libatspi.

        1 Reply Last reply
        0
        • Pavel_47P Offline
          Pavel_47P Offline
          Pavel_47
          wrote on last edited by
          #80

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

          libatspi

          I've tried to install libatspi and libatspi-dev, but Ubuntu updater couldn't locate these packages. Should they come from synchronization with RPi ?

          jsulmJ 1 Reply Last reply
          0
          • Pavel_47P Pavel_47

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

            libatspi

            I've tried to install libatspi and libatspi-dev, but Ubuntu updater couldn't locate these packages. Should they come from synchronization with RPi ?

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

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

            Should they come from synchronization with RPi ?

            Yes

            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
              #82

              So, should I install them on RPi and then re-synchronize ?

              1 Reply Last reply
              0
              • Pavel_47P Offline
                Pavel_47P Offline
                Pavel_47
                wrote on last edited by
                #83

                The Raspberry Pi also could not locate these packages.

                jsulmJ 1 Reply Last reply
                0
                • Pavel_47P Pavel_47

                  The Raspberry Pi also could not locate these packages.

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

                  @Pavel_47 My Ubuntu 18.04 has libatspi2.0-0 and libatspi2.0-0-dev
                  What is running on your RPi?

                  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
                    #85

                    My Ubuntu 18.04 has libatspi2.0-0 and libatspi2.0-0-dev
                    You have them in /usr/lib/ ?

                    What is running on your RPi?
                    Raspbian 10 (buster)

                    jsulmJ 1 Reply Last reply
                    0
                    • Pavel_47P Offline
                      Pavel_47P Offline
                      Pavel_47
                      wrote on last edited by
                      #86

                      If I understood, you managed to build Qt toolchain for RPi4 on your Ubuntu. Is it correct?

                      1 Reply Last reply
                      0
                      • Pavel_47P Offline
                        Pavel_47P Offline
                        Pavel_47
                        wrote on last edited by
                        #87

                        The execution of one of the 3 resynchronizations (rsync -avz pi@yourpi:/usr/lib sysroot/usr to be exact) resulted in the following error:

                        sent 1,332,333 bytes received 119,470,015 bytes 1,320,244.24 bytes/sec
                        total size is 3,341,241,457 speedup is 27.66
                        rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1668) [generator=3.1.2]

                        It’s probably related to the cause of make failure. I went up the log of synchronization, displayed on the screen but I did not notice any error.

                        Any suggestions ?

                        1 Reply Last reply
                        0
                        • Pavel_47P Pavel_47

                          My Ubuntu 18.04 has libatspi2.0-0 and libatspi2.0-0-dev
                          You have them in /usr/lib/ ?

                          What is running on your RPi?
                          Raspbian 10 (buster)

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

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

                          You have them in /usr/lib/ ?

                          In /usr/lib/x86_64-linux-gnu/libatspi.so.0
                          And Ubuntu provides the packages I mentioned above.
                          Debian should provide them as well (Raspbian is based on Debian), so you should be able to install them.

                          "Any suggestions ?" - well, something went wrong, there should be something in the log.

                          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
                            #89

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

                            Debian should provide them as well (Raspbian is based on Debian), so you should be able to install them.
                            "Any suggestions ?" - well, something went wrong, there should be something in the log.

                            Yes I also have it on Ubuntu on the same location.
                            I also checked on Raspberry: it is there - in /user/lib/arm-linux-gnueabihf
                            But I didn't find it on Ubuntu - in ~/raspi/sysroot/usr/lib/arm-linux-gnueabihf, the folder which was synchronized with RPi.
                            Concerning your suggestion to look over log ... I didn't find any log file on rsync instruction. Nevertheless I look through over whole display buffer after erroneuous rsync execution (that didn't contain whole log !!!) and didn't find any error.

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

                              Hi,

                              If you can find the libraires/headers in your device root file system then using scp might be faster in your case to ensure you copy the files back to your machine.

                              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
                                #91

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

                                Hi,

                                If you can find the libraires/headers in your device root file system then using scp might be faster in your case to ensure you copy the files back to your machine.

                                Copied missed libraries from RPi to Ubuntu and rerun build.
                                Here is as it fails this time:

                                /home/pavel/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libpthread.a(pthread_create.o): In function __pthread_create_2_1': /build/glibc-FUvrFr/glibc-2.28/nptl/pthread_create.c:697: undefined reference to _dl_stack_flags'
                                /home/pavel/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libpthread.a(unwind.o): In function unwind_stop': /build/glibc-FUvrFr/glibc-2.28/nptl/unwind.c:72: undefined reference to __pointer_chk_guard_local'
                                /home/pavel/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libpthread.a(nptl-init.o): In function __pthread_initialize_minimal_internal': /build/glibc-FUvrFr/glibc-2.28/nptl/nptl-init.c:434: undefined reference to _dl_pagesize'
                                /build/glibc-FUvrFr/glibc-2.28/nptl/nptl-init.c:434: undefined reference to _dl_init_static_tls' /build/glibc-FUvrFr/glibc-2.28/nptl/nptl-init.c:434: undefined reference to _dl_wait_lookup_done'
                                /home/pavel/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libpthread.a(nptl-init.o): In function __pthread_get_minstack': /build/glibc-FUvrFr/glibc-2.28/nptl/nptl-init.c:443: undefined reference to _dl_pagesize'
                                collect2: error: ld returned 1 exit status
                                Makefile:1155: recipe for target '../../lib/libQt5Core.so.5.12.6' failed
                                make[2]: *** [../../lib/libQt5Core.so.5.12.6] Error 1
                                make[2]: Leaving directory '/home/pavel/qtbase/src/corelib'
                                Makefile:198: recipe for target 'sub-corelib-make_first' failed
                                make[1]: *** [sub-corelib-make_first] Error 2
                                make[1]: Leaving directory '/home/pavel/qtbase/src'
                                Makefile:50: recipe for target 'sub-src-make_first' failed
                                make: *** [sub-src-make_first] Error 2

                                1 Reply Last reply
                                0
                                • Pavel_47P Offline
                                  Pavel_47P Offline
                                  Pavel_47
                                  wrote on last edited by
                                  #92

                                  I've just tried once more resync the /usr/lib.
                                  ... and it failed immediately:

                                  2020/02/14 12:25:34 [7746] receiving file list
                                  2020/02/14 12:25:34 [7749] rsync: send_files failed to open "/usr/lib/cups/backend/vnc": Permission denied (13)
                                  2020/02/14 12:25:38 [7749] sent 5,485 bytes received 1,284,984 bytes 73,741.09 bytes/sec
                                  2020/02/14 12:25:38 [7749] total size is 3,341,241,457 speedup is 2,589.17
                                  2020/02/14 12:25:38 [7746] rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1668) [generator=3.1.2]

                                  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