Game Development Community

Getting Started Problem - First Time Compile

by Paul Thomas · in Torque Game Engine · 08/20/2005 (5:25 am) · 7 replies

Setting up to compile Torque for the first time.
Using eclipse 3.0.2, msys 1.0.9, MinGW gcc 3.2.3

H:\Torque>make -f mk\configure.mk OS=WIN32 COMPILER=GCC3.4+ BUILD=RELEASE

Current Configuration: this config is VALID
OS: WIN32
COMPILER: GCC3.4+
BUILD: RELEASE
DIR.OBJ: out

...works fine, but when I try and compile...

>make
../mk/conf.common.mk:30: warning: overriding commands for target 'out.GCC3.4+.RELEASE/ljpeg'
targets.ljpeg.mk:62: warning: ignoring old commands for target 'out.GCC3.4+.RELEASE/ljpeg'
../mk/conf.common.mk:30: warning: overriding commands for target 'out.GCC3.4+.RELEASE/lpng'
targets.lpng.mk:30: warning: ignoring old commands for target 'out.GCC3.4+.RELEASE/lpng'
../mk/conf.common.mk:30: warning: overriding commands for target 'out.GCC3.4+.RELEASE/lungif'
targets.lungif.mk:18: warning: ignoring old commands for target 'out.GCC3.4+.RELEASE/lungif'
../mk/conf.common.mk:30: warning: overriding commands for target 'out.GCC3.4+.RELEASE/opengl2d3d'
targets.opengl2d3d.mk:39: warning: ignoring old commands for target 'out.GCC3.4+.RELEASE/opengl2d3d'
../mk/conf.common.mk:30: warning: overriding commands for target 'out.GCC3.4+.RELEASE/zlib'
targets.zlib.mk:27: warning: ignoring old commands for target 'out.GCC3.4+.RELEASE/zlib'
--> Compiling lungif/gifalloc.c
/bin/sh.exe: -I.: command not found
--> Compiling lungif/gif_err.c
/bin/sh.exe: -I.: command not found
...
...
"command not found" repeated for each source file
--> Compiling opengl2d3d/glu2d3d.cc
/bin/sh.exe: -Wno-invalid-offsetof: command not found
--> Compiling opengl2d3d/opengl2d3d.cc
/bin/sh.exe: -Wno-invalid-offsetof: command not found
make[1]: Circular out.GCC3.4+.RELEASE/lpng <- out.GCC3.4+.RELEASE/lpng dependency dropped.
make[1]: Circular out.GCC3.4+.RELEASE/ljpeg <- out.GCC3.4+.RELEASE/ljpeg dependency dropped.
make[1]: Circular out.GCC3.4+.RELEASE/ljpeg <- out.GCC3.4+.RELEASE/lpng dependency dropped.
make[1]: Circular out.GCC3.4+.RELEASE/ljpeg <- out.GCC3.4+.RELEASE/opengl2d3d dependency dropped.
make[1]: Circular out.GCC3.4+.RELEASE/zlib <- out.GCC3.4+.RELEASE/lpng dependency dropped.
make[1]: Circular out.GCC3.4+.RELEASE/zlib <- out.GCC3.4+.RELEASE/opengl2d3d dependency dropped.
make[1]: Circular out.GCC3.4+.RELEASE/zlib <- out.GCC3.4+.RELEASE/zlib dependency dropped.
make[1]: Circular dirlist <- out.GCC3.4+.RELEASE/lpng dependency dropped.
make[1]: Circular out.GCC3.4+.RELEASE/lungif <- out.GCC3.4+.RELEASE/lpng dependency dropped.
make[1]: Circular out.GCC3.4+.RELEASE/lungif <- out.GCC3.4+.RELEASE/lungif dependency dropped.
make[1]: Circular out.GCC3.4+.RELEASE/lungif <- out.GCC3.4+.RELEASE/opengl2d3d dependency dropped.
make[1]: Circular dirlist <- out.GCC3.4+.RELEASE/opengl2d3d dependency dropped.
make[1]: out.GCC3.4+.RELEASE/glu2d3d: Command not found
make[1]: *** [out.GCC3.4+.RELEASE/glu2d3d] Error 127
make: *** [default] Error 2

Anyone have a clue about these hieroglyphics?

This is supposed to be a "Compile Torque out-of-the-box" exercise,
so hopefully the root of the problem is singular in nature.

What command is "not found"?
Do I need to set some environment variables?

Any help would be appreciated.

Thanks.

About the author

Recent Threads


#1
08/20/2005 (5:34 am)
Additional info:

Compile errors in the original post specified GCC3.4+

If I change this to GCC3.4, then the following errors are generated:

H:\Torque>make
Makefile:17: ../mk/conf.GCC3.4.WIN32.mk: No such file or directory
Makefile:18: ../mk/conf.GCC3.4.mk: No such file or directory
../mk/conf.common.mk:30: warning: overriding commands for target 'out.GCC3.4.RELEASE/ljpeg'
targets.ljpeg.mk:62: warning: ignoring old commands for target 'out.GCC3.4.RELEASE/ljpeg'
../mk/conf.common.mk:30: warning: overriding commands for target 'out.GCC3.4.RELEASE/lpng'
targets.lpng.mk:30: warning: ignoring old commands for target 'out.GCC3.4.RELEASE/lpng'
../mk/conf.common.mk:30: warning: overriding commands for target 'out.GCC3.4.RELEASE/lungif'
targets.lungif.mk:18: warning: ignoring old commands for target 'out.GCC3.4.RELEASE/lungif'
../mk/conf.common.mk:30: warning: overriding commands for target 'out.GCC3.4.RELEASE/opengl2d3d'
targets.opengl2d3d.mk:39: warning: ignoring old commands for target 'out.GCC3.4.RELEASE/opengl2d3d'
../mk/conf.common.mk:30: warning: overriding commands for target 'out.GCC3.4.RELEASE/zlib'
targets.zlib.mk:27: warning: ignoring old commands for target 'out.GCC3.4.RELEASE/zlib'
make[1]: *** No rule to make target '../mk/conf.GCC3.4.mk'. Stop.
make: *** [default] Error 2
#2
08/20/2005 (2:58 pm)
I bet it's the plus messing up the commands it's generating.

Are you choosing a valid option from the list of supported compilers?
#3
08/21/2005 (6:43 pm)
I noticed you installed to the H: drive. Did you install the TBE out-of-the-box solution? This assumes you always install to C:\torque\sdk for which TBE attempts to write some make files which fix up Eclipse to work correctly.

Try my tute and see if it works for you - don't reinstall TBE obviously you would mainly be concerned with the .mk files attached.

In fact try a test install using my tut as is, then when that works - reverse engineer your install of GCC3.4 fixing up files that are different from GCC3 (use win merge or something)

Grab the tut and files here...it shows you how to install Torque and Eclipse anywhere.
www.drewfx.com/Torque/TorqueIDE_HelpVersion2.zip
#4
08/21/2005 (9:32 pm)
Tute works great, thank you Andy.
Much appreciated!

Now the fun really begins...

The "Rebuild Project" process reached the 49% mark, with a variety of warnings along the way, then....

make[1]: *** No rule to make target 'out.GCC3.RELEASE/gui/guiConsoleEditCtrl.obj', needed by 'out.GCC3.RELEASE/torqueDemo.exe'.

... and 30 more just like it for building torqueDemo.exe

Is there something special required to build the GUI?
Something I failed to do?

--> Compiling texture2bm8/main.cc
texture2bm8/main.cc:13:32: sim/frameAllocator.h: No such file or directory
texture2bm8/main.cc: In function 'bool initLibraries()':
texture2bm8/main.cc:44: 'FrameAllocator' undeclared (first use this function)
texture2bm8/main.cc:44: (Each undeclared identifier is reported only once for
each function it appears in.)
texture2bm8/main.cc:44: parse error before '::' token
texture2bm8/main.cc: In function 'void shutdownLibraries()':
texture2bm8/main.cc:71: parse error before '::' token
make[1]: *** [out.GCC3.RELEASE/texture2bm8/main.obj] Error 1
--> Compiling texture2bm8/svector.cc
--> Assembling texture2bm8/vector.asm
make[1]: Target 'all' not remade because of errors.
make: *** [tools] Error 2
make: Target 'all' not remade because of errors.

...the compile came to a halt.

For some reason, "sim/frameAllocator.h" is missing.
Did I delete this file by mistake? If so, do I restore it by running WinCsv again?

Thanks.
Any help is most appreciated.
#5
08/21/2005 (11:19 pm)
Does this happen when you have installed Torque to the H: Drive? I'm think the make target (target.texture2bm8.mk) might be having difficulty finding frameAllocator.h but looking into the texture2bm8 make file doesn't really show why.

However this is all irrelevant. If sim/frameAllocator.h is missing (use Windows Explorer to double check) then you need to put it back with a fresh install.

Did you try installing Torque to the default C:\Torque\SDK folder then install TBE after that? Maybe try that to troubleshoot this problem. If the default install doesn't fail as you have mentioned above then your custom install might be to blame.

Run WinMerge on the default install of Torque and on the custom install of Torque to see what's different.
#6
09/01/2005 (9:01 am)
I'm having similar problems as the original poster. Using both msys/mingw and cygwin with mingw. This is when I try to compile HEAD
The outpout of my
make -f mk/configure.mk
is

Quote:
Current Configuration: this config is VALID
OS: WIN32
COMPILER: GCC3.4+
BUILD: DEBUG
DIR.OBJ: out

Note: if you are using GCC 3.4 or later, your compiler configuration
should be set to GCC3.4+

To change the current configuration type:

make -f mk/configure.mk {arguments, ...}

required arguments:
OS={WIN32 BEOS LINUX OpenBSD FreeBSD Solaris}
COMPILER={CW6 VC6 GCC2 GCC3 GCC3.4+}
BUILD={DEBUG RELEASE}

optional arguments:
DIR.OBJ={path to store intermediate obj files}

Note: all arguments are case sensitive.
[quote]

The output of the subsequent make is
[quote]
../mk/conf.common.mk:30: warning: overriding commands for target 'out.GCC3.4+.DEBUG/ljpeg'
targets.ljpeg.mk:62: warning: ignoring old commands for target 'out.GCC3.4+.DEBUG/ljpeg'
../mk/conf.common.mk:30: warning: overriding commands for target 'out.GCC3.4+.DEBUG/lpng'
targets.lpng.mk:30: warning: ignoring old commands for target 'out.GCC3.4+.DEBUG/lpng'
../mk/conf.common.mk:30: warning: overriding commands for target 'out.GCC3.4+.DEBUG/lungif'
targets.lungif.mk:18: warning: ignoring old commands for target 'out.GCC3.4+.DEBUG/lungif'
../mk/conf.common.mk:30: warning: overriding commands for target 'out.GCC3.4+.DEBUG/opengl2d3d'
targets.opengl2d3d.mk:39: warning: ignoring old commands for target 'out.GCC3.4+.DEBUG/opengl2d3d'
../mk/conf.common.mk:30: warning: overriding commands for target 'out.GCC3.4+.DEBUG/zlib'
targets.zlib.mk:27: warning: ignoring old commands for target 'out.GCC3.4+.DEBUG/zlib'
--> Compiling lungif/gifalloc.c
/bin/sh: -I.: command not found
--> Compiling lungif/gif_err.c
/bin/sh: -I.: command not found
--> Compiling lungif/egif_lib.c
/bin/sh: -I.: command not found

/bin/sh: -I.: command not found
--> Compiling opengl2d3d/glu2d3d.cc
/bin/sh: -Wno-invalid-offsetof: command not found
--> Compiling opengl2d3d/opengl2d3d.cc
/bin/sh: -Wno-invalid-offsetof: command not found
make[1]: Circular out.GCC3.4+.DEBUG/lpng <- out.GCC3.4+.DEBUG/lpng dependency dropped.
make[1]: Circular out.GCC3.4+.DEBUG/ljpeg <- out.GCC3.4+.DEBUG/ljpeg dependency dropped.
make[1]: Circular out.GCC3.4+.DEBUG/ljpeg <- out.GCC3.4+.DEBUG/lpng dependency dropped.
make[1]: Circular out.GCC3.4+.DEBUG/ljpeg <- out.GCC3.4+.DEBUG/opengl2d3d dependency dropped.
make[1]: Circular out.GCC3.4+.DEBUG/zlib <- out.GCC3.4+.DEBUG/lpng dependency dropped.
make[1]: Circular out.GCC3.4+.DEBUG/zlib <- out.GCC3.4+.DEBUG/opengl2d3d dependency dropped.
make[1]: Circular out.GCC3.4+.DEBUG/zlib <- out.GCC3.4+.DEBUG/zlib dependency dropped.
make[1]: Circular dirlist <- out.GCC3.4+.DEBUG/lpng dependency dropped.
make[1]: Circular out.GCC3.4+.DEBUG/lungif <- out.GCC3.4+.DEBUG/lpng dependency dropped.
make[1]: Circular out.GCC3.4+.DEBUG/lungif <- out.GCC3.4+.DEBUG/lungif dependency dropped.
make[1]: Circular out.GCC3.4+.DEBUG/lungif <- out.GCC3.4+.DEBUG/opengl2d3d dependency dropped.
make[1]: Circular dirlist <- out.GCC3.4+.DEBUG/opengl2d3d dependency dropped.
make[1]: out.GCC3.4+.DEBUG/glu2d3d: Command not found
make[1]: *** [out.GCC3.4+.DEBUG/glu2d3d] Error 127
make: *** [default] Error 2

However, setting COMPILER=GCC3 will remove these errors, but the compile will fail on the common GCC3.4 errors, in resManager.h
#7
09/01/2005 (9:59 am)
Actually, I solved my problem simply by downgrading to gcc3.3. I've learned (for the final time, I hope) not to hope to use gcc3.4 with Torque.