tpaviot / oce

OpenCASCADE Community Edition (OCE): a community driven fork of the Open CASCADE library.
http://groups.google.com/group/oce-dev
GNU Lesser General Public License v2.1
811 stars 284 forks source link

Statically compiled .exe ( visual studio 2017 x64) which includes OCE still needs TK libraries to run... #696

Open MirkoWeber opened 6 years ago

MirkoWeber commented 6 years ago

I have compiled a project which includes OCE, everything has been set to static compile.

However, the .exe still needs those dlls inside its folder in order to run.

TKBO.DLL TKBOOL.DLL TKBREP.DLL TKERNEL.DLL TKFILLET.DLL TKG2D.DLL TKG3D.DLL TKGEOMALGO.DLL TKGEOMBASE.DLL TKMATH.DLL TKMESH.DLL TKOFFSET.DLL TKPRIM.DLL TKSHHEALING.DLL TKTOPALGO.DLL

Is this a common problem? Can this be fixed? Thanks in advance.

Stinkfist0 commented 6 years ago

Adding add_definitions(-DHAVE_NO_DLL) to your project's CMakeLists.txt should fix the issue.