Trying to compile
by Michael Mullen · in Torque Game Engine · 01/01/2004 (5:09 am) · 2 replies
Hi All,
I've just purchased and I am excited to get things compiled and take a look at some examples. I am, however, having a little problem getting started.
I'm using visual studio .net (tried both released versions) and I am getting the following error:
../engine\audio\vorbisStream.h(26) : fatal error C1083: Cannot open include file: 'vorbis/codec.h': No such file or directory
At first I thought, no problem, but the options I would use to add the appropriate include directories to the project (in the properties, usually under c++->preprocessor directives) just isn't there in the "Torque Lib" project I am compiling.
Short of recreating the project (which would mess with my ability to update from cvs) I'm sort of stumped. I'm wondering if others have had this problem and what suggestions you may have.
Cheers,
Mike
I've just purchased and I am excited to get things compiled and take a look at some examples. I am, however, having a little problem getting started.
I'm using visual studio .net (tried both released versions) and I am getting the following error:
../engine\audio\vorbisStream.h(26) : fatal error C1083: Cannot open include file: 'vorbis/codec.h': No such file or directory
At first I thought, no problem, but the options I would use to add the appropriate include directories to the project (in the properties, usually under c++->preprocessor directives) just isn't there in the "Torque Lib" project I am compiling.
Short of recreating the project (which would mess with my ability to update from cvs) I'm sort of stumped. I'm wondering if others have had this problem and what suggestions you may have.
Cheers,
Mike
#2
It seems regardless of registering the .cc extention as a c++ file the .net environment does not add the c/c++ configuration 'tab' to the project properties unless .cpp files exist in the project. Adding *any* .cpp file forces this to show up. For now I have added an empty stub.cpp file to get around this.
Does anybody know if/how to override this *feature* of visual c++ .net?
(pointy-clicky spoiled) Mike.
01/01/2004 (2:50 pm)
Upon further investigation...It seems regardless of registering the .cc extention as a c++ file the .net environment does not add the c/c++ configuration 'tab' to the project properties unless .cpp files exist in the project. Adding *any* .cpp file forces this to show up. For now I have added an empty stub.cpp file to get around this.
Does anybody know if/how to override this *feature* of visual c++ .net?
(pointy-clicky spoiled) Mike.
Torque Owner Michael Mullen
Within the xml vcproj file each configuration (release, debug, etc) has its own section which contains all the settings for the project.
I opened the "Torque Lib.vcproj" file in notepad and edited the AdditionalIncludeDirectories attribute of the appropriate "Tool" tag (the one with the Name="VCCLCompilerTool") to add:
"../lib/vorbis/include".
This has fixed the compile problem, however, the lingering question remains: Am I missing something or wouldn't the same problem be experienced by all .net users? If so, what is the process for reporting bugs? I'll look around some more but any advice would be appreciated.
Thanks in advance,
Mike.