Game Development Community

TGE 1.5.2 + Motion Blur

by Michael Brakefield · in Torque Game Engine · 07/24/2007 (1:37 pm) · 2 replies

Hey guys,

I need some help.
I'm doing a build with TGE 1.5.2 and the Motion Blur resource
(http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5686)
But i'm getting some compile errors.

The same build on windows works fine, but on Linux i get this:

--> Linking out.GCC4.RELEASE/torqueDemo.bin
out.GCC4.RELEASE/gui/core/guiTSControl.obj: In function 'GuiTSCtrl::onRender(Point2I, RectI const&)':
guiTSControl.cc:(.text+0x59e): undefined reference to 'gScreenFXMgr'
guiTSControl.cc:(.text+0x5a3): undefined reference to 'ScreenFXManager::render(RectI const&)'
out.GCC4.RELEASE/game/fx/explosion.obj: In function 'Explosion::onAdd()':
explosion.cc:(.text+0x2ebb): undefined reference to 'ScreenFXMotionBlur::ScreenFXMotionBlur()'
explosion.cc:(.text+0x2ef6): undefined reference to 'gScreenFXMgr'
explosion.cc:(.text+0x2efb): undefined reference to 'ScreenFXManager::addFX(ScreenFX*)'
collect2: ld returned 1 exit status
make[1]: *** [out.GCC4.RELEASE/torqueDemo.bin] Error 1
make: *** [default] Error 2

Other info:
gcc version 4.1.2
xubuntu 7.04, Feisty Fawn

Any ideas?

Thanks in advance!

#1
07/24/2007 (7:11 pm)
Have you added .cc files to the targets.torque.mk file, so compiler knows about it?
#2
07/25/2007 (2:05 pm)
I feel stupid now, but your right.

It compiles now.

Thanks :-)