GithubHelp home page GithubHelp logo

qgc-dev-guide's Introduction

qgc-dev-guide's People

Contributors

aamirglb avatar bkueng avatar cbjornram avatar dagar avatar dlech avatar donlakeflyer avatar es-alexander avatar hamishwillee avatar julianoes avatar kistlin avatar lorenzmeier avatar madflower avatar maetugr avatar magicrub avatar matejfranceskin avatar mnumanuyar avatar mrpollo avatar patrickelectric avatar pattee avatar px4buildbot avatar rishabhbhat2021 avatar samsalway avatar steamfoundry avatar williangalvani avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qgc-dev-guide's Issues

compile qgroundcontrol in windows 10

Hi
I git qgroundcontrol but have many problem with its compile. if I use MSVC2015 32 bit I get this:
":-1: error: Unsupported Windows toolchain, only Visual Studio 2010, 2012, and 2013 are supported"
and If I use MSVC2013 64bit I get a lot of error like it :
"...\QGCMapEngineData.h:39: error: C2065: 'UINT64_MAX' : undeclared identifier"
I have an Asus laptop 64 bit (K556U) with Windows 10.
QT 5.9.3 and VS2013, VS2015 and VS 2017 is installed.
please help me. what should I do. I didn't find any clear step by step procedure for compiling this software in the net. I did it 2-3 years age with VS2010 and QT on Windows 7 and a 32 bit system. but at the moment I didn't have that system and software.
Thanks in advances.
Hamid Moghadspour.

Doc Feature Request: How to generate appimage

adding config+=install as described here generates a package folder and a tarball in it. However extracting this tar in another computer and running the executable file did not work.
From the error I got I assume this is because some missing library. As I understand generating appimage is the solution for this problem (qground also puts appimage to relases) .Also probably this file in qground git generates the appimage. However I couldn't find anywhere how to use it and couldnt figure out myself. If this is the way to generate app image, please add how to use it at the "Building QGC Installation Files" section.
Note: I am new with linux so if I might be missing something obvious please tell
(https://dev.qgroundcontrol.com/master/en/getting_started/index.html)

compile qgroundcontrol

Hi
I git qgroundcontrol but have problem with its compile. I get this:
"error: Unsupported Windows toolchain, only Visual Studio 2010, 2012, and 2013 are supported"
QT 5.13.0 and VS2013, VS2015 is installed.
Please help me. What should I do? I didn't find any clear step by step procedure for compiling this software in the net.
Thanks in advances.

Add section on making distributions

Content from old site probably completely useless to seed this, but reproduced below FYI:


This page describes how to back a compiled binary with all required libraries into a redistributable executable or installer.
Windows
We are using the Nullsoft Scriptable Install System (NSIS). To build the installer follow these instructions:
Install NSIS: http://nsis.sourceforge.net/Main_Page
cd to your top level qgroundcontrol directory
Use the following settings for your qmake call: CONFIG+=release CONFIG+=installer
Build QGroundControl as you normally would
When the build is complete there will be a qgroundcontrol-installer-win32.exe in your release directory
More information on NSIS:
http://nsis.sourceforge.net/Main_Page
Mac
To build the Mac installer follow these instructions:
Make sure that you have installed the SDL framework in /Library/Frameworks/SDL.Framework
Use the following settings for your qmake call: CONFIG+=release CONFIG+=installer
Build QGroundControl as you normally would
When complete there will qgroundcontrol.dmg disk image in your release directory
The qgroundcontrol.dmg will be found in your release directory.
Ubuntu / Debian
mkdir qgroundcontrol-version
cd qgroundcontrol-version/

#create package

have installed gpg key for mail address

dh_make -e "[email protected]" -c gpl --createorig

#edit files in newly appeared debian folder

#add all files to be installed into directory

create folders named usr/bin . put executable in there

should look like:

ls -R
./usr:
bin share

./usr/bin:
qgroundcontrol

./usr/share:
applications pixmaps

./usr/share/applications:
qgroundcontrol.desktop

./usr/share/pixmaps:
qgroundcontrol.png

create binary

debuild -b
It would be better if the package could be build from source directly…
Convert Icons
http://www.linuxinet.com/node/177

Build fails due to curl is not installed on Ubuntu. Please add a hint in point "1" to indicate that

The build when executing make after this step "Build using the "hammer" (or "play") icons:"
it result with an error missing header file "#include <airmap/qt/client.h>" as per this post
https://discuss.px4.io/t/missing-header-files/22635
The "curl" needs to be installed on the machine since this file "QGCExternalLibs.pri" has a curl call which gets to download the airmap
inside the libs.
It would be good to add the following hint in step 1 stating to check the existing of "curl" installed otherwise "curl" has to exist to avoid the error during the make.

Doc Bug: Mission · QGroundControl Developers Guide

https://docs.qgroundcontrol.com/en/releases/daily_build_new_features.html#plan-files states

Previous version of QGC saved missions, geo-fences and rally points in separate files (.mission, .fence, .rally). QGC now save all information related to a flight plan into a single file called a Plan File with a file extension of .plan.

Upshot is that we have to update the file formats described in pages including Mission · QGroundControl Developers Guide

@DonLakeFlyer Can we have doc for new file format. How do you want to deal with the old doc formats - do those docs need to be archived or can they just disappear?

Add License page

Create page with link to all licences associated with QGC project:

  • The source code of QGroundControl is licensed under the GPLv3 (or later)
  • Artwork/images are licensed under CC by SA
  • User Guide and Dev Guide- CC BY 4.0 ?

Confirm version for images/artwork. Confirm version licence for docs.

Propose this lives in dev guide under code submission, and includes a note that anything submitted must also comply with X license.

Need Help: QGC dev TypeError: Cannot call method 'addMapItem' of undefined

this code (code details as below) can serve as draw a circle on map, when we planning the path. I use it in “SimpleItemMapVisual.qml”. it works perfectly. But when I copy and use it in the file “PlanView.qml” , Compiling is OK. But when run this function, it fail and report error: “ TypeError: Cannot call method 'addMapItem' of undefined,"

My Code details:
property var map ///< Map control to place item in
property var _circle
property bool _circleShowing: false

function hideCircle() {
    if (_circleShowing) {
        _circle.destroy()
        _circleShowing = false
    }
}


function showCircle() {
    if (!_circleShowing) {
        _circle = circleComponent.createObject(map)
        map.addMapItem(_circle)
        _circleShowing = true
    }
}

Component {
id: circleComponent

                   MapCircle {
                       color:          Qt.rgba(0,0,0,0)
                       border.color:   "yellow"
                       border.width:   6
                       center:         QtPositioning.coordinate()
                       radius:         200
                       visible:        true
                   }
               }

Component.onCompleted: {
showCircle()
}

Documentation for non-existing custom build update script

Not sure if this is considered a bug here or in QGroundControl itself.

On https://dev.qgroundcontrol.com/en/custom_build/upstream_merge.html#upstream-merge there is a mention of a script updateqrc.py (maybe a typo of updateqgc.py). The way I understand the documentation, this script should be in the custom dir, at least when you have a custom build set up, which really means it should be in custom-example in the upstream repo. But I cannot find it there or anywhere else. Does it exist?

Not build installer file

Hi there, I build and run daily build of QGC without any problem on Win10 but I can’t build installer file for this.
Note, I install NSIS and in build settings enter ‘CONFIG+=installer’ in qmake!
Thanks a lot for any body to guide me.

Add documentation on customisations

There have been some new customisation examples added to QGC recently:

Minimally each of these needs:

  • Documentation in this guide of their existence, and what they provide
  • Documentation of how to enable them.
  • Explanation of how to customise them.

Propose we create a section/page "Customised Builds" in which we introduce the supported customisations.
For each customisation we have single page that covers the points above.

Now it might be for the last point (how to customise the custom example/how the custom code works) that the code is largely self explanatory??? In that case you don't need to say too much - just comment that overridding a "thingy" means creating a file of name xyz in location abc - and that you can either provide your whole new thingy by replacing the files, or tweak the example.

@dogmaphobic You want me to create placeholder docs for these? If so, will have to wait until next week.

compatible Qt and VS versions

if higher visual studio and Qt versions are supported it should be mentioned in Getting started page. Normally I would think this is not an issue however since Qt 5.12.6 is an archived old version, some errors related to it might go unnoticed (in my case Online installer failed to download related files).
If anyone uses other version and able to build QGroundControl , feel free to comment

Bug Page: Getting Started · QGroundControl Developer Guide

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

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?

How can I fill the whole screen with QGC?

I want to fill the entire screen with QGC. Including the windows taskbar section at the bottom. no need to show the close minimize buttons on the top, as if f11 is pressed.
mainRootWindow.qml

`
ApplicationWindow {
id: mainWindow
// minimumWidth: ScreenTools.isMobile ? Screen.width : Math.min(ScreenTools.defaultFontPixelWidth * 100, Screen.width)
// minimumHeight: ScreenTools.isMobile ? Screen.height : Math.min(ScreenTools.defaultFontPixelWidth * 50, Screen.height)
visible: true
visibility: Window.FullScreen
// visibility: mainWindow.FullScreen
Component.onCompleted: {

    if (!ScreenTools.isMobile || Screen.height / ScreenTools.realPixelDensity < 120 ) {
         console.log("APP: true")
        mainWindow.showFullScreen()

    } else {
        console.log("APP: false")

// width = ScreenTools.isMobile ? Screen.width : Math.min(250 * Screen.pixelDensity, Screen.width)
// height = ScreenTools.isMobile ? Screen.height : Math.min(150 * Screen.pixelDensity, Screen.height)
mainWindow.fullScreen()
}

    firstRunPromptManager.nextPrompt()
}

`
I added main mainWindow.fullScreen() to the else part of this code, but still no change

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.