LongShot: Anybody Used OpenCascade before

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
yushi
Posts: 1
Joined: Fri Feb 03, 2017 3:46 pm

LongShot: Anybody Used OpenCascade before

Post by yushi »

Hi Everybody,
Anybody here used OpenCascade before. I know freecad used to be an offshoot of OCCT. I asked the same question on their forum but there's not much activity there. I would like use some of it's modules in one of my project. But I am having problem linking it to my project. There's not much documentation on how to set up your cmake file in order to use OpenCascade.
Here's my rudimentatry cmake file:

I get the error when I generate the make file:
WARNING: Target "OpenCascadeLearning" requests linking to directory "/usr/local/lib". Targets may link only to libraries. CMake is dropping the item.
make file also has compile error. I feel like I am missing something.
CMakeLists.txt
(524 Bytes) Downloaded 18 times
cheers
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: LongShot: Anybody Used OpenCascade before

Post by sgrogan »

Hello yushi,
I'm not a developer but since no one has yet responded,
FreeCAD is not an offshoot of OCCT, but an application that uses the OCCT libraries, as you seem to be trying to do.
I would examine the src tree https://github.com/FreeCAD/FreeCAD/tree/master/src
In particular the Part Module https://github.com/FreeCAD/FreeCAD/tree ... c/Mod/Part
"fight the good fight"
Post Reply