Author Topic: Doom3.gpl (TTimo) and VS 2013.5 community edition  (Read 4113 times)

0 Members and 1 Guest are viewing this topic.

bitterman

  • Sr. Member
  • ****
  • Posts: 273
  • Karma: +8/-5
  • Doom Newbie
    • View Profile
Doom3.gpl (TTimo) and VS 2013.5 community edition
« on: August 10, 2015, 07:45:41 AM »
I have a laptop with windows 7 sp1, doom3.gpl source code (from TTimo, not BFG) and VS 2010 Express.

So on this config I can (and I do) build a doom3lite.exe (without MFC, ATL, DoomEdit, <Edit*> console commands etc).

In fact I build a release version w/o any inline tools.

But now I need build a "developer" verison with all inline stuff.

As I think it is possible in VS 2013 Community edition (with MFC, ATL etc).

So my questions:

1. It is possible?

2. Is VS2010E must uninstall before install VS2013CE?

3. Is laptop must have a internet access to install/registration/product key from VS2013CE.iso?
A key from installed VS2010E is valid?

4. Can I use /neo/doom.sln (perhaps for VS NET 2002) in VS2013CE or I must reconfigure it (make my own solution)? How to do this?

Thanks for any advise.


The Happy Friar

  • Happy Happy Joy Joy
  • Administrator
  • Hero Member
  • *****
  • Posts: 869
  • Karma: +42/-4
  • Semi-Newbie.
    • View Profile
    • EarthQuake
Re: Doom3.gpl (TTimo) and VS 2013.5 community edition
« Reply #1 on: August 10, 2015, 02:12:33 PM »
I don't think I tried the stock code with Community but 2013 community (now 2015 if you have win 10) DOES build the tools with the modified code I tried.

bitterman

  • Sr. Member
  • ****
  • Posts: 273
  • Karma: +8/-5
  • Doom Newbie
    • View Profile
Re: Doom3.gpl (TTimo) and VS 2013.5 community edition
« Reply #2 on: August 12, 2015, 12:21:46 AM »
Ok, thanks.

My results is not impressive.

Yes, these IDE (2010e & 2013CE) can install together.

Yes, for 2013CE must have access to internet.
Yes, it have 30-days trial period and then need update (sign in with MS account).

Yes, it install/uninstall very long (~11 Gb).

Yes, it have "atlmfc" folder.

But no, I can't get original doom3.exe with tools.

I belive that dependences (MFC, ATL) in doom3.gpl are not so big.

But perhaps they are not compatible with new "atlmfc" or I compile it wrong.
(many syntax and other errors in afx* files).

I tried VS2013CE and both method for 2010e (with "altmfc" folder and with WinDDK "atl" "mfc42").
(http://www.moddb.com/company/apgsoftware/tutorials/how-to-compile-doom-3-with-visual-studio-2010)

I also try (don't ask me why) MBCS (MS multybyte lib) - it's a scary thing and I don't understand it :)

Now I'm very unhappy :(
« Last Edit: August 12, 2015, 07:10:16 AM by bitterman »

The Happy Friar

  • Happy Happy Joy Joy
  • Administrator
  • Hero Member
  • *****
  • Posts: 869
  • Karma: +42/-4
  • Semi-Newbie.
    • View Profile
    • EarthQuake
Re: Doom3.gpl (TTimo) and VS 2013.5 community edition
« Reply #3 on: August 12, 2015, 07:19:33 AM »
I got the error
Quote
Error    322    error C1189: #error :  The C++ Standard Library forbids macroizing keywords. Enable warning C4005 to find the forbidden macro.    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xkeycheck.h    250    1    Game

That's one I'm not familiar with, but it's the only error I got.

Not sure how to deal with that one.

bitterman

  • Sr. Member
  • ****
  • Posts: 273
  • Karma: +8/-5
  • Doom Newbie
    • View Profile
Re: Doom3.gpl (TTimo) and VS 2013.5 community edition
« Reply #4 on: August 12, 2015, 10:58:09 AM »
Is this stock source code?
Some additional options?
Can you describe build process please?
« Last Edit: August 12, 2015, 11:03:40 AM by bitterman »

The Happy Friar

  • Happy Happy Joy Joy
  • Administrator
  • Hero Member
  • *****
  • Posts: 869
  • Karma: +42/-4
  • Semi-Newbie.
    • View Profile
    • EarthQuake
Re: Doom3.gpl (TTimo) and VS 2013.5 community edition
« Reply #5 on: August 12, 2015, 07:21:25 PM »
I downloaded the stock code to my machine, loaded up Community 2013, loaded the SLN, let it convert & then compiled.

I want to point out that I have the edition that lets me compile Windows 8/Phone apps & also have the DX9 SDK installed. 

bitterman

  • Sr. Member
  • ****
  • Posts: 273
  • Karma: +8/-5
  • Doom Newbie
    • View Profile
Re: Doom3.gpl (TTimo) and VS 2013.5 community edition
« Reply #6 on: August 12, 2015, 10:04:57 PM »
Thanks, Obi-Wan Kenobi. You're my only hope :)

***************************

Some "atl..." and "MBCS..." problems.

Why debug files are linked with VC 10?


****************************

Ok, I see missed include files in C:\Program Files (x86)\Windows Kits\8.0 and C:...\Microsoft SDKs'Windows\v7.0A\Include.

Try to add this path in Properties->VC++ directories->Include
« Last Edit: August 13, 2015, 08:56:56 AM by bitterman »

bitterman

  • Sr. Member
  • ****
  • Posts: 273
  • Karma: +8/-5
  • Doom Newbie
    • View Profile
Re: Doom3.gpl (TTimo) and VS 2013.5 community edition
« Reply #7 on: August 13, 2015, 11:25:39 AM »
Still don't work...


bitterman

  • Sr. Member
  • ****
  • Posts: 273
  • Karma: +8/-5
  • Doom Newbie
    • View Profile
[Solved] Re: Doom3.gpl (TTimo) and VS 2013.5 community edition
« Reply #8 on: August 16, 2015, 09:12:33 AM »
Ok, I'm install vs2013ce w/o internet access and preinstalled WinSDK, so some registry variables and VC++ directories (e.g. WindowsSDKdir, _include) was incorrect.

And looks like manual fix can't resolve this problem.
Try to "Repair" option.

bitterman

  • Sr. Member
  • ****
  • Posts: 273
  • Karma: +8/-5
  • Doom Newbie
    • View Profile
Re: Doom3.gpl (TTimo) and VS 2013.5 community edition
« Reply #9 on: August 18, 2015, 08:48:06 AM »
Ok, now I'm get only few errors.

"LINK1181: cannot open input file "nafxcw.lib".

But I can't find "nafxcw.lib" on my disk.

As I see this problem is still related with MFC version (_DEBUG or _UNICODE define).

afx.h:

Code: [Select]
#ifndef _UNICODE

#ifdef _DEBUG

#pragma comment(lib, "nafxcwd.lib")

#else

#pragma comment(lib, "nafxcw.lib")

#endif

#else

#ifdef _DEBUG

#pragma comment(lib, "uafxcwd.lib")

#else

#pragma comment(lib, "uafxcw.lib")

#endif

#endif

In DoomDLL -> Properties -> General I see options "Character Set", "Use of MFC", "Platform Toolset" and others.

The options set by default, and I don't sure about any changes.

The Happy Friar can you show me a printscreen of "DoomDLL Property Pages" (RMB on "DoomDLL" in Solution Explorer then "Properties") -> "Configuration Properties" (General and VC++ Directories as I think) please?


Ok, don't worry.

*******************************************

Quote
In Visual Studio 2013 and later, the MBCS versions of the MFC DLLs are available as a free add-in to Visual Studio from the MSDN download site. For more information, see MFC MBCS DLL Add-in.

https://msdn.microsoft.com/en-us/library/ey142t48%28v=vs.120%29.aspx

https://www.microsoft.com/en-us/download/details.aspx?id=40770

http://wiki.openttd.org/Compiling_on_Windows_using_Microsoft_Visual_C++_2012
« Last Edit: August 19, 2015, 09:42:10 PM by bitterman »

bitterman

  • Sr. Member
  • ****
  • Posts: 273
  • Karma: +8/-5
  • Doom Newbie
    • View Profile
Re: Doom3.gpl (TTimo) and VS 2013.5 community edition
« Reply #10 on: August 21, 2015, 08:36:33 AM »
Done!

I'm happy almost like Friar (thanks!) :)

A important option is "Properties -> General -> Platform Toolset"
(it must be v120_xp for WindowsXP and v120 for Windows 7, there is a deal with DX SDK version).

Quote
====== Build: 4 succeeded, 0 failed, 0 up-to-date, 0 skipped =========

0 errors, ~173 warnings (most about MBCS deprecated).

 :) :) :)



« Last Edit: August 21, 2015, 08:38:04 AM by bitterman »

motorsep

  • Hero Member
  • *****
  • Posts: 974
  • Karma: +74/-128
  • Artist
    • View Profile
    • Kot in Action Creative Artel
Re: Doom3.gpl (TTimo) and VS 2013.5 community edition
« Reply #11 on: August 21, 2015, 09:13:07 AM »
Good job!

Now you just need to write a tutorial about that ;)

bitterman

  • Sr. Member
  • ****
  • Posts: 273
  • Karma: +8/-5
  • Doom Newbie
    • View Profile
Re: Doom3.gpl (TTimo) and VS 2013.5 community edition
« Reply #12 on: August 22, 2015, 10:13:05 AM »
Well, all as say The Happy Friar except mbcs add-in (see links above).
Other things are my mistakes by incorrect installation MSVC.

The Happy Friar

  • Happy Happy Joy Joy
  • Administrator
  • Hero Member
  • *****
  • Posts: 869
  • Karma: +42/-4
  • Semi-Newbie.
    • View Profile
    • EarthQuake
Re: Doom3.gpl (TTimo) and VS 2013.5 community edition
« Reply #13 on: February 25, 2016, 07:20:53 PM »
Bringing the topic back from the dead!  :)

MSVC Community 2015 wants to give me errors saying "S_COLOR_RED" & "SOURCE_CODE_BASE_FOLDER" not found.  They're defined in str.h & license.h, respectively.  Both headers are included but don't seem to be read.  Has anyone else tried the GPL code (not a fork, want to tools to compile) in Community 2015?

The Happy Friar

  • Happy Happy Joy Joy
  • Administrator
  • Hero Member
  • *****
  • Posts: 869
  • Karma: +42/-4
  • Semi-Newbie.
    • View Profile
    • EarthQuake
Re: Doom3.gpl (TTimo) and VS 2013.5 community edition
« Reply #14 on: February 25, 2016, 08:20:51 PM »
Well, I just tried adding a space in the line.
Was
Code: [Select]
idLib::common->Printf( "   simd->Memset() "S_COLOR_RED"X\n" );changed to
Code: [Select]
idLib::common->Printf( "   simd->Memset() " S_COLOR_RED"X\n" );it eliminated the errors related to s_color_red & source_code_base_folder.  Go figure. :?