For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

Aspect_GraphicDeviceDefinitionError

Comme le vent's picture
Forums: 

Hello
I have compiled open cascade for 64 bit and using it on a windows 7 64 bit system.
I get this exception

Aspect_GraphicDeviceDefinitionError

when calling

Device = new Graphic3d_WNTGraphicDevice();

and it appears that this exception is thrown in Graphic3d_WNTGraphicDevice::SetGraphicDriver because TKOpenGl.dll could not be found by the library loader.
But setting the variable does not fix the problem, and it doesn't help putting TKOpenGl.dll in the exe directory.
Any idea how to fix this?

Forum supervisor's picture

Dear Comme le vent,
Standard delivery contains file 'env.bat' where all necessary environment variables are defined. You may use this file to start your application.
Before you may make a short test with Draw (use for this draw.bat which calls env.bat):
draw.bat vc10 win64 Release
Meaning of the parameters you can find in 'draw.bat' file.
Besides you should correctly compile 3dparty products. See instructions at html documentation of OCCT: "Welcome to Open CASCADE Technology/Compilation of third-party products used for OCCT/Recommendations for compilation".
If it ran correctly you may reuse this approach for your application.
Regards

Comme le vent's picture

Thanks for the response.
It was indeed a 3rd party lib: I found that there was a dll missing, not TKOpenGl.dll, but ftgl_dynamic_MTD.dll. It compiled with errors i didn't see the first time so i thought the dll was built.
for anyone having any errors with ftgl: use FTGlyph.h from the ftgl directory, not the freetype directory.

thanks & bye

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.