How to recompile CGB

2600
2
02-21-2016 05:20 PM
ChristianShiel1
New Contributor III

I am using the sample prt4cmd from the SDK and getting this error. I am using the sample data (candler.rpk + candler.obj) provided.It is complaining that I need to recompile the CGB. How can I do this?

This is the error message:

C:\esri-cityengine-sdk-master\examples\prt4cmd\install\bin>prt4cmd -s 27000@Chris-Dev -f CityEngAdv -l 3 -g C:/esri-city

engine-sdk-master/examples/prt4cmd/install/bin/data/candler_lot.obj -p C:/esri-cityengine-sdk-master/examples/prt4cmd/in

stall/bin/data/candler.rpk -a ruleFile:string=bin/candler.01.cgb -a startRule:string=Default\$Lot -e com.esri.prt.codecs

.OBJEncoder -z baseName:string=theCandler

[2016-Feb-22 11:14:48.494413] [warning] CGB file contains warning 'Potentially problematic CGAC version 1.2 : recompilin

g with current CGA Compiler (1.5) is recommended.'

[2016-Feb-22 11:14:48.501405] [error] OBJEncoder::encode failed, exception caught: 'Unknown rule.'

[2016-Feb-22 11:14:48.504408] [error] Status code = 37 = Unknown rule.

0 Kudos
2 Replies
ChristianShiel1
New Contributor III

Ok the fix is to import the rule and "share as" and the rule is updated.

Now the problem is the error OBJEncoder::encode failed, exception caught 'unknown rule'.

0 Kudos
AbhishekRathi1
Occasional Contributor

Dear Christian,

Kindly refer the links below and try to follow. Hope it will solve your purpose.

esri-cityengine-sdk/examples/prt4cmd at master · Esri/esri-cityengine-sdk · GitHub

esri-cityengine-sdk/prt4cmd.cpp at master · Esri/esri-cityengine-sdk · GitHub

https://media.readthedocs.org/pdf/turbogears/latest/turbogears.pdf

The PDF will help you to configure and work properly.

Thanks and Regards

Abhishek Rathi

0 Kudos