Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics
 

Migration of my project to OpenCascade 6.5.3

Migration of my project to OpenCascade 6.5.3
Maxime Vallée 2012/08/24 16:13
Hi all,

Two years ago I wrote a program that uses OpenCascade 6.3.0. It was based on the 4th example AISBasic and worked fine.

Now I want to migrate it to the last OCC version (to try to improve its performance), so after having downloaded v6.5.3, I tried to link it with the new .h, .lib and .dll files.

It compiles, but it doesn't launch.

Ah ah... so maybe let's see the OCC 6.5.3 examples ?

They don't launch either.

I use the dependency walker to see if it was a dll problem.
To correct the detected issues I copy mfcsample.dll, then freeimage.dll, freeimageplus.dll, tbb.dll and tbbmalloc.dll in the bin directory but with no success.

All I've got is a message saying : "Fatal error during graphic initialization".

Am I missing something ?
Is it because I have two versions of OCC installed ? (I've already payed attention to the Path issues, ...)

Please help :)

Thanks in advance !

MV
Mark Blome 2012/08/24 18:40
Hi Maxime,

I am currently in the same situation: developing on a platform with concurrent OCC versions
installed (6.3 and 6.5.3).

You should make sure that:
- Your CSF_GraphicShr environment variable is set to the correct version of libTKOpenGL, e.g.
on my platform it points to $OCEROOT/lib/libTKOpenGl.3.0.0.dylib
- Your program is linking against the correct OCC libraries (which probably it does ...) so not the
wrong DLLs will be loaded upon program startup. But I guess you checked that already in detail...

Hope that helps,
Mark
Maxime Vallée 2012/08/27 18:18
Thanks a lot, Mark.

I had already found it was the CSF_GraphicShr environment variable that was not correctly set when I read your response, but you would have rescued me if I hadn't found ;)

Thanks again !
 
 
Latest news
  • New features to enhance the development process
  • Open CASCADE Technology 6.7.1 is available for download!
  • Open CASCADE Technology 6.7.0 is available for download!

  • © OPEN CASCADE 2000 - 2014  |  Search  |  Contacts   |  Site map