Game Development Community

Linux : Torque Tools Linking Error

by James Urquhart · in Torque Game Engine · 10/12/2003 (6:49 am) · 2 replies

When attempting to compile the torque tools on linux (latest HEAD), i get these linker errors :

--> Linking map2dif_DEBUG.bin
../engine/out.GCC3.DEBUG/engine_DEBUG.a(vorbisStream.obj)(.text+0x2f): In functi
on 'OggVorbisFile::_get_data()':
core/stream.h:140: undefined reference to 'ogg_sync_buffer'
../engine/out.GCC3.DEBUG/engine_DEBUG.a(vorbisStream.obj)(.text+0x74): In functi
on 'OggVorbisFile::_get_data()':
...etc...

(All related to ogg/vorbis)

Any suggestions? =)

#1
10/12/2003 (7:07 am)
Solution :

add $(LINK.LIBS.VORBIS) to LINK.LIBS.TOOLS in conf.UNIX.mk :

LINK.LIBS.TOOLS   = $(LINK.LIBS.VORBIS) -Wl,-static -Wl,-lGLU -Wl,-dy -L/usr/X11R6/lib -lSDL -lpthread -ldl # -lefence

Wow... i wonder if map2dif will play me some music when its making the .dif? =)

I also have a similar, if not the same problem when compiling the dedicated server.

Also, the build process is a bit of a mess when compiling tools / the dedicated server.

For eample, making the dedicated server THEN the tools makes tools that say :
Quote:
This is a dedicated server build. You must supply the -dedicated command line parameter.

Shouldn't the engine lib / dedicated server be build in a seperate directory (aka not OUT.GCCx.) ?
#2
10/15/2003 (4:41 pm)
Seems to affect HEAD and Release_1_2_0 branches. Worst part is i submitted updates for windows (mingw) version for the vorbis libs/headers for a similar problem but for the engine and didn't catch it there either, LOL! Actually just doublecheck and the conf.GCC2.WIN32.mk and conf.GCC3.WIN32.mk both need similar updates. Oh well! Did you submit a patch for this yet?

Btw i like the idea of separate output directories for release/debug versions.