Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QT module compile problem.
Forum Updated to NodeBB v4.3 + New Features

QT module compile problem.

Scheduled Pinned Locked Moved Solved General and Desktop
11 Posts 4 Posters 1.5k 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.
  • PangolinP Offline
    PangolinP Offline
    Pangolin
    wrote on last edited by
    #1

    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.

    jsulmJ 1 Reply Last reply
    0
    • PangolinP Pangolin

      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

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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

      PangolinP 1 Reply Last reply
      1
      • B Offline
        B Offline
        Bonnie
        wrote on last edited by
        #3

        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.

        jsulmJ 1 Reply Last reply
        0
        • B Bonnie

          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.

          jsulmJ Online
          jsulmJ Online
          jsulm
          Lifetime Qt Champion
          wrote on last edited by jsulm
          #4

          @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 sierdzioS 2 Replies Last reply
          0
          • jsulmJ jsulm

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

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

            @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
            0
            • jsulmJ jsulm

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

              sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              @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(:^

              PangolinP 1 Reply Last reply
              3
              • jsulmJ jsulm

                @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?

                PangolinP Offline
                PangolinP Offline
                Pangolin
                wrote on last edited by
                #7

                @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
                0
                • sierdzioS sierdzio

                  @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.

                  PangolinP Offline
                  PangolinP Offline
                  Pangolin
                  wrote on last edited by
                  #8

                  @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.

                  sierdzioS 1 Reply Last reply
                  0
                  • PangolinP Pangolin

                    @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 !

                    sierdzioS Offline
                    sierdzioS Offline
                    sierdzio
                    Moderators
                    wrote on last edited by
                    #9

                    @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(:^

                    PangolinP 1 Reply Last reply
                    1
                    • sierdzioS sierdzio

                      @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.

                      PangolinP Offline
                      PangolinP Offline
                      Pangolin
                      wrote on last edited by
                      #10

                      @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
                      0
                      • sierdzioS Offline
                        sierdzioS Offline
                        sierdzio
                        Moderators
                        wrote on last edited by
                        #11

                        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
                        0

                        • Login

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