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

Compiling Modules


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BAILOPAN
Join Date: Jan 2004
Old 03-16-2004 , 00:15   Compiling Modules
Reply With Quote #1

This list is for the modules in the AMX Mod X CVS and may not apply to the ones released by other people.

To compile modules on Visual C++ 6:
  • Go to Tools, Options, click the Directories tab
  • Add the following directories, ABOVE the four MFC/ATL include directories already there. This is essential because otherwise the HLSDK will have conflicts.
  • Add the following sub folder from inside the hlsdk/SourceCode or hlsdk/multiplayer/ folder: pm_shared, engine, common, dlls.
  • Add the metamod source folder.
  • Add the amxmodx source folder.
  • Clean, Build.

To compile modules on Visual C++ 7:
  • Go to Tools, Options.
  • Click on Project from the options section.
  • Click on "VC++ Directories".
  • Under "Show Directories for", select "Include Files".
  • Add the following directories, ABOVE the four MFC/ATL include directories already there. This is essential because otherwise the HLSDK will have conflicts.
  • Add the following sub folder from inside the hlsdk/SourceCode or hlsdk/multiplayer/ folder: pm_shared, engine, common, dlls.
  • Add the metamod source folder.
  • Add the amxmodx source folder.
  • If you are compiling the MySQL module, you will also need to select "Library Files" from"Show Directories for", and add "mysql\extra\lib_win32" from your mysql module source folder.

To compile on GCC-3.3: Don't.

To compile on GCC-2.95:
  • All the makefiles are set up so the source tree should look like this:
    hlsdk/SourceCode/
    metamodx/
    amxmodx/
    module/
  • Note: you can edit the paths in the makefile if you do not want to use those folders.
  • So to compile the module source, you can just:
    Code:
    cd module
    make linux
  • Your compiled binary will be in "dir/module/obj.linux". It will probably be named i386, even if it under glibc-2.3. You should rename it if that is the case.
__________________
egg
BAILOPAN is offline
MagicShot
Senior Member
Join Date: Mar 2004
Location: MN
Old 03-16-2004 , 00:47   Windows
Reply With Quote #2

What if you Use GCC for windows?
__________________
|v|agic$hot
.
Without a Sound
MagicShot is offline
Send a message via MSN to MagicShot Send a message via Yahoo to MagicShot
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 03-16-2004 , 01:28   Re: Compiling Modules
Reply With Quote #3

Quote:
Originally Posted by BAILOPAN
To compile on GCC-3.3: Don't.
rofl
Freecode is offline
Sanji
Member
Join Date: Mar 2004
Old 03-21-2004 , 17:25  
Reply With Quote #4

well if you use an updated hlsdk you can use gcc 3.x without problems

well i dont know what to change, but i can give you my headerfiles
Sanji is offline
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 03-22-2004 , 11:36   Re: Compiling Modules
Reply With Quote #5

Quote:
Originally Posted by BAILOPAN
[*]Add the following directories, ABOVE the four MFC/ATL include directories already there. This is essential because otherwise the HLSDK will have conflicts.
which are what?
Freecode is offline
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 03-22-2004 , 14:45  
Reply With Quote #6

Yea so I'm a complete idiot and can't compile this.. LOL, I think someone should just zip up the directory structure for me Sad thing is that I'm a comp sci. eng. major too
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
Sanji
Member
Join Date: Mar 2004
Old 03-23-2004 , 12:03  
Reply With Quote #7

try this one: http://www.gcs-clan.de/SDK.zip

just move the content from hlsdk/ to hlsdk/SourceCode/

this sdk works fine with gcc 3.x
Sanji is offline
Haircut
Member
Join Date: Mar 2004
Location: UK
Old 03-29-2004 , 03:50  
Reply With Quote #8

Quote:
Originally Posted by Sanji
try this one: http://www.gcs-clan.de/SDK.zip

just move the content from hlsdk/ to hlsdk/SourceCode/

this sdk works fine with gcc 3.x

Any chance of telling us where you got the headers from ... would be nice to know?
Haircut is offline
BAILOPAN
Join Date: Jan 2004
Old 03-29-2004 , 10:19  
Reply With Quote #9

valve distributes the sdk.

the most recent files can be found in the hlcoders mailing list archives or on the root of AMX Mod X's CVS server
__________________
egg
BAILOPAN is offline
Haircut
Member
Join Date: Mar 2004
Location: UK
Old 03-30-2004 , 01:38  
Reply With Quote #10

Thanks for the info.

I only ask because I've been using the ones on MetaMod webby up untill now to compile dodxmod for amxmod.

With the new dod module coming out for AMX Mod X I hope I can move over and don't have to compile DoD XMod anymore.
Haircut 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 13:08.


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