lfnetwork.com mark read register faq members calendar

Thread: Compile under Linux!?
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 11-28-2003, 09:36 AM   #1
=X=Master HeX
 
=X=Master HeX's Avatar
 
Join Date: Dec 2002
Location: Lake Villa, IL.
Posts: 117
Compile under Linux!?

What in god's name were they thinking when they moved off of .vm files and went to .dll files. Now, as far as I can tell, their little readme tutorial shows you how to make the dll files for windows servers... How in the world do you compile the linux .so needed for linux dedicated servers?

=X=Master HeX is offline   you may: quote & reply,
Old 11-28-2003, 11:43 AM   #2
=X=Master HeX
 
=X=Master HeX's Avatar
 
Join Date: Dec 2002
Location: Lake Villa, IL.
Posts: 117
Answering my own question:
http://divoid.net/downloads.html

This person was kind enough to make a patch file for the game directory source code. Just download it and throw it in your game folder then use the patch command with it to patch the code. A make will make the so file needed for linux dedicated server.

On a side note I can't get it to compile under cygwin. It errors out when attempting to make all of the .o files. Any assistance would be wonderfull.

=X=Master HeX is offline   you may: quote & reply,
Old 11-28-2003, 02:00 PM   #3
Wudan
Got Balance?
 
Wudan's Avatar
 
Join Date: Oct 2002
Location: Salt Lake, UT
Posts: 1,442
You might be the only one in that boat. However, it should be noted that the Win-compiled DLLs will run on a Linux Dedicated Server.

I'm not compiling with MSVC, I'm attempting to compile with MingW, which is Minimalist Gnu for Windows, so I'm sort of in the same boat as creating my own project and/or makefiles.


Mt-Wudan.com
I made a silly little program called Dragon, which is an animation tool for the GLA format, used in Jedi Outcast, Jedi Academy and Krakatoa.
Wudan is offline   you may: quote & reply,
Old 12-01-2003, 03:44 AM   #4
razorace
Impressive, Terran!
 
razorace's Avatar
 
Join Date: May 2002
Posts: 9,187
So how do you run .dlls on the linux dedicated server? I never use Linux and need instructions so I can help people that ask.


---Jedi Guardian of the Newbie Questions
---Masters of the Force Team Leader / Creator
---Open Jedi Project Lead Moderator / Co-Founder
razorace is offline   you may: quote & reply,
Old 12-01-2003, 05:37 AM   #5
zERoCooL2479
 
zERoCooL2479's Avatar
 
Join Date: Apr 2002
Location: New York
Posts: 288
The good thing is, we are all going to learn something new :-)

Extra creases in the brain rule! I'm pretty much in the same boat as all of you. I really think they should have kept the "vm" format, was much easier for us. In any case, if you guys find out how to do this, other than those patch files, it would be much appreciated.

Take Care!


~cHoSeN oNe
Mod Developer
The Jedi Academy
zERoCooL2479 is offline   you may: quote & reply,
Old 12-02-2003, 08:30 PM   #6
Leg0r
Lurker
 
Join Date: Sep 2003
Posts: 8
has anyone tried using win compiled dll's on a linux dedicated server? need confirmation that it works.

if it doesnt work, is there an easy way to convert win compiled dll's to the those linux so's? i guess there isnt :\
Leg0r is offline   you may: quote & reply,
Old 01-06-2004, 12:19 AM   #7
Janos Oudrin
Lurker
 
Join Date: Dec 2003
Posts: 3
The patch is good indeed, but the Makefile needs tweaking.
For example, you need to add -DFINAL_BUILD to the CFLAGS to get it out of a crash-galore halfway debug mode.
After doing this I'm STILL getting a lot of crashes, especially in seige.
When I compile the same source on my windows box using the Win32 Release config, it works just fine.

Does anyone know which CFLAGS need to be added or removed?
Janos Oudrin is offline   you may: quote & reply,
Old 01-06-2004, 09:33 AM   #8
divoid
Lurker
 
Join Date: Dec 2003
Posts: 7
maybe your using an older compiler than i am. i wrote the patch and tested it with gcc 3.2.3 and glibc 2.3.1. Ive run the mod in various game modes for weeks at a time and ive only had it crash on me once. so its most likely something on your end
divoid is offline   you may: quote & reply,
Old 01-07-2004, 03:12 AM   #9
Emon
Strong Bad's Henchman
 
Emon's Avatar
 
Join Date: Jan 2002
Location: The Massassi Temple
Posts: 3,468
Quote:
Originally posted by razorace So how do you run .dlls on the linux dedicated server? I never use Linux and need instructions so I can help people that ask.
Same way it does in Windows I assume. Loading a DLL shouldn't be any different from loading an SO, other than maybe the binary needing to support it, which JA obviously does. I know Wine can load a variety of Windows DLLs without a hitch.


Clarionet, n. An instrument of torture operated by a person with cotton in his ears. There are two instruments that are worse than a clarionet -- two clarionets.
Emon is offline   you may: quote & reply,
Old 01-28-2004, 05:06 PM   #10
MasterSidious
Junior Member
 
MasterSidious's Avatar
 
Join Date: Oct 2003
Location: in game getting flamed and banned
Posts: 412
I tried the patch link and it didn't work . But anyway, is it possible to just use dlls for linux instead of so?


FP>Sephious
67.15.20.187:29070 - FFA SO
67.15.21.115:29070 - CTF SO
67.15.18.232:29070 - Siege/FFA
Laming is tolerated
MasterSidious is offline   you may: quote & reply,
Old 01-29-2004, 11:14 AM   #11
[ONE]Mushroom
Rookie
 
[ONE]Mushroom's Avatar
 
Join Date: Nov 2003
Posts: 51
The patch:

http://www.lucasfiles.com/index.php?...on=file&id=367

You might like to check the two Linux threads I've posted here too.
[ONE]Mushroom is offline   you may: quote & reply,
Old 01-29-2004, 07:07 PM   #12
MasterSidious
Junior Member
 
MasterSidious's Avatar
 
Join Date: Oct 2003
Location: in game getting flamed and banned
Posts: 412
I put the .patch file in my codemp directory then ran this line:
"C:\Program Files\LucasArts\Star Wars Jedi Knight Jedi Academy\GameData\codemp\jamp_game-2.patch" -p1 -i patch

and it can't run it cause it doesn't know about that file type. What program should I use to run this?


FP>Sephious
67.15.20.187:29070 - FFA SO
67.15.21.115:29070 - CTF SO
67.15.18.232:29070 - Siege/FFA
Laming is tolerated
MasterSidious is offline   you may: quote & reply,
Old 01-29-2004, 10:51 PM   #13
zERoCooL2479
 
zERoCooL2479's Avatar
 
Join Date: Apr 2002
Location: New York
Posts: 288
Quote:
Originally posted by Janos Oudrin
The patch is good indeed, but the Makefile needs tweaking.
For example, you need to add -DFINAL_BUILD to the CFLAGS to get it out of a crash-galore halfway debug mode.
After doing this I'm STILL getting a lot of crashes, especially in seige.
When I compile the same source on my windows box using the Win32 Release config, it works just fine.

Does anyone know which CFLAGS need to be added or removed?
This is what I have in my CmakeLists.txt file:

-w -DQAGAME -D_JK2 -D__linux__ -DFINAL_BUILD -static

with or without the static, its up to you...

Good Luck


~cHoSeN oNe
Mod Developer
The Jedi Academy
zERoCooL2479 is offline   you may: quote & reply,
Old 01-29-2004, 11:49 PM   #14
MasterSidious
Junior Member
 
MasterSidious's Avatar
 
Join Date: Oct 2003
Location: in game getting flamed and banned
Posts: 412
Can't get it to load period.


FP>Sephious
67.15.20.187:29070 - FFA SO
67.15.21.115:29070 - CTF SO
67.15.18.232:29070 - Siege/FFA
Laming is tolerated
MasterSidious is offline   you may: quote & reply,
Old 01-30-2004, 08:11 PM   #15
[ONE]Mushroom
Rookie
 
[ONE]Mushroom's Avatar
 
Join Date: Nov 2003
Posts: 51
Quote:
Originally posted by MasterSidious
I put the .patch file in my codemp directory then ran this line:
"C:\Program Files\LucasArts\Star Wars Jedi Knight Jedi Academy\GameData\codemp\jamp_game-2.patch" -p1 -i patch

and it can't run it cause it doesn't know about that file type. What program should I use to run this?
Execute the patch script under Linux. You'll need to run make under Linux too.

Alternatively you could open up the file in a text editor, see for yourself the changes that need to be made, and make them manually.

BTW, I am deeply skeptical of the possibility of a Linux server being able to use the Windows .dll
[ONE]Mushroom is offline   you may: quote & reply,
Old 01-30-2004, 09:48 PM   #16
MasterSidious
Junior Member
 
MasterSidious's Avatar
 
Join Date: Oct 2003
Location: in game getting flamed and banned
Posts: 412
How do I run the patch under Linux if I don't have a Linux system? Is this even possible?


FP>Sephious
67.15.20.187:29070 - FFA SO
67.15.21.115:29070 - CTF SO
67.15.18.232:29070 - Siege/FFA
Laming is tolerated
MasterSidious is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Editing Central > JA Coding > Compile under Linux!?

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 Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:05 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.