Jump to content
The Dark Mod Forums

Failing to build DarkRadiant 64bit with MSVC 2010 64bit


Recommended Posts

Trying to build DarkRadiant from Git using MSVC 2010 Express. Other 64bit apps compile just fine (dhewm3 for example is one of them).

 

Here is the error log: http://pastebin.com/LRCtu6KF

 

Another detailed log for one of the modules failed to compile: http://pastebin.com/C0e0i2Se

 

How to fix ? Thanks.

Edited by motorsep
Link to comment
Share on other sites

Assuming you're running VC++ 2010 Express plus the Windows SDK, does this link help?

 

http://stackoverflow.com/questions/9821700/visual-studio-2010-express-win-sdk-cannot-open-input-file-kernel32-lib

 

DR (latest checkout) builds fine in VC++ 2010 Premium here on my end.

Link to comment
Share on other sites

Aye, I have WinSDK and Express, but, if I switch platform toolset to 7.1 instead of standard vc100, then it's trying to link to *.WindowsSDK7.1a.lib files from w32deps/ and w64deps/, and those dependencies were not built with SDK 7.1, they were built with vc100 (as vc100 or vc110 suffixes of the lib files in w32deps/ and w64deps/ indicate that).

 

I checked paths and everything is set correctly in the projects' properties.

 

What I can confirm is that it does compile in MSVC 2010 Premium and Ultimate (someone with the same setup as mine, but with Ultimate MSVC compiled DR for Win64 without any issues).

Link to comment
Share on other sites

One thing that just occurred to me - MSVC2010 Express doesn't come with 64bit support. Only with 32bit. To be able to compile for 64bit arch, Win SDK 7.1 has to be installed.

 

But because precompiled libs come from MSVC2010 Premium, and Express needs to use WinSDK 7.1 platform toolset for 64bit arch, it creates incompatibility.

Link to comment
Share on other sites

I was able to build DR 64bit with Express, libjpeg failed, the rest was build fine with bunch of warnings though. DR launcher, but as soon as I try create an entity, it crashes :(

 

What I did was editing properties/ files and replacing automatic suffix fetching based on Platform Toolset, to vc100.lib, hard coded. Then I manually set WinSDk 7.1 for each project in the solution via IDE and compiled.

 

I am sure since libs were compiled using vc100 toolkit that comes with VC Premium, and WinSDK7.1, something went wrong internally and that causes DR to crash.

 

It would be nice if w64deps were rebuilt using WinSDK 7.1. Then it would compile with any version of MSVC as long as WinSDK 7.1 is installed.

Link to comment
Share on other sites

Umm.. Maybe someone should delete the piratebay links and comments? (including this one.)

 

We don't want to publicly endorse piracy in any way, right? At least I wouldn't want to get TDM associated with pirate activity. Not worth the risk.

Clipper

-The mapper's best friend.

Link to comment
Share on other sites

I need to read EULA on it.. I know for a fact I can use MSVC2010 Express to make commercial apps. Not sure if that's the case with MSVC2012 Express. Also, I don't know if I can have both 2010 and 2012 installed side by side, because dhewm3 and Doom 3 BFG don't come with 2012 solutions, and I don't really want to mess with them if converting solution for 2010 into 2012 doesn't go well.

 

If I can have 2010 and 2012 side by side, without one affecting another, I will look into it.

 

I hope DR 1.7.4 will be out rather sooner, so I don't have to mess with all that :P

Link to comment
Share on other sites

I'm no Windows development expert and it's a long time since I did this, but the last released Windows builds (1.7.3) of DarkRadiant were made with MSVC 2010 Express and freely-available SDK downloads. I remember there was a lot of messing around involved and at some point I had to edit a file in the MSVC installation directory to point to the right libraries/SDK/whatever, but there was certainly no need for the MSVC Premium version.

 

Greebo's suggestion to use 2012 does sound a lot easier though, so I will probably try this if/when I next need to set up a Windows build environment.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • nbohr1more

      Was checking out old translation packs and decided to fire up TDM 1.07. Rightful Property with sub-20 FPS areas yay! ( same areas run at 180FPS with cranked eye candy on 2.12 )
      · 2 replies
    • taffernicus

      i am so euphoric to see new FMs keep coming out and I am keen to try it out in my leisure time, then suddenly my PC is spouting a couple of S.M.A.R.T errors...
      tbf i cannot afford myself to miss my network emulator image file&progress, important ebooks, hyper-v checkpoint & hyper-v export and the precious thief & TDM gamesaves. Don't fall yourself into & lay your hands on crappy SSD
       
      · 5 replies
    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 7 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
×
×
  • Create New...