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

Compiling linux serverplugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Padishar
Junior Member
Join Date: Dec 2004
Old 12-09-2004 , 09:44   Compiling linux serverplugin
Reply With Quote #1

Hi,

can anybody explain how to compile the serverplugin on linux?
Padishar is offline
Send a message via ICQ to Padishar
Padishar
Junior Member
Join Date: Dec 2004
Old 12-10-2004 , 04:56  
Reply With Quote #2

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

any hints?

thx for help

Padi
Padishar is offline
Send a message via ICQ to Padishar
imported_Phreak
Junior Member
Join Date: Dec 2004
Location: Darmstadt/Germany
Old 12-10-2004 , 05:21  
Reply With Quote #3

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)
imported_Phreak is offline
Padishar
Junior Member
Join Date: Dec 2004
Old 12-10-2004 , 07:45  
Reply With Quote #4

You got mail.
Padishar is offline
Send a message via ICQ to Padishar
showdax
Senior Member
Join Date: Dec 2004
Old 12-10-2004 , 14:02  
Reply With Quote #5

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.
showdax is offline
Send a message via MSN to showdax
BAILOPAN
Join Date: Jan 2004
Old 12-10-2004 , 14:48  
Reply With Quote #6

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
BAILOPAN is offline
showdax
Senior Member
Join Date: Dec 2004
Old 12-10-2004 , 17:27  
Reply With Quote #7

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
showdax is offline
Send a message via MSN to showdax
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 18:26.


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