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. Issue with QCanBus and project compilation

Issue with QCanBus and project compilation

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 867 Views 2 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.
  • M Offline
    M Offline
    MMirza
    wrote on last edited by MMirza
    #1

    Hello,

    I am very new to Qt (in fact never done anything in it) and have an issue.

    I received a Qt project which i need to change a little bit, rebuild and deploy. I installed Qt creator and needed libraries but the project won't compile -> the error reads as follows:

    /home/exp4/Downloads/virtual robot/virtual_robot-2022-06-24/virtual_robot/robotmessagehandler.h:5: error: QCanBus: No such file or directory In file included from ../virtual_robot/robotmessagehandler.cpp:1: ../virtual_robot/robotmessagehandler.h:5:10: fatal error: QCanBus: No such file or directory 5 | #include <QCanBus> | ^~~~~~~~~
    I installed serial bus package (https://debian.pkgs.org/10/debian-main-amd64/libqt5serialbus5-dev_5.11.3-2_amd64.deb.html) but that did not help.

    I installed Qt from Ubuntu package manager but the project tarball contained a Qt version so I tried to add it to Qt Creator hoping that it'll solve my issue but it says that version is incorrectly installed and i have to run make install on it but I cannot locate proper makefile.

    I tried using qmake but with identical results.

    Do you have any suggestions on how to compile the project? Qt version - 5.15.2

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

      Hi and welcome to devnet,

      Do you have the serialbus module added to the QT variable in your .pro file ?

      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
      • M Offline
        M Offline
        mchinand
        wrote on last edited by
        #3

        @MMirza said in Issue with QCanBus and project compilation:

        I installed serial bus package (https://debian.pkgs.org/10/debian-main-amd64/libqt5serialbus5-dev_5.11.3-2_amd64.deb.html) but that did not help.

        Do you have any suggestions on how to compile the project? Qt version - 5.15.2

        These two parts of your post indicate that you probably installed the wrong version of the serialbus module. You must use the same version of Qt for all modules.

        M 1 Reply Last reply
        2
        • M mchinand

          @MMirza said in Issue with QCanBus and project compilation:

          I installed serial bus package (https://debian.pkgs.org/10/debian-main-amd64/libqt5serialbus5-dev_5.11.3-2_amd64.deb.html) but that did not help.

          Do you have any suggestions on how to compile the project? Qt version - 5.15.2

          These two parts of your post indicate that you probably installed the wrong version of the serialbus module. You must use the same version of Qt for all modules.

          M Offline
          M Offline
          MMirza
          wrote on last edited by
          #4

          @mchinand Yep, that was it. I completely missed that, thanks a lot!

          1 Reply Last reply
          1

          • Login

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