lorenzmeier / qupgrade Goto Github PK
View Code? Open in Web Editor NEWFirmware flashing tool
License: Other
Firmware flashing tool
License: Other
The behaviour when pressing "Cancel" seems faulty:
Steps:
Unfortunately does currently not compile using Arch Linux and Ubuntu:
dialog.o: In function `Dialog::onDownloadRequested(QNetworkRequest const&)':
dialog.cpp:(.text+0x508): undefined reference to `QWebView::page() const'
dialog.cpp:(.text+0x510): undefined reference to `QWebPage::networkAccessManager() const'
dialog.o: In function `Dialog::Dialog(QWidget*)':
dialog.cpp:(.text+0x189f): undefined reference to `QWebView::page() const'
dialog.cpp:(.text+0x1afb): undefined reference to `QWebView::setHtml(QString const&, QUrl const&)'
dialog.o: In function `Ui_Dialog::setupUi(QDialog*)':
dialog.cpp:(.text._ZN9Ui_Dialog7setupUiEP7QDialog[_ZN9Ui_Dialog7setupUiEP7QDialog]+0x1b3): undefined reference to `QWebView::QWebView(QWidget*)'
dialog.cpp:(.text._ZN9Ui_Dialog7setupUiEP7QDialog[_ZN9Ui_Dialog7setupUiEP7QDialog]+0x22f): undefined reference to `QWebView::setUrl(QUrl const&)'
collect2: error: ld returned 1 exit status
make: *** [qupgrade] Error 1
Similar on Windows:
dialog.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QNetworkAccessManager * __thiscall QWebPage::networkAccessManager(void)const " (__imp_?networkAccessManager@QWebPage@@QBEPAVQNetworkAccessManager@@XZ) referenced in function "private: void __thiscall Dialog::onDownloadRequested(class QNetworkRequest const &)" (?onDownloadRequested@Dialog@@AAEXABVQNetworkRequest@@@Z)
...
dialog.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall QWebView::mousePressEvent(class QMouseEvent *)" (?mousePressEvent@QWebView@@MAEXPAVQMouseEvent@@@Z)
It seems that the COM port on Windows do not get properly released/closed so QUpgrade fails to upload after it just uploaded before:
PX4 Uploader: Could not open interface
A Workaround is to close QUpgrade and open it again.
Alter uploader.cpp:350
from if (board_id >= 0 && board_id < boardNames.length()) {
to if (board_id < (uint32_t)boardNames.length()) {
For some reason MSVS2010 is promoting the comparison between signed and unsigned numbers into an error, breaking compilation. Unsure why.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.