bschwind / opencascade-rs

Rust bindings to the OpenCascade CAD Kernel
GNU Lesser General Public License v2.1
90 stars 17 forks source link

Strange error when build #84

Open katyo opened 1 year ago

katyo commented 1 year ago
  CMake Error at cmake_install.cmake:46 (file):
    file cannot create directory: /var/empty/local/share/doc/opencascade.
    Maybe need administrative privileges.
bschwind commented 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.

katyo commented 1 year ago

@bschwind I'm on linux (NixOS). How about ability to use system-wide preinstalled OCCT libs?

bschwind commented 1 year ago

@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.

strohel commented 1 year ago

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

katyo commented 1 year ago

@bschwind I added support installed OCCT in #87 using cmake to check conditions and config.