• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 … 7 8 9 10 11 … 117 Next »

Windows Compile VS 2019 16.6.0
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
Windows Compile VS 2019 16.6.0
05-25-2020, 10:25 PM
#1
chrisis123 Offline
Junior Member
**
Posts: 23
Threads: 2
Joined: May 2020
Hello, does anyone know why compiling of Dolphin QT fails on VS 2019 16.6.0 in Windows 10? It used to work fine on 16.5.x.
Is it a Dolphin/VS proplem or am I must doing something wrong?

There seems to be some problem related to QT.

Lots of errors during compile at the end... (too much to copy it all in)

The last outputs here are the following:

2>C:\Users\brunn\source\repos\dolphin\Source\Core\DolphinQt\QtUtils\RunOnObject.h(70,1): error C2440: "return": "std::optional<std::nullopt_t>" kann nicht in "std::optional<int>" konvertiert werden
2>C:\Users\brunn\source\repos\dolphin\Source\Core\DolphinQt\QtUtils\RunOnObject.h(70,1): error C2440:   return result;
2>C:\Users\brunn\source\repos\dolphin\Source\Core\DolphinQt\QtUtils\RunOnObject.h(70,1): error C2440: ^ (Quelldatei wird kompiliert Updater.cpp)
2>C:\Users\brunn\source\repos\dolphin\Source\Core\DolphinQt\QtUtils\RunOnObject.h(70,3): message : Kein benutzerdefinierter Konvertierungsoperator verfügbar, der diese Konvertierung durchführen kann, oder der Operator kann nicht aufgerufen werden
2>C:\Users\brunn\source\repos\dolphin\Source\Core\DolphinQt\QtUtils\RunOnObject.h(70,3): message :   return result;
2>C:\Users\brunn\source\repos\dolphin\Source\Core\DolphinQt\QtUtils\RunOnObject.h(70,3): message :   ^ (Quelldatei wird kompiliert Updater.cpp)
2>C:\Users\brunn\source\repos\dolphin\Source\Core\DolphinQt\QtUtils\RunOnObject.h(29,1): error C2512: "Updater::OnUpdateAvailable::<lambda_2>": Kein geeigneter Standardkonstruktor verfügbar
2>C:\Users\brunn\source\repos\dolphin\Source\Core\DolphinQt\QtUtils\RunOnObject.h(29,1): error C2512:   using OptionalResultT = std::optional<std::result_of_t<F()>>;
2>C:\Users\brunn\source\repos\dolphin\Source\Core\DolphinQt\QtUtils\RunOnObject.h(29,1): error C2512: ^ (Quelldatei wird kompiliert Updater.cpp)
2>C:\Users\brunn\source\repos\dolphin\Source\Core\DolphinQt\QtUtils\RunOnObject.h(29,1): message : Quelltyp konnte von keinem Konstruktor angenommen werden, oder die Überladungsauflösung des Konstruktors ist mehrdeutig
2>C:\Users\brunn\source\repos\dolphin\Source\Core\DolphinQt\QtUtils\RunOnObject.h(29,1): message :   using OptionalResultT = std::optional<std::result_of_t<F()>>;
2>C:\Users\brunn\source\repos\dolphin\Source\Core\DolphinQt\QtUtils\RunOnObject.h(29,1): message : ^ (Quelldatei wird kompiliert Updater.cpp)
2>Die Erstellung des Projekts "DolphinQt.vcxproj" ist abgeschlossen -- FEHLER.
========== Erstellen: 1 erfolgreich, 1 fehlerhaft, 45 aktuell, 1 übersprungen ==========
Find
Reply
05-26-2020, 05:29 AM
#2
BlackIce
Unregistered
 
Im using 16.7.0 and got the same error. Noticed the default C++ Language Standard was std:c++ latest which is C++ 20.
std::result_of was removed in C++ 20. I got it to compile by changing the language to C++ 17
Reply
05-26-2020, 06:22 AM
#3
chrisis123 Offline
Junior Member
**
Posts: 23
Threads: 2
Joined: May 2020
(05-26-2020, 05:29 AM)BlackIce Wrote: Im using 16.7.0 and got the same error. Noticed the default C++ Language Standard was std:c++ latest which is C++ 20.
std::result_of was removed in C++ 20. I got it to compile by changing the language to C++ 17

Thank you, didn't think about this, but even wehen setting it to  C++ 17 I still get the same error messages for some reason... maybe I could try 16.7.0 but I doubt it would change much honestly...
Find
Reply
05-27-2020, 07:01 AM
#4
Modception Offline
Junior Member
**
Posts: 18
Threads: 0
Joined: May 2020
You can install the msvc toolset v14.25 and build with that.

No idea if that's what all the devs are doing.
Find
Reply
06-02-2020, 09:28 PM
#5
chrisis123 Offline
Junior Member
**
Posts: 23
Threads: 2
Joined: May 2020
Okay it seems the def team is aware of the problem and about to fix it (according to this PR: https://github.com/dolphin-emu/dolphin/pull/8841 ).

Thank you all for the help!
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma