Doesn't link
by Gary "ChunkyKs" Briggs · in General Discussion · 11/10/2004 (7:48 pm) · 2 replies
Heya,
Uhm... So the linux client doesn't link at the moment. I'm using GCC 3.3.4, and the latest CVS of realmwars.
Torque-head CVS builds & runs fine right now.
I can paste more detailed errrors someplace if it would help, but does anyone know of a fix offhand?
1) Lots of stuff about symbols defined in both fxLight.obj and fxLightDB.obj
2) Lots of stuff about undefined references to CameraSpline::{Blah} and CatmullRomPatch::{Blah} in worldEditor.obj
3) There's a reference to PathedInterior::PathedInterior[in-charge]() that can't be found in interiorInstance.obj
4) And there's a few symbols NetAsync::{Blah} that can't be found in x86UNIXNet.obj
Thanks,
Gary (-;
Uhm... So the linux client doesn't link at the moment. I'm using GCC 3.3.4, and the latest CVS of realmwars.
Torque-head CVS builds & runs fine right now.
I can paste more detailed errrors someplace if it would help, but does anyone know of a fix offhand?
1) Lots of stuff about symbols defined in both fxLight.obj and fxLightDB.obj
2) Lots of stuff about undefined references to CameraSpline::{Blah} and CatmullRomPatch::{Blah} in worldEditor.obj
3) There's a reference to PathedInterior::PathedInterior[in-charge]() that can't be found in interiorInstance.obj
4) And there's a few symbols NetAsync::{Blah} that can't be found in x86UNIXNet.obj
Thanks,
Gary (-;
#2
Thank-you, though. You made it mcuh cleaner than I did :-)
Gary (-;
01/14/2005 (12:56 pm)
Thanks! I think I'd mostly got it working, and pasted something into the Torque SDK private forums since I thought that kinda qualified as code.Thank-you, though. You made it mcuh cleaner than I did :-)
Gary (-;
Torque Owner Gregory "Centove" McLean
Index: engine/targets.torque.mk =================================================================== RCS file: /cvs/realmwars/realmwars/engine/targets.torque.mk,v retrieving revision 1.5 diff -u -r1.5 targets.torque.mk --- engine/targets.torque.mk 2003/02/16 06:37:03 1.5 +++ engine/targets.torque.mk 2005/01/14 17:11:12 @@ -126,6 +126,7 @@ gui/guiDebugger.cc \ gui/guiDefaultControlRender.cc \ gui/guiEditCtrl.cc \ + gui/guiFadeinBitmapCtrl.cc \ gui/guiFilterCtrl.cc \ gui/guiFrameCtrl.cc \ gui/guiInputCtrl.cc \ @@ -155,6 +156,7 @@ # gui/guiHelpCtrl.cc \ SOURCE.INTERIOR=\ + interior/pathedInterior.cc \ interior/floorPlanRes.cc \ interior/forceField.cc \ interior/itfdump.asm \ @@ -190,6 +192,7 @@ math/mSolver.cc \ math/mSplinePatch.cc \ math/mathTypes.cc \ + math/mCatmullRomPatch.cc \ math/mathUtils.cc SOURCE.PLATFORM=\ @@ -200,6 +203,7 @@ platform/platformMemory.cc \ platform/platformRedBook.cc \ platform/platformVideo.cc \ + platform/platformNetAsync.cc \ platform/profiler.cc SOURCE.PLATFORMPPC=\ @@ -269,6 +273,7 @@ game/audioEmitter.cc \ game/banList.cc \ game/camera.cc \ + game/cameraSpline.cc \ game/collisionTest.cc \ game/debris.cc \ game/debugView.cc \ @@ -312,13 +317,13 @@ game/fps/guiCrossHairHud.cc \ game/fps/guiShapeNameHud.cc \ game/fps/guiHealthBarHud.cc \ + game/fps/guiHealthArcHud.cc \ game/fps/guiClockHud.cc SOURCE.GAME.FX=\ game/fx/cameraFXMgr.cc \ game/fx/explosion.cc \ game/fx/fxFoliageReplicator.cc \ - game/fx/fxLight.cc \ game/fx/fxLightDB.cc \ game/fx/lightning.cc \ game/fx/motion.cc \ @@ -336,6 +341,7 @@ game/vehicles/wheeledVehicle.cc SOURCE.PLATFORMX86UNIX=\ + platform/platformNetAsync.cc \ platformX86UNIX/x86UNIXAsmBlit.cc \ platformX86UNIX/x86UNIXCPUInfo.cc \ platformX86UNIX/x86UNIXConsole.cc \ @@ -446,7 +452,6 @@ $(SOURCE.INTERIOR) \ $(SOURCE.MATH) \ $(SOURCE.PLATFORM) \ - $(SOURCE.PLATFORM$(OS)) \ $(SOURCE.SCENEGRAPH) \ $(SOURCE.SIM) \ $(SOURCE.TERRAIN) \ @@ -459,6 +464,12 @@ $(SOURCE.GAME.FX) \ $(SOURCE.GAME.VEHICLES) +ifeq "$(OS)" "WIN32" +SOURCE.ENGINE += $(SOURCE.PLATFORM$(OS)) +else +SOURCE.ENGINE += $(SOURCE.PLATFORM$(OS)DEDICATED) +endif + SOURCE.TESTAPP =\ $(SOURCE.AUDIO) \ $(SOURCE.COLLISION) \ @@ -532,8 +543,14 @@ DIR.LIST = $(addprefix $(DIR.OBJ)/, $(sort $(dir $(SOURCE.ENGINE)))) $(DIR.LIST): targets.torque.mk + +# unix build needs to add DEDICATED to the CFLAGS +EXTRAFLAGS= +ifneq "$(OS)" "WIN32" +EXTRAFLAGS=-DDEDICATED -DTORQUE_ENGINE +endif -$(DIR.OBJ)/engine$(EXT.LIB): CFLAGS += $(INCLUDES_$(OS)) +$(DIR.OBJ)/engine$(EXT.LIB): CFLAGS += $(EXTRAFLAGS) -DTORQUE_MAX_LIB $(INCLUDES_$(OS)) $(DIR.OBJ)/engine$(EXT.LIB): $(DIR.OBJ) $(DIR.LIST) $(SOURCE.ENGINE.OBJ) $(DO.LINK.LIB)