CG ERROR: bad argument: "-profileopts dcls"

Problems building or running the engine, queries about how to use features etc.
putujici_jack
Gnoblar
Posts: 6
Joined: Tue Jan 18, 2005 9:04 pm

CG ERROR: bad argument: "-profileopts dcls"

Post by putujici_jack »

Hi,
I've tried to recompile whole ogre, in order resolve my previous problem
(see http://www.ogre3d.org/phpBB2/viewtopic.php?t=7493)

But after recompile I can't even run any demos (Debug nor Release), getting this exception:

-----------------------------------
Details:
-----------------------------------
Error #: 9
Function: CgProgram::loadFromSource
Description: Unable to compile Cg program Ogre/HardwareSkinningOneWeight: CG ERROR : The compile returned an error.
cgc: bad argument: "-profileopts dcls"
(0) : fatal error C9999: bad arguments

.
File: e:\work\ogrenew\PlugIns\CgProgramManager\src\OgreCgProgramManagerDll.cpp
Line: 60

When I compiled the engine for the first time (two days ago) everything was fine. I don't know what could change after recompile.

I use XP, VC++ 6, Ogre 0.15.2

Any one has idea what could be wrong?

Thanks for any help,
PJ
putujici_jack
Gnoblar
Posts: 6
Joined: Tue Jan 18, 2005 9:04 pm

Sorry, sorry, sorry...

Post by putujici_jack »

Well, I was little confused my troubles, so I forgot to search forum for this problem.
It was due to the Cg version, I installed the stable 1.2.1 and everything seems to run well.

So I'm sorry for this new useless topic :?

PJ
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 67

Post by sinbad »

This is a bug in Cg 1.3 when using vs_1_1, and I raised it with nVidia in October last year. They have yet to fix it - I recently downloaded a newer version from their developer area (not publicly released yet) and it still wasn't fixed, so I'm in the process of chasing them.

BTW last time I checked Cg 1.2.x had a different bug - some shader assembler is generated wrongly resulting in errors in some shaders - Fresnel being one of them. This is fixed in 1.3, but it's useless if you want to use vs_1_1!

I recommend remaining on Cg 1.1 (provided with Ogre) until a bug-free newer version of Cg becomes available.