Raised This Month: $51 Target: $400
 12% 

[Help] Compiling amxmodx


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 11-25-2014 , 10:36   [Help] Compiling amxmodx
Reply With Quote #1

Hello there guys, I need some help from you.
Just before we begin, I will state that I have downloaded the newest MetaMod(1.20), and newest HLSDK, and I have my environment variables set, so that will be no problem.

I am trying to compile amxmodx 1.8.2 (I've just downloaded it from hg.alliedmods.net), but Visual Studio 2010 gives me an error. It says that "progdefs.h" is missing for every single file. I know that it is because "extdll.h" is included in "amxmodx.h". Error message goes as follows:
Code:
D:\Program Files\Microsoft Visual Studio 10.0\VC\include\extdll.h(79): fatal error C1083: Cannot open include file: 'progdefs.h': No such file or directory
Now, I think I see the problem. The problem is, as you can see in upper message(the file path of "extdll.h"), that "extdll.h" already exists in VS default includes directory, but it also exists in HLSDK.
Now, in VS, if I hover over the filename, it will show that it is a file from VS default includes directory, but VS actually opens the HLSDK one... Confusing, isn't it? Here is a picture showing it:


If you know what the problem is, and how I can make an workaround, please tell me.
BTW, I am using Windows XP Professional.
klippy is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-25-2014 , 10:41   Re: [Help] Compiling amxmodx
Reply With Quote #2

Best way to build is to use AMBuild: https://wiki.alliedmods.net/Building_AMX_Mod_X
__________________
Arkshine is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-25-2014 , 10:42   Re: [Help] Compiling amxmodx
Reply With Quote #3

Why not use AMBuild to compile it?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-25-2014 , 10:44   Re: [Help] Compiling amxmodx
Reply With Quote #4

Quote:
Originally Posted by Arkshine View Post
Best way to build is to use AMBuild: https://wiki.alliedmods.net/Building_AMX_Mod_X
Using VS works too. Just use the proper HLSDK/Metamod : https://github.com/alliedmodders ; and don't forget to add/update $(METAMOD) and $(HLDSK) windows variables.
__________________
Arkshine is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 11-25-2014 , 10:46   Re: [Help] Compiling amxmodx
Reply With Quote #5

Oooh, I feel dumb now. I misspelled HLSDK environment variable. ._.'
However, I get bunch of other errors now, and they mostly look like:
Code:
d:\games\plugins\sdks\metamod-hl1-master\metamod\sdk_util.h(79): error C2664: 'void (int,char *,char *,char *)' : cannot convert parameter 4 from 'const char *' to 'char *'
So, outdated SDK or what?

And these were some quick responses! Thanks!
klippy is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-25-2014 , 10:56   Re: [Help] Compiling amxmodx
Reply With Quote #6

If you are using the HLDSK and Metamod from Github repos, you can't have this error.
__________________

Last edited by Arkshine; 11-25-2014 at 10:58.
Arkshine is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 11-25-2014 , 11:02   Re: [Help] Compiling amxmodx
Reply With Quote #7

Yep, I figured that out already. Downloaded one from github and it works now.
There was just one error left, saying:
Code:
..\version.rc(8): fatal error RC1015: cannot open include file 'winres.h'.
but i fixed it by changing winres.h with winresrc.h, which I found in github's version.rc.
Thank you for your responses.
klippy is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode