AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Coding MM:S Plugins & SM Extensions (https://forums.alliedmods.net/forumdisplay.php?f=75)
-   -   Compiling linux serverplugin (https://forums.alliedmods.net/showthread.php?t=36874)

Padishar 12-09-2004 09:44

Compiling linux serverplugin
 
Hi,

can anybody explain how to compile the serverplugin on linux?

Padishar 12-10-2004 04:56

Ok, i got the vcproj-file converted, but it still does not find some header-files.

any hints?

thx for help

Padi

imported_Phreak 12-10-2004 05:21

get the source sdk (on a windows machine)
create a new mod.
copy the dir over to your linux machine.
nearly everything should be there, including makefiles, you just need to install xerces-c (as described in the main Makefile)

Padishar 12-10-2004 07:45

You got mail.

showdax 12-10-2004 14:02

http://dackz.net/misc/code/serverplugin/ explains what I had to do to get it compiled. Granted, some of the things mentioned might not be the best way to do things, it still works regardless.

BAILOPAN 12-10-2004 14:48

Nice guide - I would add something about the rpath change people have been doing to the dynamic linking portion.

Here:
Code:

LDFLAGS="-lm -ldl bin/tier0_i486.so bin/vstdlib_i486.so"
Use -rpath to point to the relative locations of the files

I'll sticky your link when I get enough links to go with it

showdax 12-10-2004 17:27

Hmm, with this:

Code:

LDFLAGS="-lm -ldl $(GAME_DIR)/bin/tier0_i486.so $(GAME_DIR)/bin/vstdlib_i486.so -rpath ."
I get:

Code:

gcc-3.4: unrecognized option `-rpath'
And using -Wl,-rpath,. makes it compile, but when I try to load the plugin it looks in the wrong place. (So the -Wl argument didn't do anything.)

Edit: With "--rpath ." the unrecognized option goes away, but I still get:

Code:

/usr/bin/ld: .: No such file: File format not recognized


All times are GMT -4. The time now is 07:08.

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