Game Development Community

Include problem with head - codec.h

by Jason Nabors · in Torque Game Engine · 09/29/2003 (5:59 pm) · 15 replies

Hi, I got the latest HEAD from cvs and in vc7 I received the following errors. Looks like maybe a include problem, anyone got some advice on what I need to change to get this to compile?

Here is the compile errors:

------ Build started: Project: Torque Demo, Configuration: Debug Win32 ------

Compiling...
audioFunctions.cc
c:\torque\engine\audio\vorbisStream.h(26) : fatal error C1083: Cannot open include file: 'codec.h': No such file or directory
.
.
.Too much to cut and paste but there are 94 errors
.All the errors are the same just the .cc is different
.
.
.
.
creator.cc
c:\torque\engine\audio\vorbisStream.h(26) : fatal error C1083: Cannot open include file: 'codec.h': No such file or directory

Build log was saved at "file://c:\torque\engine\out.VC6.DEBUG\BuildLog.htm"
Torque Demo - 94 error(s), 0 warning(s)


---------------------- Done ----------------------

Build: 6 succeeded, 1 failed, 9 skipped

#1
09/30/2003 (6:51 am)
Do you have the ogg vorbis libs installed?
#2
09/30/2003 (7:59 am)
My bad. It's a problem in the VC7 project file. I'm working on fixing it...
#3
09/30/2003 (8:26 am)
Ok, I got it compiling under VC7.

But I'm out of CVS bandwidth! E-mailing the GG guys...
#4
09/30/2003 (2:42 pm)
Thanks Ben
#5
09/30/2003 (5:07 pm)
Checked in fix. Torque Demo should compile fine; I haven't done anything with Torque Lib though.
#6
09/30/2003 (8:44 pm)
Still not working i'll email you the errors
#7
10/05/2003 (11:05 am)
Any update on this? I'm having the same problem with a fresh HEAD download on 10/5.
#8
10/05/2003 (11:31 am)
Sounds like the include dir is not part of the project, need to add ../lib/oggvorbis/include to the additional include paths. Also keep in mind that you will need to add additional libs (ogg.lib & vorbis.lib) as well as ../lib/oggvorbis/win32 to the additional lib paths

-Ron
#9
10/05/2003 (12:00 pm)
A note on VC7/VC7.1.

If you upgrade the project file to be compatible with VC7.1 or otherwise modify it, CVS tends not to actually modify the project file when you update. So you need to make sure that CVS is really getting you a new proj file.
#10
10/05/2003 (2:09 pm)
@Rodney, I deleted/moved the Torque dir and re-downloaded head from cvs, apparently vc7 converts the project settings from a file you get from cvs and if you do an update, the file vc7 converted from wasn't changed so your settings aren't updated. I don't know for sure if thats the exact cause, but I had to just redownload the head after the change was made to get it to work.
#11
10/11/2003 (1:13 pm)
Has this problem been fixed for the Torque Lib yet?
#12
11/18/2003 (9:20 pm)
I just updated HEAD an hour ago. Its still a problem with Torque Lib.

Can anybody post a fix? I'll just apply it manually to my build. Its not fatal but the obsessive/compulsive part of me is throwing a fit. lol.

Alex
#13
11/18/2003 (10:05 pm)
Pull a diff on the project and see what I changed for the Torque Demo project, then apply it to Torque Lib. It's a simple include path fix, as I recall.
#14
11/18/2003 (10:47 pm)
Ben,

Got it to compile nicely.
Quote:
---------------------- Done ----------------------

Build: 8 succeeded, 0 failed, 8 skipped

Thanks for the info. Btw, somebody really go to update CVS with a fix on the materialList.h. Hint. Hint.

Thanks again.

Alex
#15
11/19/2003 (6:42 am)
I have a different solution, for the lib, that doesn't make it necessary for artists to have the oggvorbis dlls on their machine to run the tools. I made a patch and am submitting it.

I am having trouble testing my patch.
See this thread near bottom for my error.

www.garagegames.com/mg/forums/result.thread.php?qt=13973