Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.
This repository was archived by the owner on Dec 6, 2023. It is now read-only.

Doc Bug: Code Submission · QGroundControl Developer Guide QGC does not work correctly when built with cmake on windows #166

Description

@ukb1

DESCRIBE PROBLEM WITH DOCS HERE

Bug Page: Code Submission · QGroundControl Developer Guide

OS: Windows 10
QT Version: 5.15.2
Hi,
I tried to compile with both qmake and cmake on QGC Qt Creator.
When I compiled it with qmake, the codes compiled correctly. But when I try to compile with cmake it gives an error.
linux operating system is running. I think it's the bottom part.

if (WIN32) # append application icon resource for Windows set(QGC_RESOURCES ${QGC_RESOURCES} **${CMAKE_CURRENT_SOURCE_DIR}/windows/QGroundControl.rc)** endif()

Since there is no such path, it gives an error in the add_executable part. When switching to the win operating system, this part is opened.

${CMAKE_CURRENT_SOURCE_DIR}/windows/QGroundControl.rc) path should be fixed to ${CMAKE_CURRENT_SOURCE_DIR}/deploy/windows/QGroundControl.rc) so that cmake will run

Although it doesn't work as well as the result of compiling with qmake, at least cmake works on compiling.

Can this situation be controlled?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions