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

Cmake Error on windows ! #180

Open
Shrav108 opened this issue Aug 22, 2024 · 1 comment
Open

Cmake Error on windows ! #180

Shrav108 opened this issue Aug 22, 2024 · 1 comment

Comments

@Shrav108
Copy link

Hey I am trying to use this crate for building a cad model. I am running it on windows. I am getting the following error:

error: failed to run custom build command for `occt-sys v0.2.0`

--- stdout
  CMAKE_TOOLCHAIN_FILE_x86_64-pc-windows-msvc = None
  CMAKE_TOOLCHAIN_FILE_x86_64_pc_windows_msvc = None
  HOST_CMAKE_TOOLCHAIN_FILE = None
  CMAKE_TOOLCHAIN_FILE = None
  CMAKE_GENERATOR_x86_64-pc-windows-msvc = None
  CMAKE_GENERATOR_x86_64_pc_windows_msvc = None
  HOST_CMAKE_GENERATOR = None
  CMAKE_GENERATOR = None
  CMAKE_PREFIX_PATH_x86_64-pc-windows-msvc = None
  CMAKE_PREFIX_PATH_x86_64_pc_windows_msvc = None
  HOST_CMAKE_PREFIX_PATH = None
  CMAKE_PREFIX_PATH = None
  CMAKE_x86_64-pc-windows-msvc = None
  CMAKE_x86_64_pc_windows_msvc = None
  HOST_CMAKE = None
  CMAKE = None

--- stderr
  thread 'main' panicked at C:\Users\XYZ\.cargo\registry\src\index.crates.io-6f17d22bba15001f\cmake-0.1.51\src/lib.rs:1100:5:

  failed to execute command: program not found
  is `cmake` not installed?

  build script failed, must exit now
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

What should I do ?

@bschwind
Copy link
Owner

Hi,

This library is not yet well supported on windows. However, it simply looks like you don't have cmake installed. That might not be the only issue you'll run into though, so you could also try installing opencascade 7.7 and building your project by passing default-features = false in your Cargo.toml for this crate. Or if you're working in this repo directly, pass --no-default-features to cargo when building.

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

2 participants