RTS pack doesn't compile out-of-the-box on vc6
by CEMA, Monash University · in RTS Starter Kit · 01/26/2006 (7:34 pm) · 12 replies
When I hit compile for the "Torque Demo" project (rts.dsp), vc6 says:
Linking...
LINK : fatal error LNK1104: cannot open file "ljpeg_DEBUG.lib"
This is because there are no project dependencies set for rts.dsp in the .dsw
(meaning that libjpeg doesn't get built.) This seems weird, because they are
present in the (non-RTS) TGE workspace.
To fix this I just copied the dependencies over from the TGE workspace.
Next problem, when building project: opengl2d3d:
--------------------Configuration: opengl2d3d - Win32 Debug--------------------
Compiling...
OpenGL2D3D.cc
Linking...
LINK : fatal error LNK1104: cannot open file "d3dx.lib"
Error executing link.exe.
d3dx.lib is not in lib/directx8. I don't know if it should be or not, but
putting it (and ddraw.lib) there fixes the problem. It was suggested on another
thread that removing these .lib files from the linker settings would do the
trick, but that just created more link errors which I cannot be bothered to
recursively figure out.
These are minor, fixable things, but the RTS pack is selling itself short by not
working out of the box. And I couldn't see a bug report for them. My RTS pack
is whatever version was going when I downloaded it on 13th Jan. 06.
HTH,
Nicholas Sandow
Linking...
LINK : fatal error LNK1104: cannot open file "ljpeg_DEBUG.lib"
This is because there are no project dependencies set for rts.dsp in the .dsw
(meaning that libjpeg doesn't get built.) This seems weird, because they are
present in the (non-RTS) TGE workspace.
To fix this I just copied the dependencies over from the TGE workspace.
Next problem, when building project: opengl2d3d:
--------------------Configuration: opengl2d3d - Win32 Debug--------------------
Compiling...
OpenGL2D3D.cc
Linking...
LINK : fatal error LNK1104: cannot open file "d3dx.lib"
Error executing link.exe.
d3dx.lib is not in lib/directx8. I don't know if it should be or not, but
putting it (and ddraw.lib) there fixes the problem. It was suggested on another
thread that removing these .lib files from the linker settings would do the
trick, but that just created more link errors which I cannot be bothered to
recursively figure out.
These are minor, fixable things, but the RTS pack is selling itself short by not
working out of the box. And I couldn't see a bug report for them. My RTS pack
is whatever version was going when I downloaded it on 13th Jan. 06.
HTH,
Nicholas Sandow
#2
-Jase
01/27/2006 (4:51 am)
You need to open "RTS Full Project.dsw" and it will compile fine, without a hitch.-Jase
#3
LINK : fatal error LNK1104: cannot open file "ljpeg_DEBUG.lib"
Error executing link.exe.
01/28/2006 (6:39 pm)
I compiled using the RTS Full Project.dsw workspace and still had the link error...LINK : fatal error LNK1104: cannot open file "ljpeg_DEBUG.lib"
Error executing link.exe.
#4
I downloaded my copy just recently, about a week ago and it compiled fine on Visual C++ 6.0, and I didn't have any of the service packs installed at that time. So, it must be something subtle that is funkering up. You could also try compiling a release build, and see if that works.
-Jase
01/28/2006 (10:24 pm)
I noticed that you mentioned something about copying over dependencies. Try installing a clean version of the RTS Kit. Open RTS Full Project.dsw, do a clean, then rebuild all. The libs are included with the RTS Starter Kit. RTS SK is basically the full TGE 1.3 codebase with modifications geared towards an RTS. I downloaded my copy just recently, about a week ago and it compiled fine on Visual C++ 6.0, and I didn't have any of the service packs installed at that time. So, it must be something subtle that is funkering up. You could also try compiling a release build, and see if that works.
-Jase
#5
Thanks for the tip, but the RTS pack claims to support VC6, and a few compile errors are not enough to make me switch IDE just yet.
Jase,
I installed a clean version of the RTS kit, opened up RTS Full Project.dsw, hit 'clean', then 'build'. I still get the same problems as described above.
In fact, if I look into the file 'RTS Full Project.dsw', there are clearly no dependencies there for rts.dsp. That means that all the support libraries are never going to get built no matter how many times I hit "rebuildall". That means that either the installation procedure is messing up the .dsw, or the .dsw as distributed by GG is broken.
Anyhow, I have fixed the problems with the steps outlined in the first post. So I can compile for now. I'm just reporting the bug.
Nicholas Sandow
01/29/2006 (6:13 pm)
Cameron,Thanks for the tip, but the RTS pack claims to support VC6, and a few compile errors are not enough to make me switch IDE just yet.
Jase,
I installed a clean version of the RTS kit, opened up RTS Full Project.dsw, hit 'clean', then 'build'. I still get the same problems as described above.
In fact, if I look into the file 'RTS Full Project.dsw', there are clearly no dependencies there for rts.dsp. That means that all the support libraries are never going to get built no matter how many times I hit "rebuildall". That means that either the installation procedure is messing up the .dsw, or the .dsw as distributed by GG is broken.
Anyhow, I have fixed the problems with the steps outlined in the first post. So I can compile for now. I'm just reporting the bug.
Nicholas Sandow
#6
All I get is this.
linking...
LINK : LNK1104:
Error executing link.exe.
RTS_DEBUG.exe - 1 error(s), 0 warning(s)
This is on vc6 and no Im not blowing money buying another compiler either.
02/22/2006 (4:36 pm)
Wish I was getting something that showed what it was pissed about.All I get is this.
linking...
LINK : LNK1104:
Error executing link.exe.
RTS_DEBUG.exe - 1 error(s), 0 warning(s)
This is on vc6 and no Im not blowing money buying another compiler either.
#7
What service pack of vc6 are you running?
02/22/2006 (4:55 pm)
Interesting that the linker would say so little... The errors I got were more informative.What service pack of vc6 are you running?
#8
02/22/2006 (6:59 pm)
I've noticed this in even the TLK build. I had to go in and just change the path for the libraries and it compiled fine. By the way I'm using VS 2003 Pro.
#9
Which libraries exactly had the wrong paths and Ill check them to see if its ticked off about that?
Was it just ljpeg_DEBUG.lib?
02/22/2006 (7:15 pm)
Im guessing its sp0 aka none since when I went to the help about it showed nothing in the way of a service pack, I dont remember if I ever installed any. But I own tge of course and also the shader engine and both compile fine. Just the rts thats having problems.Which libraries exactly had the wrong paths and Ill check them to see if its ticked off about that?
Was it just ljpeg_DEBUG.lib?
#10
Im pretty sure thats whats causing this but I dont really relish filling all that stuff in.
02/23/2006 (3:52 pm)
Any particular reason that nearly EVER entry in the project settings is EMPTY for the vc6 build of rts?Im pretty sure thats whats causing this but I dont really relish filling all that stuff in.
#11
How To Tell That a Visual Studio Service Pack Is Installed It's probably easier to reinstall vc6 and the service pack than to follow those instructions actually.
No idea. I didn't seem to suffer that problem, apart from the missing dependencies problem as described above and below. Re-install the RTS kit? Did you run out of disk space or something weird? What particular setting (for example) do you think is missing?
Anyway, here are the steps I took to compile under vc6 sp6 with the RTS kit downloaded on 30th Jan 06.
Install a fresh copy of the RTS starter kit.
Open up 'RTS Full Project.dsw'.
Open the 'project dependencies' dialog for the project 'Torque Demo'. Make
sure that 'Torque Demo' depends on the following other projects: (This is the
the exact same set of dependencies found for 'Torque Demo' in the TGE. I
don't know why they aren't there in the RTS kit.)
glu2d3d
ljpeg
lpng
lungif
opengl2d3d
zlib
Now copy d3dx.lib and ddraw.lib from the TGE install location to the RTS kit
install location. You can find these in lib/directx8 under the TGE install
directory. (Copy them to the lib/directx8 directory in the RTS kit too.)
Then hit build (F7) and it should all compile.
Nick.
02/23/2006 (4:45 pm)
I would make sure you have sp6 installed to begin with:How To Tell That a Visual Studio Service Pack Is Installed It's probably easier to reinstall vc6 and the service pack than to follow those instructions actually.
Quote:Any particular reason that nearly EVER entry in the project settings is EMPTY for the vc6 build of rts?
No idea. I didn't seem to suffer that problem, apart from the missing dependencies problem as described above and below. Re-install the RTS kit? Did you run out of disk space or something weird? What particular setting (for example) do you think is missing?
Anyway, here are the steps I took to compile under vc6 sp6 with the RTS kit downloaded on 30th Jan 06.
Install a fresh copy of the RTS starter kit.
Open up 'RTS Full Project.dsw'.
Open the 'project dependencies' dialog for the project 'Torque Demo'. Make
sure that 'Torque Demo' depends on the following other projects: (This is the
the exact same set of dependencies found for 'Torque Demo' in the TGE. I
don't know why they aren't there in the RTS kit.)
glu2d3d
ljpeg
lpng
lungif
opengl2d3d
zlib
Now copy d3dx.lib and ddraw.lib from the TGE install location to the RTS kit
install location. You can find these in lib/directx8 under the TGE install
directory. (Copy them to the lib/directx8 directory in the RTS kit too.)
Then hit build (F7) and it should all compile.
Nick.
#12
But aparently they are not required as it worked like a charm after following your instructions.
Now to make the thing look as good as I have the tge engine looking and lock some of the camera angles down and hopefully get some work done.
Thanks a ton.
02/23/2006 (5:27 pm)
When you click project and settings in the shader engine or the tge engine there are fields for the temp output, and tons of other boxes that are all populated in them and not in the rts.But aparently they are not required as it worked like a charm after following your instructions.
Now to make the thing look as good as I have the tge engine looking and lock some of the camera angles down and hopefully get some work done.
Thanks a ton.
Torque 3D Owner Frogger