How to use precompiled libs in TGE using Ming Compiler
by Entr0py · in Torque Game Engine · 12/18/2004 (11:48 pm) · 0 replies
I was told by everybody I asked that precompiled libs can only be linked using MSVC, but I found a way to do it with Ming.
Rename the lib file as_Debug.a and place it in /lib/out.GCC3.DEBUG
edit /engine/targets.torque.mk
look for:
$(PRE.LIBRARY.LIB)ljpeg$(EXT.LIB) \
$(PRE.LIBRARY.LIB)lpng$(EXT.LIB) \
$(PRE.LIBRARY.LIB)lungif$(EXT.LIB) \
$(PRE.LIBRARY.LIB)zlib$(EXT.LIB)
and just copy one of the lines and change the "ljpeg" or "lpng" etc to whatever the name of the lib you are adding. This needs to be done in two places in this file.
That should do it.
Rename the lib file as
edit /engine/targets.torque.mk
look for:
$(PRE.LIBRARY.LIB)ljpeg$(EXT.LIB) \
$(PRE.LIBRARY.LIB)lpng$(EXT.LIB) \
$(PRE.LIBRARY.LIB)lungif$(EXT.LIB) \
$(PRE.LIBRARY.LIB)zlib$(EXT.LIB)
and just copy one of the lines and change the "ljpeg" or "lpng" etc to whatever the name of the lib you are adding. This needs to be done in two places in this file.
That should do it.