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

Compiling Modules


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 03-20-2012 , 01:19   Compiling Modules
Reply With Quote #1

OK so i am using MSVC2010.

I have the HLSDK.
All of the files are on my cdrive in the location below
Code:
c:\sdk_files\
This is what i have for includes and it continues to tell me that it cant find vectors.h which is in
Code:
c:\sdk_files\hlsdk\multiplayer\dlls
Code:
C:\sdk_files\hlsdk\multiplayer;..\include;$(IncludePath)
If i remove the ..\include; it causes errors and no idea what the $(InculdePath) is...

So any ideas why it cant find the files in \multiplayer?

The SDK is the one arkshine has posted all over (compilable in msvc2008 from some website not from metamod.org)

Code:
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\extdll.h(84): fatal error C1083: Cannot open include file: 'vector.h': No such file or directory
Then if i add that location into the includes section it tells me another file cant be found... and then another.

The list looked like this
Code:
C:\sdk_files\hlsdk\multiplayer;
C:\sdk_files\hlsdk\multiplayer\common;
C:\sdk_files\hlsdk\multiplayer\engine;
C:\sdk_files\hlsdk\multiplayer\dlls;
..\include;
$(IncludePath)
And it started to say that vector.h wasn't found again....

Last edited by Doc-Holiday; 03-20-2012 at 01:20.
Doc-Holiday is offline
Shadows In Rain
Senior Member
Join Date: Apr 2010
Location: Russia::Siberia
Old 03-20-2012 , 16:02   Re: Compiling Modules
Reply With Quote #2

Try to...
1. close paths with backslash, e.g. C:\sdk_files\hlsdk\multiplayer\dlls\
2. add C:\sdk_files\hlsdk\multiplayer\pm_shared\

Or you can just follow my setup.

MSVC2010 -> Solution Explorer -> *Your project* -> Propertries -> (All configurations) -> Configuration Propertries -> C/C++ -> General -> Additional include directories ...

$(METAMOD_SDK)\metamod
$(HL_SDK)\common
$(HL_SDK)\engine
$(HL_SDK)\dlls
$(HL_SDK)\pm_shared

*Your OS* -> Environment variables -> Setup corresponding vars (highlighted in green), examples:
METAMOD_SDK D:\Developer\SDK\METAMOD\
HL_SDK D:\Developer\SDK\HLSDK_MM\Multiplayer Source\
__________________
I'm using Google translator, yarrr. |.◕‿‿◕.|
Shadows In Rain is offline
Send a message via ICQ to Shadows In Rain
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 03-20-2012 , 16:19  
Reply With Quote #3

Quote:
Originally Posted by Shadows In Rain View Post
Try to...
1. close paths with backslash, e.g. C:\sdk_files\hlsdk\multiplayer\dlls\
2. add C:\sdk_files\hlsdk\multiplayer\pm_shared\

Or you can just follow my setup.

MSVC2010 -> Solution Explorer -> *Your project* -> Propertries -> (All configurations) -> Configuration Propertries -> C/C++ -> General -> Additional include directories ...

$(METAMOD_SDK)\metamod
$(HL_SDK)\common
$(HL_SDK)\engine
$(HL_SDK)\dlls
$(HL_SDK)\pm_shared

*Your OS* -> Environment variables -> Setup corresponding vars (highlighted in green), examples:
METAMOD_SDK D:\Developer\SDK\METAMOD\
HL_SDK D:\Developer\SDK\HLSDK_MM\Multiplayer Source\
Thanks will try when i get t home.
By my os what do you mean? Is it a setting in msv2010

Last edited by Doc-Holiday; 03-20-2012 at 16:26.
Doc-Holiday is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 03-21-2012 , 00:53   Re: Compiling Modules
Reply With Quote #4

Ok so i did that..

My includes now look like

Code:
$(METAMOD)\metamodsdk;
$(HLSDK)\common;
$(HLSDK)\engine;
$(HLSDK)\dlls;
$(HLSDK)\pm_shared;
$(IncludePath)
And it says it cant find the amxxmodule.h or metamod_config.h that is in rootfolder\sdk (Part of the project)
Doc-Holiday is offline
Shadows In Rain
Senior Member
Join Date: Apr 2010
Location: Russia::Siberia
Old 03-21-2012 , 04:47   Re: Compiling Modules
Reply With Quote #5

Quote:
Originally Posted by Doc-Holiday View Post
By my os what do you mean?
Env. vars are part of OS. Example (WinXP):


Quote:
Originally Posted by Doc-Holiday View Post
And it says it cant find the amxxmodule.h or metamod_config.h that is in rootfolder\sdk (Part of the project)
Add \sdk\, if your own files are placed in rootfolder.
__________________
I'm using Google translator, yarrr. |.◕‿‿◕.|

Last edited by Shadows In Rain; 03-21-2012 at 04:50.
Shadows In Rain is offline
Send a message via ICQ to Shadows In Rain
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 04-29-2012 , 14:52   Re: Compiling Modules
Reply With Quote #6

Quote:
Originally Posted by Shadows In Rain View Post
Add \sdk\, if your own files are placed in rootfolder.
So i did this and it continues to say it cant find the amxxmodule.h or metamod_config.h

Those are my last two errors

Code:
1>------ Build started: Project: take_damage_example, Configuration: Release Win32 ------
1>  module.cpp
1>C:\Users\John Doe\Desktop\module_take_damage_example_SRC\module_take_damage_example\include\module/module_for_rage.h(5): fatal error C1083: Cannot open include file: 'amxxmodule.h': No such file or directory

1>  take_damage_example.cpp
1>C:\Users\John Doe\Desktop\module_take_damage_example_SRC\module_take_damage_example\include\take_damage_example.h(2): fatal error C1083: Cannot open include file: 'amxxmodule.h': No such file or directory

1>  amxxmodule.cpp
1>c:\users\john doe\desktop\module_take_damage_example_src\module_take_damage_example\sdk\module_config.h(17): fatal error C1083: Cannot open include file: 'metamod_config.h': No such file or directory

1>  Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Last edited by Doc-Holiday; 04-29-2012 at 14:54.
Doc-Holiday is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 04-29-2012 , 16:51   Re: Compiling Modules
Reply With Quote #7

Did you create amxxmodule.h inside your project?
hleV is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 04-29-2012 , 17:32   Re: Compiling Modules
Reply With Quote #8

Quote:
Originally Posted by hleV View Post
Did you create amxxmodule.h inside your project?
Its the src from the rage module take damage that they made in the thread like second post or w/e


So now that i have fixed all the other erros... it just goes right back to the vector.h missing... yet its in the correct path and i have the directory hlsdk\multiplayer\dlls going ..... so Not sure wtf is wrong


Am i just cursed and not allowed to compile modules?

EDIT again: Here are some of my screen shots
Attached Thumbnails
Click image for larger version

Name:	Additional-Include-Directories.jpg
Views:	204
Size:	41.5 KB
ID:	102920   Click image for larger version

Name:	EnvironmentVariables.jpg
Views:	205
Size:	60.0 KB
ID:	102921   Click image for larger version

Name:	Errors.jpg
Views:	201
Size:	49.4 KB
ID:	102922  

Last edited by Doc-Holiday; 04-30-2012 at 01:23.
Doc-Holiday is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 07-17-2012 , 19:42   Re: Compiling Modules
Reply With Quote #9

So further on this still trying and now it tells me extdll.h doesn't exist on line 16 of amxmodule.h when trying to compile the hornet gun src from arkshine's post in the rage module.
Doc-Holiday is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-18-2012 , 03:37   Re: Compiling Modules
Reply With Quote #10

Make sure the paths is the project is the same as yours.
__________________
Arkshine is offline
Reply


Thread Tools
Display Modes

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 11:45.


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