Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Having trouble building Qt 6 from source

Having trouble building Qt 6 from source

Scheduled Pinned Locked Moved Unsolved Qt 6
12 Posts 2 Posters 143 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.
  • S Offline
    S Offline
    SkeletonHorse
    wrote last edited by SGaist
    #1

    Hey recently I've been trying to build Qt from source but lately I've had a bit of trouble.

    I got through the ./configure part but I seem to be having trouble with the building process.
    from what I'm seeing in the terminal I think i got through the first half of the build process just fine as it sent the message:
    "Done. Made 25070 targets from 3566 files in 31434ms"
    but when it started prompting ninja for the build process, midway through I got these specific lines
    "- AutoMoc: /home/<self>/Documents/file-building/QTBUILD/incas/qt-everywhere-src-6.10.2/qtserialbus/src/serialbus/qcanframeprocessor.h: note: No relevant classes found. No output generated.

    • [11943/12791] Generating wayland-wayland-server-protocol.h

    -%3Cstdin%3E:2307: element event: validity error : No declaration for attribute deprecated-since of element event "

    and then right after that i got the error
    WARNING: XML failed validation against built-in DTD
    about 4 times.

    I'm pretty sure the build process failed as the convenience script to configure the build didn't work after i inputted it
    I'm pretty sure I have all the correct dependencies in order so I don't know what exactly caused this error, and theres not a lot of good info on building Qt on linux so any help from here would be much appreciated.

    (For further specification I am using Ubuntu Studio as my linux distro)

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

      Hi and welcome to devnet,

      From the look of ./configure you are doing a build within the first level of the sources. Don't.
      Do an out of source build.
      It's shown in the Linux building guide.

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

      S 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi and welcome to devnet,

        From the look of ./configure you are doing a build within the first level of the sources. Don't.
        Do an out of source build.
        It's shown in the Linux building guide.

        S Offline
        S Offline
        SkeletonHorse
        wrote last edited by
        #3

        @SGaist do you mean as in like doing it in the file directory itself? as i did cd in the directed file directory before i did configure

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

          If you are meaning calling configure from the root of the Qt sources, then yes, that is wrong.
          As already written, do an out of source build just as explained in the documentation.

          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
          • S Offline
            S Offline
            SkeletonHorse
            wrote last edited by
            #5

            I don't understand i did cd in dev/qt-build before doing configure like the documentation said i dont know how id be doing it wrong

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

              Can you please list the exact steps you used ?
              Also, did you re-start from a clean set of sources ?

              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
              • S Offline
                S Offline
                SkeletonHorse
                wrote last edited by
                #7

                I followed the exact documentation you sent me
                i extracted the source code
                did cd dev/qtbuild
                did configure
                did the make parallel command
                and then got the errors i listed

                SGaistS 1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SkeletonHorse
                  wrote last edited by
                  #8

                  also is there any way to edit a post after an hour i accidentally left my system name when writing this forum post before going back to bed and it wont let me change it and im unsure if i want to leave that data just out there for random people to see on the internet and such

                  SGaistS 1 Reply Last reply
                  0
                  • S SkeletonHorse

                    also is there any way to edit a post after an hour i accidentally left my system name when writing this forum post before going back to bed and it wont let me change it and im unsure if i want to leave that data just out there for random people to see on the internet and such

                    SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote last edited by
                    #9

                    @SkeletonHorse said in Having trouble building Qt 6 from source:

                    also is there any way to edit a post after an hour i accidentally left my system name when writing this forum post before going back to bed and it wont let me change it and im unsure if i want to leave that data just out there for random people to see on the internet and such

                    Fixed

                    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
                    • S SkeletonHorse

                      I followed the exact documentation you sent me
                      i extracted the source code
                      did cd dev/qtbuild
                      did configure
                      did the make parallel command
                      and then got the errors i listed

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

                      @SkeletonHorse said in Having trouble building Qt 6 from source:

                      I followed the exact documentation you sent me
                      i extracted the source code
                      did cd dev/qtbuild
                      did configure
                      did the make parallel command
                      and then got the errors i listed

                      Can you share the summary once configure has run ?

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

                      S 1 Reply Last reply
                      0
                      • SGaistS SGaist

                        @SkeletonHorse said in Having trouble building Qt 6 from source:

                        I followed the exact documentation you sent me
                        i extracted the source code
                        did cd dev/qtbuild
                        did configure
                        did the make parallel command
                        and then got the errors i listed

                        Can you share the summary once configure has run ?

                        S Offline
                        S Offline
                        SkeletonHorse
                        wrote last edited by
                        #11

                        @SGaist as in the config.summary file written?

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

                          That one yes

                          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