Jump to content

Home

Compile under Linux!?


=X=Master HeX

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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 :\

Link to comment
Share on other sites

  • 1 month later...

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 3 weeks later...
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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...