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

Functional Linux Makefile


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 12-12-2004 , 10:25   Functional Linux Makefile
Reply With Quote #1

Requirements:
  • glibc (package)
  • glibc-devel (package)
  • bin folder from linux source server
  • hl2sdk source files

I have set this Makefile up by default so you can use a folder structure similar to the following

Folder with HL2SDK source files
/usr/src/half-life/hl2sdk

Folder with HL2bin files
/usr/src/half-life/hl2sdk/valve/hl2bin/bin

Folder with this Makefile and your plugin source code
/usr/src/half-life/myplugin (can be any folder)

Please make sure you look at all the developer options at the top and change them if necesary before posting questions about missing file errors.

Good luck and let me know if you have any problems.
Attached Files
File Type: zip makefile.zip (1.5 KB, 429 views)
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
Padishar
Junior Member
Join Date: Dec 2004
Old 12-12-2004 , 10:50  
Reply With Quote #2

GJ
Padishar is offline
Send a message via ICQ to Padishar
BAILOPAN
Join Date: Jan 2004
Old 12-12-2004 , 13:35  
Reply With Quote #3

Awesome JTP
__________________
egg
BAILOPAN is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 12-13-2004 , 18:58  
Reply With Quote #4

Updated makefile to have more include folders, some people may be using more than just the basic includes.
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
Mr. JiggyFly
Junior Member
Join Date: Nov 2004
Old 12-13-2004 , 20:01  
Reply With Quote #5

thanks man
Mr. JiggyFly is offline
imported_Phreak
Junior Member
Join Date: Dec 2004
Location: Darmstadt/Germany
Old 12-16-2004 , 07:39  
Reply With Quote #6

uh ... i tried this makefile and it worked nice, just one strange thing ... a plugin i compiled with the makefiles shipped with the source sdk was about 250k size, but after compiling it with this makefile it was 1mb!

any idea where that came from?
imported_Phreak is offline
Padishar
Junior Member
Join Date: Dec 2004
Old 12-16-2004 , 09:11  
Reply With Quote #7

Same for me! Compiling Xaphans code results in a 3MB file.
Padishar is offline
Send a message via ICQ to Padishar
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 12-16-2004 , 22:01  
Reply With Quote #8

I don't know how anyone can get the stock makefile to even work.... it doesn't even include all the paths needed. I don't know how its getting to be 3Mb either, might be something thats getting linked in from your system thats large. The SAP plugin is only about 148K compiled with my Makefile. Basically this Makefile is the same asd the stock one but more paths are included (which should not effect size). I also did a little trick with symlinks to get the hl2 bin files to link properly.
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
kylratix
Member
Join Date: Jan 2005
Location: California, USA
Old 04-17-2005 , 01:02  
Reply With Quote #9

Is there another way to get the .so (tier0, etc.) files necessary other than installing an entire srcds setup?
kylratix is offline
Send a message via AIM to kylratix Send a message via MSN to kylratix
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 04-22-2005 , 19:07  
Reply With Quote #10

Ok I'm sure this is just user error, but I get so far then I get this error message:

Quote:
c_eh.a -lm -ldl tier0_i486.so vstdlib_i486.so
gcc: tier0_i486.so: No such file or directory
gcc: vstdlib_i486.so: No such file or directory
make: *** [redirecter_plugin_i486.so] Error 1
Then I do an LS and it lists:

Quote:
[geesu@localhost serverplugin_sample]$ ls
Makefile serverplugin_bot.cpp serverplugin_empty.cpp tier0_i486.so
obj serverplugin_convar.cpp serverplugin_empty.vcproj vstdlib_i486.so
I'm pretty sure the .so's are like symbolic links or something (they're a different color, red on RH9)... but how can I get it so it looks in the right place?
__________________
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
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 15:29.


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