Building MAME with Visual Studio 2022 - build errors #199
Replies: 2 comments 1 reply
-
Most of those errors require source changes to work around with current MSVC due to compiler bugs/limitations; one or two of them might be avoided by using If you're keen on Visual Studio (and not specifically MSVC), I suggest you consider building with |
Beta Was this translation helpful? Give feedback.
-
EDIT: Ignore this post, the ioport.h errors seem to have gone away. Strange. Very strange. Commenting out the broken bgfx code allowed MAME to build correctly. Thanks for your help. IGNORE THE FOLLOWING I ran the following to create a VS 2022 solution using clang as compiler: mingw32-make -j36 vs2022_clang MODERN_WIN_API=1 NOWERROR=1 When I open and build the generated solution, MAME now builds with clangcl as you advised, however I am getting far more build errors with clang than I did with VS 2022/MSBuild: mame build errors.txt ioport.h seems to be the main culprit this time. My Visual Studio clang install is 19.1.1. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Good evening.
I am having trouble building MAME on Windows 11 using VS 2022 Community edition, version 17.13.6.
I wish to build the entire MAME, not just a subtarget.
I executed the following steps in the order given:
This generated a .SLN solution file and projects which load with zero problems in Visual Studio 2022.
When I build in the IDE, most projects build fine but there are some build errors: mame build errors.txt
Has anyone successfully built MAME with VS 2022 recently (as in the past couple of weeks), and if so, what did you change? What SDKs did you use?
I know I can comment out the erroneous code or exclude the failing projects, but I don't fancy doing that every time I pull the latest source. I'd like success with, if not every build, most builds.
Any help?
Thanks in advance.
Scott
Beta Was this translation helpful? Give feedback.
All reactions