Game Development Community

why are there absolute paths in Torque 3D's source code?

by Peter Mowry · in Torque 3D Professional · 05/18/2009 (5:44 pm) · 3 replies

Here's an example:

Visual Studio 2005 errors:
4>c1 : fatal error C1083: Cannot open source file: 'c:\torque\torque 3d 2009 beta 1\engine\lib\lungif\dgif_lib.c': No such file or directory
3>c1 : fatal error C1083: Cannot open source file: 'c:\torque\torque 3d 2009 beta 1\engine\lib\ljpeg\jcapimin.c': No such file or directory

The .vcproj files has absolute paths, so if you move your root folder's path, then it breaks it. I don't want to sound very negative, but I think this is like a basic compiler setup thing? You want relative paths not absolute (hard-coded) paths...


#1
05/18/2009 (6:06 pm)
I noticed that too and it threw me off. Definatly something that should go away.
#2
05/18/2009 (6:17 pm)
That's odd, what happens if you use the "YourProjectFolder/generateProjects.bat" to recreate the project files? The paths are all relative here...

<File
RelativePath="../../../../../Engine/lib/ljpeg/jcapimin.c">
</File>
#3
05/18/2009 (7:12 pm)
Oh, I never touched the .bat files. I just opened (My Projects\[name]\buildFiles\VisualStudio 2005\[name].sln)...

I ended up just doing a find/replace inside each vcproj file btw:
1) [my path root]/
1) ../../../../../
2) [my path root]\
2) ../../../../../