WolframResearch / OpenCascadeLink

Open source package for OpenCascadeLink, which is bundled with Wolfram Language products as of version 12.1
Other
31 stars 8 forks source link

Why does Mathematica 10.4 load opencascade lib failed? #7

Closed lavender-lee closed 1 year ago

lavender-lee commented 1 year ago

I would like to compile the OpenCascadeLink to Mathematica 10.4 on the Windows X86-64 platform. However, I noticed that FindLibrary[] cannot load the DLL.

libDir = NotebookDirectory[] <> "open_cascade_prebuilt\\lib"

preLoadLibs = FileNames["*.*", libDir]

LibraryLoad @ preLoadLibs[[1]]

LibraryLoad @ preLoadLibs[[2]]

(*
  ibraryFunction::load: The library E:\Open-Cascade-Link\open_cascade_prebuilt/lib\TKBin.dll cannot be loaded. 
*)

success = FreeQ[Union[LibraryLoad /@ preLoadLibs], $Failed]

LibraryLink`$LibraryError

(*
   Library load error 126: cannot find the specified
*)

Screenshot

image

image

ruebenko commented 1 year ago

The oldest Mathematica version I have build OpenCascadeLink was 12.1. What you could try is to check out the earliest version of OpenCascadeLink and see if you can get that to work with M10.4 - but between 10.4 and 12.1 a lot of stuff got added and/or fixed.