Build errors

Archive of the old editing forum
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.
dpJudas
 
 
Posts: 3177
Joined: Sat May 28, 2016 1:01 pm

Re: Build errors

Post by dpJudas »

Think you have to click the Advanced checkbox, for some odd reason.
User avatar
Nash
 
 
Posts: 17506
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Build errors

Post by Nash »

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.
User avatar
Nash
 
 
Posts: 17506
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Build errors

Post by Nash »

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

Post by Lavender Moon »

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.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Build errors

Post by Graf Zahl »

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

Post by Lavender Moon »

It appears all the headers were, but dxguid.lib wasn't. I installed the redistributable listed on the "Compile ZDoom on Windows" wiki page.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Build errors

Post by Graf Zahl »

Hm. I think that library isn't even necessary with modern SDKs.
User avatar
Nash
 
 
Posts: 17506
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Build errors

Post by Nash »

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.
User avatar
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

Post by Major Cooke »

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?
Graf Zahl wrote:Hm. I think that library isn't even necessary with modern SDKs.
You mean with Windows 10 SDK?
_mental_
 
 
Posts: 3820
Joined: Sun Aug 07, 2011 4:32 am

Re: Build errors

Post by _mental_ »

Could you please do a quick check?

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 )
It works for me but I have lots of stuff installed and cannot test on clean setup.
User avatar
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

Post by Major Cooke »

That did it for me!
_mental_
 
 
Posts: 3820
Joined: Sun Aug 07, 2011 4:32 am

Re: Build errors

Post by _mental_ »

Pushed the fix in hopes of avoiding more complains. Someone needs to check it with Visual Studio 2017 though.
User avatar
Nash
 
 
Posts: 17506
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Build errors

Post by Nash »

_mental_ wrote:Do you have Windows XP Support for C++ installed?
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.
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.

But nothing about Windows XP since I don't care about the OS.
dpJudas
 
 
Posts: 3177
Joined: Sat May 28, 2016 1:01 pm

Re: Build errors

Post by dpJudas »

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.
It is not a checkmark during installation.

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.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Build errors

Post by Graf Zahl »

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.
Locked

Return to “Editing (Archive)”