undefined symbol: _ZNK19Geom2dAdaptor_Curve9NbSamplesEv

Having trouble installing or compiling FreeCAD? Get help here.
User avatar
detlet
Posts: 82
Joined: Sun Sep 25, 2011 5:54 pm
Location: Lauenstein, Germany

undefined symbol: _ZNK19Geom2dAdaptor_Curve9NbSamplesEv

Postby detlet » Sat Oct 18, 2014 8:49 am

With an fresh build, I get the error message

Code: Select all

/home/det/Schreibtisch/soft/free-cad/build/Mod/Part/Part.so: undefined symbol: _ZNK19Geom2dAdaptor_Curve9NbSamplesEv
on the console and can't start any work bench.

Code: Select all

OS: Debian GNU/Linux testing (jessie)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.4121 (Git)
Branch: master
Hash: dd392efeb147d6df50f8d67cdca8f59981224e75
Python version: 2.7.8
Qt version: 4.8.6
Coin version: 3.1.3
User avatar
shoogen
Posts: 2823
Joined: Thu Dec 01, 2011 5:24 pm

Re: undefined symbol: _ZNK19Geom2dAdaptor_Curve9NbSamplesEv

Postby shoogen » Sat Oct 18, 2014 9:32 am

Please check if you got multiple versions of OCCT/OCE installed on your system. The cause is likely that the headers mismatch the shared libraries. Did you compile OCE by yourself?
EDIT: I got the exact same error message a while ago ;)
viewtopic.php?f=10&t=5884#p52713
EDIT: An one general tip.
If you want to search this forum or the occt changelogs for a symbol please use a tool or the webservice http://demangler.com/ to demangle the c++ symbols.
User avatar
detlet
Posts: 82
Joined: Sun Sep 25, 2011 5:54 pm
Location: Lauenstein, Germany

Re: undefined symbol: _ZNK19Geom2dAdaptor_Curve9NbSamplesEv

Postby detlet » Sat Oct 18, 2014 6:16 pm

Thank you, removing all that I found of occ and freecad and rebuild both fixed the problem :)