Build errors
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Re: Build errors
Think you have to click the Advanced checkbox, for some odd reason.
Re: Build errors
Still no DX-related entries after clicking the Advanced checkbox. Are you using old Cmake-generated files? Because I have an old one just for compiling stock GZDoom, that continues to show the DX* entries even after I pull the latest changes. I imagine if I do a "delete cache" it'll be gone though...
But for fresh, new checkouts - the DX entries are completely missing.
But for fresh, new checkouts - the DX entries are completely missing.
Re: Build errors
Partial solved... you can manually "Add Entry" and key in the DirectX-related stuff. Quite annoying but eh whatever.
-
Lavender Moon
- Posts: 30
- Joined: Thu May 21, 2015 5:33 am
Re: Build errors
DX_dxguid_LIBRARY only seems to be shown if you're building with Windows XP support enabled (when CMAKE is set to use VS2015 x64 as the compiler, at least; haven't tested VS2015 x86 or any other VS versions). It should probably be shown no matter what for VS2015.
- Graf Zahl
- Lead GZDoom+Raze Developer

- Posts: 49252
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Build errors
Nash wrote:Still no DX-related entries after clicking the Advanced checkbox. Are you using old Cmake-generated files? Because I have an old one just for compiling stock GZDoom, that continues to show the DX* entries even after I pull the latest changes. I imagine if I do a "delete cache" it'll be gone though...
But for fresh, new checkouts - the DX entries are completely missing.
The DX entries will not be shown if you build for the post-XP toolset. In that case they are not needed, because all headers can be found automatically.
-
Lavender Moon
- Posts: 30
- Joined: Thu May 21, 2015 5:33 am
Re: Build errors
It appears all the headers were, but dxguid.lib wasn't. I installed the redistributable listed on the "Compile ZDoom on Windows" wiki page.
- Graf Zahl
- Lead GZDoom+Raze Developer

- Posts: 49252
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Build errors
Hm. I think that library isn't even necessary with modern SDKs.
Re: Build errors
But the problem is not simply that the DX entries are not shown; for some reason CMake outright cannot find the DX files on my computer. I have the Windows Kits 8.1 installed. I get unresolved symbols on the x64 builds, unless I manually add the entries myself.
- Major Cooke
- Posts: 8215
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 10
- Graphics Processor: nVidia with Vulkan support
- Location: GZBoomer Town
- Contact:
Re: Build errors
Same here. This is a pretty difficult issue to crack and I just decided to restart my entire build from absolute scratch. Can this be resolved?
You mean with Windows 10 SDK?Graf Zahl wrote:Hm. I think that library isn't even necessary with modern SDKs.
Re: Build errors
Could you please do a quick check?
Will it work for you if you add the following after line 113 in src/CMakeLists.txt ?
It works for me but I have lots of stuff installed and cannot test on clean setup.
Will it work for you if you add the following after line 113 in src/CMakeLists.txt ?
Code: Select all
set( DX_dxguid_LIBRARY dxguid )- Major Cooke
- Posts: 8215
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 10
- Graphics Processor: nVidia with Vulkan support
- Location: GZBoomer Town
- Contact:
Re: Build errors
That did it for me!
Re: Build errors
Pushed the fix in hopes of avoiding more complains. Someone needs to check it with Visual Studio 2017 though.
Re: Build errors
_mental_ wrote:Do you have Windows XP Support for C++ installed?
This question finally makes sense (sorry _mental_ for not quite getting it back there) - I don't think I have it installed. It's something you were supposed to tick in a checkmark during installation of Visual Studio or Windows Kits, I presume? I don't think I ever fiddled with any of the install settings (this was like ~2 years back mind you). The ONLY checkbox I clearly remember ticking is C++ for Visual Studio.Lavender Moon wrote:DX_dxguid_LIBRARY only seems to be shown if you're building with Windows XP support enabled (when CMAKE is set to use VS2015 x64 as the compiler, at least; haven't tested VS2015 x86 or any other VS versions). It should probably be shown no matter what for VS2015.
But nothing about Windows XP since I don't care about the OS.
Re: Build errors
It is not a checkmark during installation.Nash wrote:This question finally makes sense (sorry _mental_ for not quite getting it back there) - I don't think I have it installed. It's something you were supposed to tick in a checkmark during installation of Visual Studio or Windows Kits, I presume? I don't think I ever fiddled with any of the install settings (this was like ~2 years back mind you). The ONLY checkbox I clearly remember ticking is C++ for Visual Studio.
The DirectX SDK was merged into the platform SDK back in the fall of 2010, which is why the last downloadable DirectX SDK is that June 2010 one. Only reason ZDoom needs the old version has something to do with XInput, where never versions apparently has some compatibility issues.
- Graf Zahl
- Lead GZDoom+Raze Developer

- Posts: 49252
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Build errors
The main reason is that the toolset with which ZDoom needs to be compiled with for XP compatibility does not contain everything that is needed - it does not use the latest Windows SDK but some older version.