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

failed to build on windows 10 #4

Open
solanca opened this issue Mar 14, 2024 · 2 comments · May be fixed by #11
Open

failed to build on windows 10 #4

solanca opened this issue Mar 14, 2024 · 2 comments · May be fixed by #11
Assignees
Labels
question Further information is requested

Comments

@solanca
Copy link

solanca commented Mar 14, 2024

2024-03-14T13:28:33.950491Z ERROR rust_analyzer::main_loop: FetchBuildDataError:
error: failed to run custom build command for turbojpeg-sys v1.0.0
note: To improve backtraces for build dependencies, set the CARGO_PROFILE_DEV_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation.
@rfdzan rfdzan added the bug Something isn't working label Mar 14, 2024
@rfdzan
Copy link
Owner

rfdzan commented Mar 14, 2024

error: failed to run custom build command for turbojpeg-sys v1.0.0

Caused by:
  process didn't exit successfully: D:\pract\rust\smoljpg\target\release\build\turbojpeg-sys-96fa558c91383b88\build-script-build (exit code: 101)
  --- stdout

 ...
  running: "cmake" "C:\\Users\\$home\\.cargo\\registry\\src\\index.crates.io-6f17d22bba15001f\\turbojpeg-sys-1.0.0\\libjpeg-turbo" "-G" "Visual Studio 17 2022" "-Thost=x64" "-Ax64" "-DCMAKE_INSTALL_DEFAULT_LIBDIR=lib" "-DCMAKE_INSTALL_PREFIX=D:\\pract\\rust\\smoljpg\\target\\release\\build\\turbojpeg-sys-878d903d27b5b47a\\out" "-DCMAKE_C_FLAGS= -nologo -MD -Brepro" "-DCMAKE_C_FLAGS_RELEASE= -nologo -MD -Brepro" "-DCMAKE_CXX_FLAGS= -nologo -MD -Brepro" "-DCMAKE_CXX_FLAGS_RELEASE= -nologo -MD -Brepro" "-DCMAKE_ASM_FLAGS= -nologo -MD -Brepro" "-DCMAKE_ASM_FLAGS_RELEASE= -nologo -MD -Brepro" "-DCMAKE_BUILD_TYPE=Release" "-DENABLE_SHARED=0" "-DENABLE_STATIC=1" "-DREQUIRE_SIMD=ON"

  --- stderr
  thread 'main' panicked at C:\Users\$home\.cargo\registry\src\index.crates.io-6f17d22bba15001f\cmake-0.1.50\src\lib.rs:1098: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
warning: build failed, waiting for other jobs to finish...

@rfdzan rfdzan self-assigned this Mar 14, 2024
@rfdzan rfdzan added question Further information is requested and removed bug Something isn't working labels Apr 4, 2024
@rfdzan
Copy link
Owner

rfdzan commented Apr 4, 2024

Issue was related to not having cmake installed in order for turbojpeg-sys to be linked to the C library libturbojpeg properly.
See turbojpeg's requirements section.

@rfdzan rfdzan closed this as completed Apr 4, 2024
@rfdzan rfdzan reopened this Apr 4, 2024
@rfdzan rfdzan linked a pull request Apr 4, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants