Building OpenCascade with Mandrake 7.0

I try building OpenCascade with a Mandrake 7.0 but I have error with OpenGl (I use Mesa 3.1) and with TK library ! Where is the problem ?

C R Johnson's picture

The pre-releases of Open Cascade is linked against Mesa 3.0, and expects library names like instead of the standard

You can try to make symbolic links to your libraries with the names the Open Cascade expects, but as are other differences between Mesa 3.0 and 3.1 it might not work.

You probably need to rebuild Open Cascade *OR* get and install Mesa 3.0. Getting Mesa 3.0 is probably easier.

Hopefully the offical release of Open Cascade will use Mesa 3.1 ( or 3.2).

good luck.

Jacques Leroy's picture

I compiled OpenCascade under Mandrake 7.0 with pgcc-2.95.3.

pgcc-2.95.3 is gcc-2.95.2 patched to produce pentium optimized code

There are a few tweaks about that:

Several modules won't compile because literal strings (things like: "Take that !") are now seen as - which is an error when is expected. To easily fix that: just add -fwritable-strings compiler option to the compiler commands in the .comp related files... (of course, you can change ALL your .comp files with an ed script)

On the other hand, you can modify the source and add cast (char *) where requested, but this is painfull, and the source is modified, which should be avoided as much as possible.

For OpenGL related stuff, have a look at the OpenGL .comp file:

There are lots of options -DGLUXXX=GLUYYY Just remove them to compile properly with Mesa 3.1.

Friendly yours, Jacques Leroy