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

Missing libraries while compiling FreeCAD

Julien Guigner's picture


I'm trying to compile FreeCAD after I compiled OpenCascade but I have some missing libraries (see the output:, so:
/usr/bin/ld: cannot find -lTKService
/usr/bin/ld: cannot find -lTKMeshVS

It's on Fedora 15, latest version of OpenCascade.

How can I compile this libraries ?

Denis Barbier's picture

Hello Julien,

It looks like OpenCascade Visualization component has not been compiled; check the configure output when compiling OpenCascade, it should tell why.

Julien Guigner's picture

Hello Denis,

So I was missing Xmu-devel, now I can't compile OpenCascade anymore, I got a few errors I fixed with a couple of your patches I found here, but I've still one error:

In file included from /usr/include/FTGL/ftgl.h:32:0,
from ../../../inc/OpenGl_FontMgr.hxx:10,
from ../../../src/OpenGl/OpenGl_FontMgr.cxx:1:
/usr/include/ft2build.h:56:38: fatal error: freetype/config/ftheader.h: No such file or directory

I've added the path to Freetype as a parameter for ./configure but it doesn't work… so I don't know why it doesn't work.

Denis Barbier's picture

It should work when calling configure --with-freetype=/usr

Julien Guigner's picture

Ok, it works now, thanks for your help and the patches ;)