Esri / cityengine-sdk

CityEngine is a 3D city modeling software for urban design, visual effects, and VR/AR production. With its C++ SDK you can create plugins and standalone apps capable to execute CityEngine CGA procedural modeling rules.
https://esri.github.io/cityengine/cityenginesdk
Apache License 2.0
204 stars 64 forks source link

failed to load or register extensions #2

Closed qiuyue114 closed 10 years ago

qiuyue114 commented 10 years ago

hello, The installation worked, I do have problems when running the 'prt4cmd' example. Error occares When Running at "prt::init(&cExtPath,1 ,(prt::LogLevel)inputArgs.mLogLevel,&flp);"

Here are the part of logs: [ 2014-Feb-13 16:47:54.911196] [info] Version: 1.0.1209 | Build Date: Tue 01/14/2014 06:55 PM | Build Config: PRT_BC_REL PRT_CC_OPT PRT_TC_VC10 | OS: win32 [2014-Feb-13 16:47:55.238797] [warning] failed to load or register an extension from E:\Software\Graphic\esri-cityengine-sdk-win64\examples\prt4cmd\src\lib\com.esri.prt.adaptors.lib, ignoring. [2014-Feb-13 16:47:55.269997] [warning] failed to load or register an extension from E:\Software\Graphic\esri-cityengine-sdk-win64\examples\prt4cmd\src\lib\com.esri.prt.codecs.lib, ignoring. [2014-Feb-13 16:47:55.285597] [warning] failed to load or register extensions from 'E:\Software\Graphic\esri-cityengine-sdk-win64\examples\prt4cmd\src\lib\VueExport.dll' due to exception: error while loading function 'registerExtensionFactories': 找不到指定的程序。 … [2014-Feb-13 16:47:55.815998] [error] FileSystemAdaptor::createStream() : unable to handle URI = 'bin/rule.cgb' [2014-Feb-13 16:47:55.815998] [error] FileSystemAdaptor::createStream() : unable to handle URI = 'bin/rule.cgb' [2014-Feb-13 16:47:55.831598] [error] FileSystemAdaptor::createStream() : unable to handle URI = 'bin/rule.cgb'

qiuyue114 commented 10 years ago

qq20140213170458

mistafunk commented 10 years ago

hi,

please post the full command you used to run prt4cmd. and please ignore the warnings about "failed to load" in the log.

qiuyue114 commented 10 years ago

Thanks for your answer!

The command line is "prt4cmd -f CityEngAdvFx".

I have use two ways to run prt4cmd.exe

1.Via Microsoft Visual Studio 2010 , it popup an error window, please check in the image below.

2.Via CMD to type in the command line, I can get the output fils but have the " unable to handle URI = 'bin/rule.cgb'"error, here is the complete Log.

========================Log Files ============================================ [2014-Feb-13 16:47:54.895596] [info] ESRI Procedural Runtime [2014-Feb-13 16:47:54.911196] [info] Version: 1.0.1209 | Build Date: Tue 01/14/2014 06:55 PM | Build Config: PRT_BC_REL PRT_CC_OPT PRT_TC_VC10 | OS: win32 [2014-Feb-13 16:47:55.238797] [warning] failed to load or register an extension from E:\Software\Graphic\esri-cityengine-sdk-win64\examples\prt4cmd\src\lib\com.esri.prt.adaptors.lib, ignoring. [2014-Feb-13 16:47:55.269997] [warning] failed to load or register an extension from E:\Software\Graphic\esri-cityengine-sdk-win64\examples\prt4cmd\src\lib\com.esri.prt.codecs.lib, ignoring. [2014-Feb-13 16:47:55.285597] [warning] failed to load or register extensions from 'E:\Software\Graphic\esri-cityengine-sdk-win64\examples\prt4cmd\src\lib\VueExport.dll' due to exception: error while loading function 'registerExtensionFactories': 找不到指定的程序。

[2014-Feb-13 16:47:55.301197] [info] Available Extensions: [2014-Feb-13 16:47:55.316797] [info] com.esri.prt.adaptors.FileSystemAdaptor (1.0) Resolves URIs on the file system. [2014-Feb-13 16:47:55.332397] [info] com.esri.prt.adaptors.SevenZipAdaptor (2.0) Resolves URIs inside 7ZIP archives. [2014-Feb-13 16:47:55.332397] [info] com.esri.prt.adaptors.ZipFileAdaptor (1.0) Resolves URIs inside ZIP archives. [2014-Feb-13 16:47:55.332397] [info] com.esri.prt.codecs.ACE2Decoder (1.0) Reads ACE2 images into textures [2014-Feb-13 16:47:55.347997] [info] com.esri.prt.codecs.ASCDecoder (1.0) Reads Arc/Info ASCII Grid images into textures [2014-Feb-13 16:47:55.347997] [info] com.esri.prt.codecs.BINDecoder (1.0) Reads NOAA NGS Geoid Height Grids images into textures [2014-Feb-13 16:47:55.347997] [info] com.esri.prt.codecs.BMPDecoder (1.0) Reads MS Windows Device Independent Bitmap images into textures [2014-Feb-13 16:47:55.363597] [info] com.esri.prt.codecs.BTDecoder (1.0) Reads VTP .bt (Binary Terrain) 1.3 Format images into textures [2014-Feb-13 16:47:55.363597] [info] com.esri.prt.codecs.ColladaDecoder (1.0) Decodes geometry in COLLADA DAE format. [2014-Feb-13 16:47:55.379197] [info] com.esri.prt.codecs.ColladaEncoder (1.0) Encodes geometry into the Khronos COLLADA format. [2014-Feb-13 16:47:55.379197] [info] com.esri.prt.codecs.DATDecoder (1.0) Reads ZMap Plus Grid images into textures [2014-Feb-13 16:47:55.379197] [info] com.esri.prt.codecs.DDFDecoder (1.0) Reads SDTS Raster images into textures [2014-Feb-13 16:47:55.394797] [info] com.esri.prt.codecs.DEMDecoder (1.0) Reads USGS Optional ASCII DEM (and CDED) images into textures [2014-Feb-13 16:47:55.394797] [info] com.esri.prt.codecs.E00Decoder (1.0) Reads Arc/Info Export E00 GRID images into textures [2014-Feb-13 16:47:55.410397] [info] com.esri.prt.codecs.FBXEncoder (1.0) Encodes geometry into the Autodesk Filmbox (FBX) format. [2014-Feb-13 16:47:55.410397] [info] com.esri.prt.codecs.GENDecoder (1.0) Reads ARC Digitized Raster Graphics images into textures [2014-Feb-13 16:47:55.410397] [info] com.esri.prt.codecs.GFFDecoder (1.0) Reads Ground-based SAR Applications Testbed File Format (.gff) images into textures [2014-Feb-13 16:47:55.425997] [info] com.esri.prt.codecs.GIFDecoder (1.0) Reads Graphics Interchange Format (.gif) images into textures [2014-Feb-13 16:47:55.441597] [info] com.esri.prt.codecs.GRBDecoder (1.0) Reads GRIdded Binary (.grb) images into textures [2014-Feb-13 16:47:55.441597] [info] com.esri.prt.codecs.GRCDecoder (1.0) Reads Northwood Classified Grid Format .grc/.tab images into textures [2014-Feb-13 16:47:55.457197] [info] com.esri.prt.codecs.GRDDecoder (1.0) Reads Golden Software ASCII Grid (.grd) images into textures [2014-Feb-13 16:47:55.457197] [info] com.esri.prt.codecs.GSBDecoder (1.0) Reads NTv2 Datum Grid Shift images into textures [2014-Feb-13 16:47:55.472797] [info] com.esri.prt.codecs.GTXDecoder (1.0) Reads NOAA Vertical Datum .GTX images into textures [2014-Feb-13 16:47:55.472797] [info] com.esri.prt.codecs.HDRDecoder (1.0) Reads Snow Data Assimilation System images into textures [2014-Feb-13 16:47:55.488397] [info] com.esri.prt.codecs.HF2Decoder (1.0) Reads HF2/HFZ heightfield raster images into textures [2014-Feb-13 16:47:55.488397] [info] com.esri.prt.codecs.HGTDecoder (1.0) Reads SRTMHGT File Format images into textures [2014-Feb-13 16:47:55.488397] [info] com.esri.prt.codecs.IMGDecoder (1.0) Reads Erdas Imagine Images (.img) images into textures [2014-Feb-13 16:47:55.503997] [info] com.esri.prt.codecs.JPGDecoder (1.0) Reads JPEG JFIF images into textures [2014-Feb-13 16:47:55.503997] [info] com.esri.prt.codecs.JPGEncoder (1.0) Encodes images and textures into the JPEG format. [2014-Feb-13 16:47:55.503997] [info] com.esri.prt.codecs.LCPDecoder (1.0) Reads FARSITE v.4 Landscape File (.lcp) images into textures [2014-Feb-13 16:47:55.519597] [info] com.esri.prt.codecs.MEMDecoder (1.0) Reads Japanese DEM (.mem) images into textures [2014-Feb-13 16:47:55.519597] [info] com.esri.prt.codecs.MPRDecoder (1.0) Reads ILWIS Raster Map images into textures [2014-Feb-13 16:47:55.535197] [info] com.esri.prt.codecs.MTLDecoder (1.0) Reads materials in Wavefront MTL format. [2014-Feb-13 16:47:55.535197] [info] com.esri.prt.codecs.MTLEncoder (1.0) Converts materials into Wavefront MTL format. [2014-Feb-13 16:47:55.535197] [info] com.esri.prt.codecs.MultipatchEncoder (1.0) Encodes geometry into the Esri MultiPatch format (revision 2012-02-17). [2014-Feb-13 16:47:55.550797] [info] com.esri.prt.codecs.NTFDecoder (1.0) Reads National Imagery Transmission Format images into textures [2014-Feb-13 16:47:55.566397] [info] com.esri.prt.codecs.OBJDecoder (1.0) Decodes geometry from the Wavefront OBJ format. [2014-Feb-13 16:47:55.566397] [info] com.esri.prt.codecs.OBJEncoder (1.0) Encodes geometry into the Wavefront OBJ format. [2014-Feb-13 16:47:55.566397] [info] com.esri.prt.codecs.PIXDecoder (1.0) Reads PCIDSK Database File images into textures [2014-Feb-13 16:47:55.581997] [info] com.esri.prt.codecs.PNGDecoder (1.0) Reads Portable Network Graphics images into textures [2014-Feb-13 16:47:55.581997] [info] com.esri.prt.codecs.PNGEncoder (1.0) Encodes images and textures into the PNG format. [2014-Feb-13 16:47:55.581997] [info] com.esri.prt.codecs.PNMDecoder (1.0) Reads Portable Pixmap Format (netpbm) images into textures [2014-Feb-13 16:47:55.597597] [info] com.esri.prt.codecs.RDADecoder (1.0) Reads R Object Data Store images into textures [2014-Feb-13 16:47:55.597597] [info] com.esri.prt.codecs.RSTDecoder (1.0) Reads Idrisi Raster A.1 images into textures [2014-Feb-13 16:47:55.613197] [info] com.esri.prt.codecs.RSWDecoder (1.0) Reads Raster Matrix Format images into textures [2014-Feb-13 16:47:55.613197] [info] com.esri.prt.codecs.RenderManEncoder (1.0) Encodes geometry to Pixar RenderMan. [2014-Feb-13 16:47:55.613197] [info] com.esri.prt.codecs.SDATDecoder (1.0) Reads SAGA GIS Binary Grid (.sdat) images into textures [2014-Feb-13 16:47:55.628798] [info] com.esri.prt.codecs.ShapeBufferDecoder (1.0) Reads Esri shape buffer geometry (only extended MultiPatch buffer). [2014-Feb-13 16:47:55.628798] [info] com.esri.prt.codecs.TIFDecoder (1.0) Reads GeoTIFF images into textures [2014-Feb-13 16:47:55.644398] [info] com.esri.prt.codecs.VOBEncoder (1.0) Encodes geometry into the E-On Software Vue VOB format. [2014-Feb-13 16:47:55.644398] [info] com.esri.prt.codecs.VRTDecoder (1.0) Reads Virtual Raster images into textures [2014-Feb-13 16:47:55.659998] [info] com.esri.prt.codecs.WebSceneEncoder (1.0) Exports a scene into the Esri WebScene format. [2014-Feb-13 16:47:55.659998] [info] com.esri.prt.codecs.WebSceneObjectEncoder (1.0) Encodes geometry into Esri WebScene Objects. [2014-Feb-13 16:47:55.675598] [info] com.esri.prt.codecs.XPMDecoder (1.0) Reads X11 PixMap Format images into textures [2014-Feb-13 16:47:55.675598] [info] com.esri.prt.codecs.XYZDecoder (1.0) Reads ASCII Gridded XYZ images into textures [2014-Feb-13 16:47:55.691198] [info] com.esri.prt.core.AttributeEvalEncoder (1.0) Sets the values of (evaluated) shape attributes. [2014-Feb-13 16:47:55.691198] [info] com.esri.prt.core.CGAErrorEncoder (1.0) Handles errors encountered during CGA execution. [2014-Feb-13 16:47:55.691198] [info] com.esri.prt.core.CGAPrintEncoder (1.0) Handles the output of the CGA print statement. [2014-Feb-13 16:47:55.706798] [info] com.esri.prt.core.CGAReportEncoder (1.0) Handles report output generated by CGA. [2014-Feb-13 16:47:55.706798] [info] com.esri.prt.core.CGBDecoder (1.0) CGB Byte Stream Reader [2014-Feb-13 16:47:55.722398] [info] com.esri.prt.core.MemoryAdaptor (1.0) Reads data in memory into a stream for decoding. [2014-Feb-13 16:47:55.722398] [info] com.esri.prt.core.OcclusionEncoder (1.0) Encodes a shape tree into the OcclusionSet for inter-occlusion. [2014-Feb-13 16:47:55.722398] [info] com.esri.prt.core.RawTextureDecoder (1.0) Reads raw (uncompressed) images into textures. [2014-Feb-13 16:47:55.815998] [error] FileSystemAdaptor::createStream() : unable to handle URI = 'bin/rule.cgb' [2014-Feb-13 16:47:55.815998] [error] FileSystemAdaptor::createStream() : unable to handle URI = 'bin/rule.cgb' [2014-Feb-13 16:47:55.831598] [error] FileSystemAdaptor::createStream() : unable to handle URI = 'bin/rule.cgb' ========================Log Files End========================================

qiuyue114 commented 10 years ago

3416b855

mistafunk commented 10 years ago

hi

"prt4cmd -f CityEngAdvFx" is not a complete command. have a look at the example in the section "Generate a building with the included example rule package" in the readme.md.

about the runtime error screenshot: this is probably an unhandled exception in the prt4cmd example code because of the wrong arguments. you could attach a debugger and looks where its coming from...

qiuyue114 commented 10 years ago

Thank you very very much for your reply.:)

I've tried the example and got the output successfully!

I thought it would become a visual interface....Sorry its my misunderstanding.

Then I will keep trying, thank you for your help.:)

liukaisd commented 10 years ago

Hi, I have got the same problem. Could you tell me how to solve it? Thank you very much!