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. D:\qgroundcontrol\src\Vehicle\Vehicle.cc:726: error: C2065: 'MAVLINK_MSG_ID_RANGEFINDER': undeclared identifier
Forum Updated to NodeBB v4.3 + New Features

D:\qgroundcontrol\src\Vehicle\Vehicle.cc:726: error: C2065: 'MAVLINK_MSG_ID_RANGEFINDER': undeclared identifier

Scheduled Pinned Locked Moved Solved General and Desktop
9 Posts 4 Posters 710 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.
  • R Offline
    R Offline
    RUXX
    wrote on last edited by
    #1

    hello everyone, I am trying to build QGC custom source code version 4.2 using Qt 5.15 MSVC2019 64 bit. iam getting few errors which im unable to solve after many tries. if someone can guide me on how to solve the errors it will be really very very helpful. im really trying very hard to understand where im going wrong and solve the issue but unable to resolve it. I have attached the image below.

    a4f167fd-0e6b-4709-909f-0ef12372071b-image.png

    Christian EhrlicherC 1 Reply Last reply
    0
    • R RUXX

      hello everyone, I am trying to build QGC custom source code version 4.2 using Qt 5.15 MSVC2019 64 bit. iam getting few errors which im unable to solve after many tries. if someone can guide me on how to solve the errors it will be really very very helpful. im really trying very hard to understand where im going wrong and solve the issue but unable to resolve it. I have attached the image below.

      a4f167fd-0e6b-4709-909f-0ef12372071b-image.png

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      I don't see what Qt has to do here with the problem or how it could be fixed here. You should ask the mavlink devs on why this mavlink type is not defined. Maybe your mavlink libs are out of date.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      1
      • R RUXX has marked this topic as solved on
      • E Offline
        E Offline
        epoli
        wrote on last edited by
        #3

        what did you do to resolve the problem ? i am facing the same issue

        R 1 Reply Last reply
        0
        • E epoli

          what did you do to resolve the problem ? i am facing the same issue

          R Offline
          R Offline
          RUXX
          wrote on last edited by
          #4

          @epoli There's a solution provided for this error in github. I followed those steps and it got solved.

          SGaistS 1 Reply Last reply
          0
          • R RUXX

            @epoli There's a solution provided for this error in github. I followed those steps and it got solved.

            SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @RUXX hi,

            A link to the solution you found would be nice.

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

            R 1 Reply Last reply
            0
            • SGaistS SGaist

              @RUXX hi,

              A link to the solution you found would be nice.

              R Offline
              R Offline
              RUXX
              wrote on last edited by
              #6

              @SGaist Apologies, that page doesn't exist anymore. you can also use chatgpt or few other ai tools to solve the error.

              E 1 Reply Last reply
              1
              • R RUXX

                @SGaist Apologies, that page doesn't exist anymore. you can also use chatgpt or few other ai tools to solve the error.

                E Offline
                E Offline
                epoli
                wrote on last edited by
                #7

                @RUXX if you remember how you did it please let us know, couldnt find a solution up to now

                R 1 Reply Last reply
                0
                • E epoli

                  @RUXX if you remember how you did it please let us know, couldnt find a solution up to now

                  R Offline
                  R Offline
                  RUXX
                  wrote on last edited by
                  #8

                  @epoli The error can occur if you haven't included the header file that declares the identifier. Make sure the file that contains the declaration for the identifier is included in every source file that uses it.

                  1 Reply Last reply
                  0
                  • E Offline
                    E Offline
                    epoli
                    wrote on last edited by
                    #9

                    thank you for your help. it is working now.
                    for anyone who may face the same error , you have to include the header file which is #include "../qgroundcontrol/libs/mavlink/include/mavlink/v2.0/ardupilotmega/mavlink_msg_rangefinder.h"
                    in you vehicle.cc file .

                    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