Open katyo opened 1 year ago
Hmm, I haven't encountered that personally, are you on Linux?
@strohel and @PabloMansanet have built this project on Linux but I'm not sure if they encountered this or not.
@bschwind I'm on linux (NixOS). How about ability to use system-wide preinstalled OCCT libs?
@katyo #26 is addressing that, though it needs changes. It could use some help to be more portable across different distributions.
One part I'm not sure about is how easy it is to handle versioning when using the system OCCT libs, like if we use a feature introduced in OCCT 7.7 but the user only has 7.2 installed.
I haven't made many FFI crates that bind to system libs so maybe it's easier than I'm thinking.
Hi @katyo, I'm on (Gentoo) Linux and I have no problem building opencascade-sys (or any other downstream crates).
Could that be something NixOs-specific? Could you please attach full error output from build? From the error: failed to run custom build command for `opencascade-sys v0.1.0 (...)`
line till the end.
What would be also useful is generated CMakeLists.txt
file, can you please attach that one too? The path is not fixed, but mine is in target/debug/build/opencascade-sys-5666342dffd78091/out/build/CMakeCache.txt
for a debug build. Attaching mine.
CMakeCache.txt
@bschwind I added support installed OCCT in #87 using cmake to check conditions and config.