-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New VS 2017 compiler fails build with WarningsAsErrors on #8401
Comments
Thanks for the answer But right now the problem is not solved ... I didn't get to version 15.9, but I did it again after seeing the answer you gave me. I think now
|
Hi guys! As mentioned above, I have reinstalled qt, the compiler, and Windows with various versions and roots. Eventually it failed with the same error. But I did not give up. We have installed Ubuntu Linux. amazing! Unfortunately I can't build a development environment on Windows. By the way, I don't know how to distribute Linux. So .... Why can't only hybrids work in the mapbox? |
Wait I didn't realize C2220 turns warnings into errors. You can do that with current QGC source. Did you turn that on yourself? |
I didn't understand exactly what you mean. But on Linux, it crashes because of an irregular crashed error. |
If you run it with .sh you get an error code, And "Wait I didn't realize C2220 turns warnings into errors.You can do that with current QGC source. Did you turn that on yourself?" If you explain what this means, I'll help you as much as I can. I'm always thankful |
Sorry I forgot that the Windows build compiles by default with WarningsAsErrors on so it compiles with the /WX flag. Which will fail the build with a C2220 error if there is a compiler warning. It looks like the compiler you are using is newer than the one we are using hence it has new warning checks in it which are now failing which didn't before. I think the reason may be because of this: "Visual Basic 2017 version Desktop development with C ++ and qt 5.12.5 MSVC 2017 64 64bit." The VB version may install something newer than if you just use the regular C++ install as outlined in the docs. |
Did some more digging looks like the compiler was updated in newer VS 2017 versions. So these warnings are new in that version. I'll get them fixed up. |
I upgraded VS and got a new compiler. What I get from the standard C++ install is still a little older then what you have. And when I recompile I sitll don't get those errrors. Hmm |
I didn't monitor this post because I knew it couldn't be fixed. |
You should remove the -WX option of CXXFLAGS from the makefile, which on the output directory of Qt Creator. @zk317 |
thank you. Well solved. I have confirmed that it works fine on Windows. Thank you all. |
i am a noob in Qground control i m also getting this c2220 error so finally how should i sovle it? |
In my case, it was solved by setting WX option of CXXFLAGS. |
<C2220 error in QGCTileCacheWorker.cpp. Version 4.0 upgrade error?>
Hey, I'm having fun watching your work.
I wanted to try it too, but when I built it, I ran into problems.
(I didn't fix anything)
I get a C2220 error in QGCTileCacheWorker.cpp
In addition, many files produce C4996 and C7567 errors.
I installed it as described in the link below.
https://dev.qgroundcontrol.com/en/getting_started/
I installed Visual Basic 2017 version Desktop development with C ++ and qt 5.12.5 MSVC 2017 64 64bit.
git clone <https://github.com/mavlink/qgroundcontrol.git --recursive>
Download the source with the command.
I tried to reinstall it several times, but I get a comprehensive error such as C2220 error.
I seems to be something wrong with the version.
If you look for these errors on Google, and you don't see the same case, it might be because of a version update?
....
I found it in gitter
<I read that "QGC is currently built against Qt 5.12.6 (all OS) .Also Windows has moved to VS 2017 and 64 bit only.Docs updates may be a bit behind since I haven't had time.>
So I deleted and reinstalled Qt5.12.5.
same.
I rebuilt the window.
same.
It sure seems like a compiler problem.
I tried to reinstall the compiler with version 15.9 of 2015, so I tried version 15.0.
same.
I also checked Qt's kit several times.
Project MESSAGE: Qt version 5.12.6
Project MESSAGE: Windows build
Project MESSAGE: QGroundControl Development master:af92e00e6 2020-02-23 11:01:49 +0000
Project MESSAGE: Debug flavor
Project MESSAGE: Using Default QtLocation headers
Project MESSAGE: Skipping support for Pairing
Project MESSAGE: Using MAVLink dialect 'ardupilotmega'.
Project MESSAGE: Skipping support for Zeroconf (unsupported platform)
Project MESSAGE: Looking for Airmap in folder "C:/Users/CTS/qgroundcontrol/libs/airmapd", variant: "Qt.5.12"
Project MESSAGE: Skipping support for Airmap (unsupported platform)
Project MESSAGE: Taisync disabled
Project MESSAGE: Microhard disabled
Project MESSAGE: Skipping support for video streaming (GStreamer libraries not installed)
Project MESSAGE: Installation instructions here: https://github.com/mavlink/qgroundcontrol/blob/master/src/VideoStreaming/README.md
Project MESSAGE: This project is using private headers and will therefore be tied to this specific Qt module build version.
Project MESSAGE: Running this project against other versions of the Qt modules may crash at any arbitrary point.
Project MESSAGE: This is not a bug, but a result of using Qt internals. You have been warned!
Cannot read C:/Users/CTS/qgroundcontrol/user_config.pri: No such file or directory
What is the problem?
Are you going too fast?
The text was updated successfully, but these errors were encountered: