Game Development Community

Dedicated Server Build for Linux Error

by DavidRM · in Torque Game Engine · 06/09/2006 (10:34 am) · 11 replies

I'm using 1.4 from the SDK installer (not CVS HEAD).

Here's my Linux information:
Linux version 2.6.9-22.0.1.EL (buildcentos@x8664-build) (gcc version 3.4.4 20050721 (Red Hat 3.4.4-2))

I got this error last night and haven't been able to get past it:
# make dedicated
--> Linking out.GCC3.RELEASE/TorqueLightingKitd.bin
/usr/bin/ld: cannot find -lXft
collect2: ld returned 1 exit status
make[1]: *** [out.GCC3.RELEASE/TorqueLightingKitd.bin] Error 1
make: *** [dedicated] Error 2

I updated my Xfree86 but it made no difference.

I suppose this might be a TLK issue, but I wanted to start here first, since it might be something obvious in my Linux environment.

Any help appreciated.

-David

#1
06/09/2006 (12:59 pm)
Use what is provided on the cvs repository , it works fine

see install procedure here eviwo.free.fr/torque/compile.html

Philippe C
#2
06/09/2006 (1:18 pm)
Philippe: I was hoping for something a bit more specific. Ah, well. I'll try a CVS download of Torque's HEAD to see if that compiles properly on my server.

Thanks.

-David
#3
06/09/2006 (1:45 pm)
Ln can not find the xft library, need to go an install the FreeType library for your distro (don't forget the deve libs :) )

BTW: This is not a TLK, TGE-L or GG issue ;) it is a OS configuration issue
#4
06/09/2006 (2:06 pm)
Well...I pulled the HEAD from CVS. I got a libsdl error. I don't know if that means the HEAD fixes the xft issue or if I somehow managed to get xft installed (I doubt that).

Regardless, it all brings up this question:

I'm doing a dedicated server build. No graphical output whatsoever. What's with all these very graphical dependencies?

Thanks.

-David
#5
06/09/2006 (2:17 pm)
1) SDL is required for threading which is a core feature of TGE, regardless of dedicated or non dedicated build
2) Xft is required for fonts; not sure why it is in the dedicated build. I'll have to look into that.

-Ron
#6
06/09/2006 (2:36 pm)
The Xft dependency seems to be from the "old" 1.4. The HEAD didn't bump into it.

Thanks.

-David
#7
06/09/2006 (11:04 pm)
David,

as explain by ron , you have missing library

But i give you a link to get the minimum configuration : eviwo.free.fr/torque/compile.html.
Hereafter an extract of the web page:


gcc (GCC) version gcc 4.0.3 (Ubuntu 4.0.3-1ubuntu3)
g++ version gcc 4.0.3 (Ubuntu 4.0.3-1ubuntu3)
make GNU Make 3.81beta4
NASM version 0.98.38 compiled on Jun 27 2005
Concurrent Versions System (CVS) 1.12.9 (client/server)
libxft-dev 2.1.8.2
libsdl1.2-dev
Wine 0.9.10 ( if you want to use yacc and flex)
#8
06/10/2006 (12:12 am)
For your information I have compiled torque and it is ok with the configuration listed above:

Current Configuration: this config is VALID
         OS: LINUX
   COMPILER: GCC4
      BUILD: RELEASE
    DIR.OBJ: out


philippe@Josie:~/cvs/torque$ make dedicated
--> Compiling audio/audio.cc
--> Compiling audio/audioBuffer.cc
--> Compiling audio/audioDataBlock.cc
--> Compiling audio/audioFunctions.cc
--> Compiling audio/audioStreamSourceFactory.cc
....
--> Compiling interior/interiorMap.cc
--> Compiling interior/lightUpdateGrouper.cc
--> Compiling interior/mirrorSubObject.cc
--> Compiling interior/pathedInterior.cc
--> Compiling math/mBox.cc
--> Compiling math/mConsoleFunctions.cc
....
--> Compiling math/mSplinePatch.cc
--> Compiling math/mathTypes.cc
--> Compiling math/mathUtils.cc
--> Compiling math/mMathAMD.cc
--> Assembling math/mMathAMD_ASM.asm
--> Compiling math/mMathSSE.cc
....
--> Compiling synapseGaming/contentPacks/lightingPack/sgSceneLighting.cc
--> Compiling synapseGaming/contentPacks/lightingPack/sgSceneObject.cc
--> Compiling synapseGaming/contentPacks/lightingPack/sgShadow.cc
--> Compiling synapseGaming/contentPacks/lightingPack/sgTGE.cc
--> Compiling synapseGaming/contentPacks/lightingPack/sgTSStatic.cc
--> Compiling synapseGaming/contentPacks/lightingPack/sgUniversalStaticLight.cc
--> Compiling game/fx/volLight.cc
--> Compiling platform/platformNetAsync.cc
--> Compiling platformX86UNIX/x86UNIXCPUInfo.cc
--> Compiling platformX86UNIX/x86UNIXConsole.cc
--> Compiling platformX86UNIX/x86UNIXDedicatedStub.cc
--> Compiling platformX86UNIX/x86UNIXFileio.cc
--> Compiling platformX86UNIX/x86UNIXIO.cc
--> Compiling platformX86UNIX/x86UNIXMath.cc
--> Compiling platformX86UNIX/x86UNIXMath_ASM.cc
--> Compiling platformX86UNIX/x86UNIXMemory.cc
--> Compiling platformX86UNIX/x86UNIXMutex.cc
--> Compiling platformX86UNIX/x86UNIXNet.cc
--> Compiling platformX86UNIX/x86UNIXProcessControl.cc
--> Compiling platformX86UNIX/x86UNIXSemaphore.cc
--> Compiling platformX86UNIX/x86UNIXStrings.cc
--> Compiling platformX86UNIX/x86UNIXThread.cc
--> Compiling platformX86UNIX/x86UNIXTime.cc
--> Compiling platformX86UNIX/x86UNIXWindow.cc
--> Compiling platformX86UNIX/x86UNIXUtils.cc
--> Linking out.GCC4.RELEASE/torqueDemod.bin
philippe@Josie:~/cvs/torque$
#9
06/10/2006 (7:43 am)
I should've been more specific in my last post: I did get the HEAD to build properly, once I had SDL installed. And the HEAD didn't require Xft for the dedicated server build, so that had been fixed, as well.

So, now I'm prepping to do a merge of my source, based on the 1.4 SDK (from the installer), and the CVS HEAD. Oh, the joys. At least I have WinMerge...

Thanks again.

-David
#10
06/10/2006 (8:09 am)
I have been out of the loop regarding TGE-L 1.4.2 and other projects due to health issues, will get CVS updated as soon as possible.
#11
06/10/2006 (8:30 am)
David,

on linux exists a tool like winmerge : Meld

meld.sourceforge.net

From my point of view this tool is better than winmerge

;)

Philippe