Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange error when build #84

Open
katyo opened this issue Jul 15, 2023 · 5 comments
Open

Strange error when build #84

katyo opened this issue Jul 15, 2023 · 5 comments

Comments

@katyo
Copy link
Contributor

katyo commented Jul 15, 2023

  CMake Error at cmake_install.cmake:46 (file):
    file cannot create directory: /var/empty/local/share/doc/opencascade.
    Maybe need administrative privileges.
@bschwind
Copy link
Owner

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
Copy link
Contributor Author

katyo commented Jul 15, 2023

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

@bschwind
Copy link
Owner

@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
Copy link
Collaborator

strohel commented Jul 15, 2023

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
Copy link
Contributor Author

katyo commented Jul 15, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants