a148e300-5740-11d1-a904-080036aaa103.Location

Hi,

I read your description from Roman (http://opencascade.blogspot.com/2008/12/adding-colors-and-names-to-your_...) and tried it by my self. But I have a problem, that is already disused in the OCC forum. But I don't understand how I should solve it. I work with Linux and I get the error "could not find the resource:a148e300-5740-11d1-a904-080036aaa103.Location" from this Line:
Handle(TDocStd_Application) anApp = XDEApp::GetApplication();

I read a method in this thread: http://www.opencascade.org/org/forum/thread_15610/

But I don't understand what this means. I have no one of this env vars. I work with qt creator and set the lib-search-path by my self. Furthermore, in the thread they are talking about paths to the plug-ins. But I have no idea what does it means.

Thank and regards,
Franz

Franz Engel's picture

In between I tied it also with the setting of the envs:
#!/bin/bash

CASROOT=/usr/share/opencascade/6.3.0

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/opencas

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/

export CSF_MDTVFontDirectory=$CASROOT/src/FontMFT/

export CSF_MDTVTexturesDirectory=$CASROOT/src/Textures/

export CSF_UnitsDefinition=$CASROOT/src/UnitsAPI/Units.dat

export CSF_UnitsLexicon=$CASROOT/src/UnitsAPI/Lexi_Expr.dat

export CSF_GraphicShr=/usr/lib/libTKOpenGl.so

export CSF_StandardDefaults=$CASROOT/src/StdResource

export CSF_MDTVFontDirectory=$CASROOT/src/FontMFT

export CSF_LANGUAGE=us

export MMGT_CLEAR=1

export CSF_SHMessage=$CASROOT/src/SHMessage

export CSF_XSMessage=$CASROOT/src/XSMessage

export CSF_MDTVTexturesDirectory=$CASROOT/src/Textures

export CSF_StandardDefaults=$CASROOT/src/StdResource

export CSF_PluginDefaults=$CASROOT/src/XCAFResources

export CSF_XCAFDefaults=$CASROOT/src/XCAFResources

export CSF_UnitsLexicon=$CASROOT/src/UnitsAPI/Lexi_Expr.dat

export CSF_UnitsDefinition=$CASROOT/src/UnitsAPI/Units.dat

export CSF_EXCEPTION_PROMPT=1

export CSF_IGESDefaults=$CASROOT/src/XSTEPResource

export CSF_STEPDefaults=$CASROOT/src/XSTEPResource

But the result is still the same.