Compiling the Source Code
Posted: Mon Mar 12, 2007 1:45 am
I'm trying to make a mod, but every time I go to compile the HL2-2005.snl in Visual 2005 C++ edition it keeps getting errors and doesn't compile can anyone help?
Have you seen my coffee cup?
https://obsidianconflict.net/forums/
https://obsidianconflict.net/forums/viewtopic.php?f=22&t=1510
Heres the wiki for it if you didn't understand thatNecessary steps are needed to enable compiling with the Visual Studio C++ 2005 Express Edition:
Files required:
http://msdn.microsoft.com/directx/sdk/
http://www.microsoft.com/downloads/deta ... laylang=en
Setup
Go to Tools - Options: Projects and Solutions - VC++ Directories
* In the upper right drop down box, select "Executable files" and add "...\Microsoft Platform SDK\Bin" (replace with the correct path)
* Then select "Include files" and add "...\Microsoft Platform SDK\Include" and "...\Microsoft DirectX SDK (December 2005)\Include"
* Then select "Library files" and add "...\Microsoft Platform SDK\Lib" and "...\Microsoft DirectX SDK (February 2007)\Lib\x86"
* Finally, go to the project properties for hl and client and add user32.lib to Linker->Input->Additional Dependencies (with spaces between entries)
Frostbite wrote:Ok, this is more of a fix, than a tutorial.
Tutorial
I didn't write all though need to make some corrections...
[Required Files]
Free Download (Get C++ version)
Platform SDK
DirectX SDK
Once done installing, follow that tutorial until you hit Step 3.
It asks for you to add the following lines into VC+ Directories
C:\Program Files\Microsoft DirectX SDK (February 2006)\Include
C:\Program Files\Microsoft DirectX SDK (February 2006)\Lib\x86
Change the 2006 to 2007, and keep following the tutorial.
When you hit Step 3b, it'll ask you to change a file.Instead download my fixed version Here.Update the corewin_express.vsprops file.
One more step is needed to make the Win32 template work in Visual C++ Express. You need to edit the corewin_express.vsprops file (found in C:\Program Files\Microsoft Visual Studio 8\VC\VCProjectDefaults) and
Change the string that reads:
AdditionalDependencies="kernel32.lib" to
AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib"
Place it in "C:\Program Files\Microsoft Visual Studio 8\VC\VCProjectDefaults" folder.
Then Open up the code, Change the build type to Debug_HL2 to Release_HL2 and compile!
Yeah but at least I got it compiled and debugged .Bloomer wrote:Damn,
I don't understand why they dont just fix everything before they give it to us =/
Stupid Microsoft!