Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Forum Updated on Feb 6th

    Solved QT module compile problem.

    General and Desktop
    4
    11
    576
    Loading More Posts
    • 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.
    • Pangolin
      Pangolin last edited by

      I am using ubuntu 18.04 for development, but serialbus module do not support this platform. So , i guess we can compile the qt/serialbus by myself. I use qmke & make one by one step. But error meets below:
      Makefile:729: recipe for target '.obj/qcanbusdevice.o' failed
      In file included from /home/jason/Downloads/qtserialbus/src/serialbus/qcanbusdevice.cpp:38:0:
      /home/jason/Downloads/qtserialbus/src/serialbus/qcanbusdevice_p.h:43:10: fatal error: private/qobject_p.h: No such file or directory
      #include <private/qobject_p.h>
      ^~~~~~~~~~~~~~~~~~~~~
      compilation terminated.
      /home/jason/Downloads/qtserialbus/src/serialbus/qcanbus.cpp:46:10: fatal error: private/qfactoryloader_p.h: No such file or directory
      #include <private/qfactoryloader_p.h>
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      compilation terminated.
      make[2]: *** [.obj/qcanbusdevice.o] Error 1
      ...
      ...

      Nothing tips with the module source on serialbus
      Anyone who can help , appreciate!
      error.png

      Speak less and do more . You are your own worst enemy.

      jsulm 1 Reply Last reply Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion @Pangolin last edited by

        @Pangolin said in QT module compile problem.:

        but serialbus module do not support this platform

        That would be new to me. Why do you think it is not supported?

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

        Pangolin 1 Reply Last reply Reply Quote 1
        • B
          Bonnie last edited by

          I think the OP means that there's no serialbus module in Ubuntu's Package archive if he installs Qt from apt.
          But the module is available if installing by official installer.

          jsulm 1 Reply Last reply Reply Quote 0
          • jsulm
            jsulm Lifetime Qt Champion @Bonnie last edited by jsulm

            @Bonnie @Pangolin My Ubuntu 18.04 has libqt5serialport5 and libqt5serialport5-dev
            Or is this serialbus something different?

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

            B sierdzio 2 Replies Last reply Reply Quote 0
            • B
              Bonnie @jsulm last edited by Bonnie

              @jsulm
              I'm not sure but I think serialport module should be different from serialbus?
              Since you'll get both dlls in Windows.

              1 Reply Last reply Reply Quote 0
              • sierdzio
                sierdzio Moderators @jsulm last edited by

                @jsulm said in QT module compile problem.:

                @Bonnie @Pangolin My Ubuntu 18.04 has libqt5serialport5 and libqt5serialport5-dev
                Or is this serialbus something different?

                Yes it is a different module: https://doc.qt.io/qt-5/qtserialbus-index.html

                @Pangolin to compile a Qt module you need to compile base Qt as well - at the very least the Qt base repo.

                (Z(:^

                Pangolin 1 Reply Last reply Reply Quote 3
                • Pangolin
                  Pangolin @jsulm last edited by

                  @jsulm Good to see you sir . As i know qt serialbus module only support the platform higher than 18.04 not include 18.04. Many thanks to you.

                  Speak less and do more . You are your own worst enemy.

                  1 Reply Last reply Reply Quote 0
                  • Pangolin
                    Pangolin @sierdzio last edited by

                    @sierdzio So appreciate to you sir. I m always think why we can not build qt module separately and more wondering that no compile tips for qt module source at all !

                    Speak less and do more . You are your own worst enemy.

                    sierdzio 1 Reply Last reply Reply Quote 0
                    • sierdzio
                      sierdzio Moderators @Pangolin last edited by

                      @Pangolin said in QT module compile problem.:

                      I m always think why we can not build qt module separately

                      It's all because of configure step, which is done by qtbase repo - it sets all build settings for all other modules. Some modules can be build separately. And I think that starting with Qt 6, all modules will be buildable separately.

                      (Z(:^

                      Pangolin 1 Reply Last reply Reply Quote 1
                      • Pangolin
                        Pangolin @sierdzio last edited by

                        @sierdzio Thank you so much sir. I would like to meet QT6 and if that done will bring us so many flexible features.

                        Speak less and do more . You are your own worst enemy.

                        1 Reply Last reply Reply Quote 0
                        • sierdzio
                          sierdzio Moderators last edited by

                          It will be released in December. But first few releases will be quite, well, incomplete. A lot of modules are missing in 6.0 and will come back around 6.1 or 6.2 (so in December next year).

                          (Z(:^

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post