AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Coding MM:S Plugins & SM Extensions (https://forums.alliedmods.net/forumdisplay.php?f=75)
-   -   Functional Linux Makefile (https://forums.alliedmods.net/showthread.php?t=36888)

jtp10181 12-12-2004 10:25

Functional Linux Makefile
 
1 Attachment(s)
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.

Padishar 12-12-2004 10:50

GJ :D

BAILOPAN 12-12-2004 13:35

Awesome JTP

jtp10181 12-13-2004 18:58

Updated makefile to have more include folders, some people may be using more than just the basic includes.

Mr. JiggyFly 12-13-2004 20:01

thanks man

imported_Phreak 12-16-2004 07:39

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?

Padishar 12-16-2004 09:11

Same for me! Compiling Xaphans code results in a 3MB file.

jtp10181 12-16-2004 22:01

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.

kylratix 04-17-2005 01:02

Is there another way to get the .so (tier0, etc.) files necessary other than installing an entire srcds setup?

Geesu 04-22-2005 19:07

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?


All times are GMT -4. The time now is 19:50.

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