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

Build fails (FileHelper.cpp: No such file or directory) #1

Open
ostwilkens opened this issue Nov 26, 2023 · 4 comments
Open

Build fails (FileHelper.cpp: No such file or directory) #1

ostwilkens opened this issue Nov 26, 2023 · 4 comments

Comments

@ostwilkens
Copy link

Thank you for making this tool!
I encountered a hiccup.

When running cargo run --release, I get the following error.
I'm on Windows 10 (22H2) with Visual Studio 2019 installed.

I can confirm the file it's looking for is missing, E:\Projects\gltf-ibl-sampler-egui\target\release\build\gltf-ibl-sampler-egui-ded4467bf4dab538\out\glTF-IBL-Sampler\lib\source is empty.

error: failed to run custom build command for `gltf-ibl-sampler-egui v0.1.0 (E:\Projects\gltf-ibl-sampler-egui)`

Caused by:
  process didn't exit successfully: `E:\Projects\gltf-ibl-sampler-egui\target\release\build\gltf-ibl-sampler-egui-23908ec615670fa8\build-script-build` (exit code: 1)
  --- stdout
  cargo:rerun-if-changed=build.rs
  TARGET = Some("x86_64-pc-windows-msvc")
  OPT_LEVEL = Some("3")
  HOST = Some("x86_64-pc-windows-msvc")
  cargo:rerun-if-env-changed=CC_x86_64-pc-windows-msvc
  CC_x86_64-pc-windows-msvc = None
  cargo:rerun-if-env-changed=CC_x86_64_pc_windows_msvc
  CC_x86_64_pc_windows_msvc = None
  cargo:rerun-if-env-changed=HOST_CC
  HOST_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  DEBUG = Some("false")
  cargo:rerun-if-env-changed=CFLAGS_x86_64-pc-windows-msvc
  CFLAGS_x86_64-pc-windows-msvc = None
  cargo:rerun-if-env-changed=CFLAGS_x86_64_pc_windows_msvc
  CFLAGS_x86_64_pc_windows_msvc = None
  cargo:rerun-if-env-changed=HOST_CFLAGS
  HOST_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  running: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-O2" "-Brepro" "-I" "glTF-IBL-Sampler/lib/include" "-I" "glTF-IBL-Sampler/thirdparty/stb" "-I" "glTF-IBL-Sampler/thirdparty/volk" "-I" "glTF-IBL-Sampler/thirdparty/Vulkan-Headers/include" "-W4" "-FoE:\\Projects\\gltf-ibl-sampler-egui\\target\\release\\build\\gltf-ibl-sampler-egui-ded4467bf4dab538\\out\\glTF-IBL-Sampler/lib/source\\FileHelper.o" "-c" "glTF-IBL-Sampler/lib/source\\FileHelper.cpp"
  FileHelper.cpp
  c1xx: fatal error C1083: Cannot open source file: 'glTF-IBL-Sampler/lib/source\FileHelper.cpp': No such file or directory
  exit code: 2

  --- stderr


  error occurred: Command "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-O2" "-Brepro" "-I" "glTF-IBL-Sampler/lib/include" "-I" "glTF-IBL-Sampler/thirdparty/stb" "-I" "glTF-IBL-Sampler/thirdparty/volk" "-I" "glTF-IBL-Sampler/thirdparty/Vulkan-Headers/include" "-W4" "-FoE:\\Projects\\gltf-ibl-sampler-egui\\target\\release\\build\\gltf-ibl-sampler-egui-ded4467bf4dab538\\out\\glTF-IBL-Sampler/lib/source\\FileHelper.o" "-c" "glTF-IBL-Sampler/lib/source\\FileHelper.cpp" with args "cl.exe" did not execute successfully (status code exit code: 2).


warning: build failed, waiting for other jobs to finish...
@ostwilkens
Copy link
Author

I ran git clone https://github.com/pcwalton/glTF-IBL-Sampler.git in the project directory and it solved this error.
Is the submodule broken somehow? I correctly ran git clone --recursive when cloning the repo.

@tbillington
Copy link

Hit this too

@pcwalton
Copy link
Owner

09e621f might fix this. Let me know if it does.

@aevyrie
Copy link

aevyrie commented Dec 29, 2023

@pcwalton the change resolved this issue for me.

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

4 participants