Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for MCUs
  4. Qt mcu project can't include libraries like QCanBus, QObject?
QtWS25 Last Chance

Qt mcu project can't include libraries like QCanBus, QObject?

Scheduled Pinned Locked Moved Solved Qt for MCUs
8 Posts 2 Posters 978 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.
  • I Offline
    I Offline
    inusion
    wrote on last edited by
    #1

    I am trying to use qt libraries such as QString, QCanBus, and QObject while developing an mcu project, but even if I manually add them to the mcu tool library, they cannot be read.

    How can I use that library in my mcu project?

    Any way is appreciated.

    9ac5e2a2-dc28-4214-869c-31052bd2d493-6e42bfea-2157-4e6a-bac4-d12500eb8035.png

    1 Reply Last reply
    0
    • I inusion

      @JKSH said in Qt mcu project can't include libraries like QCanBus, QObject?:

      비 GUI Qt 모듈은 포함하지 않습니다

      thank you.
      But I need to utilize qcanbus to do can development. Is there any other way?

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #4

      @inusion said in Qt mcu project can't include libraries like QCanBus, QObject?:

      thank you.
      But I need to utilize qcanbus to do can development. Is there any other way?

      You're welcome.

      The link that I posted says, "Applications that require non-graphical functionalities such as networking... need to either have their own implementation or leverage existing 3rd party libraries for respective platforms."

      That means you must either write your own CAN code, or use a CAN library that has been developed for your MCU.

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      I 1 Reply Last reply
      1
      • JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on last edited by
        #2

        Hi @inusion, and welcome!

        Qt for MCUs (also called "Qt Quick Ultralite") is designed to let you develop GUIs on MCUs. It does not include the non-GUI Qt modules. See https://doc.qt.io/QtForMCUs-2.3/qtul-qtquick-differences.html

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply
        2
        • I Offline
          I Offline
          inusion
          wrote on last edited by
          #3

          @JKSH said in Qt mcu project can't include libraries like QCanBus, QObject?:

          비 GUI Qt 모듈은 포함하지 않습니다

          thank you.
          But I need to utilize qcanbus to do can development. Is there any other way?

          JKSHJ 1 Reply Last reply
          0
          • I inusion

            @JKSH said in Qt mcu project can't include libraries like QCanBus, QObject?:

            비 GUI Qt 모듈은 포함하지 않습니다

            thank you.
            But I need to utilize qcanbus to do can development. Is there any other way?

            JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote on last edited by
            #4

            @inusion said in Qt mcu project can't include libraries like QCanBus, QObject?:

            thank you.
            But I need to utilize qcanbus to do can development. Is there any other way?

            You're welcome.

            The link that I posted says, "Applications that require non-graphical functionalities such as networking... need to either have their own implementation or leverage existing 3rd party libraries for respective platforms."

            That means you must either write your own CAN code, or use a CAN library that has been developed for your MCU.

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            I 1 Reply Last reply
            1
            • JKSHJ JKSH

              @inusion said in Qt mcu project can't include libraries like QCanBus, QObject?:

              thank you.
              But I need to utilize qcanbus to do can development. Is there any other way?

              You're welcome.

              The link that I posted says, "Applications that require non-graphical functionalities such as networking... need to either have their own implementation or leverage existing 3rd party libraries for respective platforms."

              That means you must either write your own CAN code, or use a CAN library that has been developed for your MCU.

              I Offline
              I Offline
              inusion
              wrote on last edited by
              #5

              @JKSH
              Let me ask you one more question.

              https://doc.qt.io/QtForMCUs-2.3/quickultralite-automotive-src-canbus-qt-canbusdevice-cpp.html

              The link is the Qt Quick Ultralite Automotive Cluster Demo among the mcu demos on the qt official website.

              The program is an mcu project, how can I use the QCanBus library?

              3f6160f9-089e-4a51-84f2-e00faec6be85-image.png

              JKSHJ 1 Reply Last reply
              0
              • I inusion

                @JKSH
                Let me ask you one more question.

                https://doc.qt.io/QtForMCUs-2.3/quickultralite-automotive-src-canbus-qt-canbusdevice-cpp.html

                The link is the Qt Quick Ultralite Automotive Cluster Demo among the mcu demos on the qt official website.

                The program is an mcu project, how can I use the QCanBus library?

                3f6160f9-089e-4a51-84f2-e00faec6be85-image.png

                JKSHJ Offline
                JKSHJ Offline
                JKSH
                Moderators
                wrote on last edited by
                #6

                @inusion said in Qt mcu project can't include libraries like QCanBus, QObject?:

                https://doc.qt.io/QtForMCUs-2.3/quickultralite-automotive-src-canbus-qt-canbusdevice-cpp.html

                The link is the Qt Quick Ultralite Automotive Cluster Demo among the mcu demos on the qt official website.

                The program is an mcu project, how can I use the QCanBus library?

                A Qt for MCUs project can be built and run on a real MCU (for running a real product), or it can be built and run on a development PC (for easier programming and testing).

                In the demo that you linked,

                • If the project is built for a development PC, then it will use the QCanBus library
                • If the project is built for an RH850 MCU, then it will use the RSCANFD library

                This is the implementation that uses the QCanBus library: https://doc.qt.io/QtForMCUs-2.3/quickultralite-automotive-src-canbus-qt-canbusdevice-cpp.html

                This is the implementation that uses the RSCANFD library: https://doc.qt.io/QtForMCUs-2.3/quickultralite-automotive-src-canbus-rh850-d1m1a-baremetal-canbusdevice-cpp.html

                QCanBus CANNOT be used in a real MCU.

                I hope this clarifies things.

                Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                I 1 Reply Last reply
                1
                • JKSHJ JKSH

                  @inusion said in Qt mcu project can't include libraries like QCanBus, QObject?:

                  https://doc.qt.io/QtForMCUs-2.3/quickultralite-automotive-src-canbus-qt-canbusdevice-cpp.html

                  The link is the Qt Quick Ultralite Automotive Cluster Demo among the mcu demos on the qt official website.

                  The program is an mcu project, how can I use the QCanBus library?

                  A Qt for MCUs project can be built and run on a real MCU (for running a real product), or it can be built and run on a development PC (for easier programming and testing).

                  In the demo that you linked,

                  • If the project is built for a development PC, then it will use the QCanBus library
                  • If the project is built for an RH850 MCU, then it will use the RSCANFD library

                  This is the implementation that uses the QCanBus library: https://doc.qt.io/QtForMCUs-2.3/quickultralite-automotive-src-canbus-qt-canbusdevice-cpp.html

                  This is the implementation that uses the RSCANFD library: https://doc.qt.io/QtForMCUs-2.3/quickultralite-automotive-src-canbus-rh850-d1m1a-baremetal-canbusdevice-cpp.html

                  QCanBus CANNOT be used in a real MCU.

                  I hope this clarifies things.

                  I Offline
                  I Offline
                  inusion
                  wrote on last edited by inusion
                  #7

                  @JKSH
                  Thank you for answer.

                  I'm trying to do can communication using nxp, but will it work in nxp even if I use the RSCANFD library?

                  JKSHJ 1 Reply Last reply
                  0
                  • I inusion

                    @JKSH
                    Thank you for answer.

                    I'm trying to do can communication using nxp, but will it work in nxp even if I use the RSCANFD library?

                    JKSHJ Offline
                    JKSHJ Offline
                    JKSH
                    Moderators
                    wrote on last edited by
                    #8

                    @inusion said in Qt mcu project can't include libraries like QCanBus, QObject?:

                    @JKSH
                    Thank you for answer.

                    I'm trying to do can communication using nxp, but will it work in nxp even if I use the RSCANFD library?

                    You're welcome.

                    RSCANFD is for Renesas MCUs. Please ask your supplier which C/C++ CAN library can be used with your NXP MCU.

                    Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                    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