Adding more .cc to makefile?
by Luke Jones · in Torque Game Engine · 08/11/2003 (1:22 am) · 8 replies
I cant find where the make selects all the source files to compile, thus giving linking errors, any help?
About the author
Core developer using Rust lang at Sphere Identity.
#3
SOURCE.SOCIETYLEARNING =\
../SocietyLearning/Agent/Agent.cc \
../SocietyLearning/Society/Society.cc
SOURCE.TESTAPP_DEDICATED =\
$(SOURCE.SOCIETYLEARNING) \
$(SOURCE.TESTAPP) \
$(SOURCE.PLATFORM$(OS)DEDICATED) \
The error message:
make dedicated
make[1]: *** No rule to make target 'out.GCC2.DEBUG/../SocietyLearning/Agent/Agent.obj', needed by 'out.GCC2.DEBUG/torqueDemod_DEBUG.bin'. Stop.
make: *** [dedicated] Error 2
Any help would be appreciated. I've used makefiles before but this one is pretty big.
Jay
02/10/2004 (6:17 am)
I'm following your advice but can't figure out how to add the files properly. I only won't them to build for the dedicated build. Below is a portion of my targets.torque.mk in source/engine. There is no particular reason for using the name SOURCE.SOCIETYLEARNING. Is it important what it's called? The error message is included below:SOURCE.SOCIETYLEARNING =\
../SocietyLearning/Agent/Agent.cc \
../SocietyLearning/Society/Society.cc
SOURCE.TESTAPP_DEDICATED =\
$(SOURCE.SOCIETYLEARNING) \
$(SOURCE.TESTAPP) \
$(SOURCE.PLATFORM$(OS)DEDICATED) \
The error message:
make dedicated
make[1]: *** No rule to make target 'out.GCC2.DEBUG/../SocietyLearning/Agent/Agent.obj', needed by 'out.GCC2.DEBUG/torqueDemod_DEBUG.bin'. Stop.
make: *** [dedicated] Error 2
Any help would be appreciated. I've used makefiles before but this one is pretty big.
Jay
#4
But you could just whack it under another group, SOURCE.GAME.NET=\ perhaps.
Umm... try putting
$(SOURCE.SOCIETYLEARNING) \
under
SOURCE.TESTAPP =\ instead...
02/11/2004 (12:05 pm)
Cant see a reason why it shouldnt work.But you could just whack it under another group, SOURCE.GAME.NET=\ perhaps.
Umm... try putting
$(SOURCE.SOCIETYLEARNING) \
under
SOURCE.TESTAPP =\ instead...
#5
I have a post in another thread that I have not gotten an answer on. Will let you know if I do.
Frank
03/21/2004 (8:29 pm)
I have that same problem. It seems to be a problem with dependentcies? I tried adding my code "testvehicle.cc" under the "game/vehicles" area of the make file. Same type of error. I have a post in another thread that I have not gotten an answer on. Will let you know if I do.
Frank
#6
03/27/2004 (12:48 am)
Case Senesitive? Typed it correctly and have the right paths?
#7
03/28/2004 (5:16 pm)
Wrong file extension. I had *.cc in the *.mk file and *.cpp on the actual file. DOH!
#8
03/28/2004 (8:33 pm)
Glad to see you got it fixed ;)
Torque 3D Owner Xavier "eXoDuS" Amado
Default Studio Name