You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I manually fetched the git sub-modules and then inside raylib-rs\samples\ I ran cargo run --bin arkanoid and drop. I couldn't find explicit instructions for running the examples so I'm unsure if this was the correct approach. Error log bellow
warning: `raylib-sys` (build script) generated 5 warnings
error: failed to run custom build command for `raylib-sys v5.0.1 (C:\Users\username\Documents\VSCODE-RUST\raylib\snake2\raylib-rs-clone\raylib-rs\raylib-sys)`
Caused by:
process didn't exit successfully: `C:\Users\username\Documents\VSCODE-RUST\raylib\snake2\raylib-rs-clone\raylib-rs\samples\target\debug\build\raylib-sys-81c2008f2c6db814\build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-changed=build.rs
cargo:rerun-if-changed=./binding/binding.h
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
running: "cmake" "C:\\Users\\username\\Documents\\VSCODE-RUST\\raylib\\snake2\\raylib-rs-clone\\raylib-rs\\samples\\target\\debug\\build\\raylib-sys-c0350c5956312546\\out\\raylib" "-G" "Visual Studio 17 2022" "-Thost=x64" "-Ax64" "-DCMAKE_BUILD_TYPE=Debug" "-DBUILD_EXAMPLES=OFF" "-DCMAKE_BUILD_TYPE=Debug" "-DSUPPORT_BUSY_WAIT_LOOP=OFF" "-DSUPPORT_FILEFORMAT_JPG=ON" "-DRAYMATH_STATIC_INLINE=ON" "-DUSE_WAYLAND=OFF" "-DOPENGL_VERSION=OFF" "-DPLATFORM=Desktop" "-DCMAKE_INSTALL_PREFIX=C:\\Users\\username\\Documents\\VSCODE-RUST\\raylib\\snake2\\raylib-rs-clone\\raylib-rs\\samples\\target\\debug\\build\\raylib-sys-c0350c5956312546\\out" "-DCMAKE_C_FLAGS= -nologo -MD -Brepro" "-DCMAKE_C_FLAGS_DEBUG= -nologo -MD -Brepro" "-DCMAKE_CXX_FLAGS= -nologo -MD -Brepro" "-DCMAKE_CXX_FLAGS_DEBUG= -nologo -MD -Brepro" "-DCMAKE_ASM_FLAGS= -nologo -MD -Brepro" "-DCMAKE_ASM_FLAGS_DEBUG= -nologo -MD -Brepro"
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045.
-- The C compiler identification is MSVC 19.42.34435.0
-- The CXX compiler identification is MSVC 19.42.34435.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe - broken
-- Configuring incomplete, errors occurred!
--- stderr
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Error at C:/Program Files/CMake/share/cmake-3.28/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler
"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: 'C:/Users/username/Documents/VSCODE-RUST/raylib/snake2/raylib-rs-clone/raylib-rs/samples/target/debug/build/raylib-sys-c0350c5956312546/out/build/CMakeFiles/CMakeScratch/TryCompile-smqws8'
Run Build Command(s): "C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe" cmTC_2ccbd.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=17.0 /v:n
MSBuild version 17.12.6+db5f6012c for .NET Framework
Build started 18/12/2024 21:14:36.
Project "C:\Users\username\Documents\VSCODE-RUST\raylib\snake2\raylib-rs-clone\raylib-rs\samples\target\debug\build\raylib-sys-c0350c5956312546\out\build\CMakeFiles\CMakeScratch\TryCompile-smqws8\cmTC_2ccbd.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "cmTC_2ccbd.dir\Debug\".
Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See https://aka.ms/cpp/structured-output for more details.
Creating directory "C:\Users\username\Documents\VSCODE-RUST\raylib\snake2\raylib-rs-clone\raylib-rs\samples\target\debug\build\raylib-sys-c0350c5956312546\out\build\CMakeFiles\CMakeScratch\TryCompile-smqws8\Debug\".
Creating directory "cmTC_2ccbd.dir\Debug\cmTC_2ccbd.tlog\".
InitializeBuildStatus:
Creating "cmTC_2ccbd.dir\Debug\cmTC_2ccbd.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
Touching "cmTC_2ccbd.dir\Debug\cmTC_2ccbd.tlog\unsuccessfulbuild".
ClCompile:
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433\bin\HostX64\x64\CL.exe /c /Zi /nologo /W1 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D "CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_2ccbd.dir\Debug\\" /Fd"cmTC_2ccbd.dir\Debug\vc143.pdb" /external:W1 /Gd /TC /errorReport:queue -Brepro "C:\Users\username\Documents\VSCODE-RUST\raylib\snake2\raylib-rs-clone\raylib-rs\samples\target\debug\build\raylib-sys-c0350c5956312546\out\build\CMakeFiles\CMakeScratch\TryCompile-smqws8\testCCompiler.c"
testCCompiler.c
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(755,5): error MSB6003: The specified task executable "CL.exe" could not be run. System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\username\Documents\VSCODE-RUST\raylib\snake2\raylib-rs-clone\raylib-rs\samples\target\debug\build\raylib-sys-c0350c5956312546\out\build\CMakeFiles\CMakeScratch\TryCompile-smqws8\cmTC_2ccbd.dir\Debug\cmTC_2ccbd.tlog'. [C:\Users\username\Documents\VSCODE-RUST\raylib\snake2\raylib-rs-clone\raylib-rs\samples\target\debug\build\raylib-sys-c0350c5956312546\out\build\CMakeFiles\CMakeScratch\TryCompile-smqws8\cmTC_2ccbd.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(755,5): error MSB6003: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) [C:\Users\username\Documents\VSCODE-RUST\raylib\snake2\raylib-rs-clone\raylib-rs\samples\target\debug\build\raylib-sys-c0350c5956312546\out\build\CMakeFiles\CMakeScratch\TryCompile-smqws8\cmTC_2ccbd.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(755,5): error MSB6003: at System.IO.FileSystemEnumerableIterator`1.CommonInit() [C:\Users\username\Documents\VSCODE-RUST\raylib\snake2\raylib-rs-clone\raylib-rs\samples\target\debug\build\raylib-sys-c0350c5956312546\out\build\CMakeFiles\CMakeScratch\TryCompile-smqws8\cmTC_2ccbd.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(755,5): error MSB6003: at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost) [C:\Users\username\Documents\VSCODE-RUST\raylib\snake2\raylib-rs-clone\raylib-rs\samples\target\debug\build\raylib-sys-c0350c5956312546\out\build\CMakeFiles\CMakeScratch\TryCompile-smqws8\cmTC_2ccbd.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(755,5): error MSB6003: at System.IO.Directory.GetFiles(String path, String searchPattern) [C:\Users\username\Documents\VSCODE-RUST\raylib\snake2\raylib-rs-clone\raylib-rs\samples\target\debug\build\raylib-sys-c0350c5956312546\out\build\CMakeFiles\CMakeScratch\TryCompile-smqws8\cmTC_2ccbd.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(755,5): error MSB6003: at Microsoft.Build.Utilities.TrackedDependencies.ExpandWildcards(ITaskItem[] expand) [C:\Users\username\Documents\VSCODE-RUST\raylib\snake2\raylib-rs-clone\raylib-rs\samples\target\debug\build\raylib-sys-c0350c5956312546\out\build\CMakeFiles\CMakeScratch\TryCompile-smqws8\cmTC_2ccbd.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(755,5): error MSB6003: at Microsoft.Build.Utilities.CanonicalTrackedOutputFiles.InternalConstruct(ITask ownerTask, ITaskItem[] tlogFiles, Boolean constructOutputsFromTLogs) [C:\Users\username\Documents\VSCODE-RUST\raylib\snake2\raylib-rs-clone\raylib-rs\samples\target\debug\build\raylib-sys-c0350c5956312546\out\build\CMakeFiles\CMakeScratch\TryCompile-smqws8\cmTC_2ccbd.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(755,5): error MSB6003: at Microsoft.Build.CPPTasks.CL.PostExecuteTool(Int32 exitCode) [C:\Users\username\Documents\VSCODE-RUST\raylib\snake2\raylib-rs-clone\raylib-rs\samples\target\debug\build\raylib-sys-c0350c5956312546\out\build\CMakeFiles\CMakeScratch\TryCompile-smqws8\cmTC_2ccbd.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(755,5): error MSB6003: at Microsoft.Build.CPPTasks.TrackedVCToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [C:\Users\username\Documents\VSCODE-RUST\raylib\snake2\raylib-rs-clone\raylib-rs\samples\target\debug\build\raylib-sys-c0350c5956312546\out\build\CMakeFiles\CMakeScratch\TryCompile-smqws8\cmTC_2ccbd.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(755,5): error MSB6003: at Microsoft.Build.CPPTasks.CL.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [C:\Users\username\Documents\VSCODE-RUST\raylib\snake2\raylib-rs-clone\raylib-rs\samples\target\debug\build\raylib-sys-c0350c5956312546\out\build\CMakeFiles\CMakeScratch\TryCompile-smqws8\cmTC_2ccbd.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(755,5): error MSB6003: at Microsoft.Build.Utilities.ToolTask.Execute() [C:\Users\username\Documents\VSCODE-RUST\raylib\snake2\raylib-rs-clone\raylib-rs\samples\target\debug\build\raylib-sys-c0350c5956312546\out\build\CMakeFiles\CMakeScratch\TryCompile-smqws8\cmTC_2ccbd.vcxproj]
Done Building Project "C:\Users\username\Documents\VSCODE-RUST\raylib\snake2\raylib-rs-clone\raylib-rs\samples\target\debug\build\raylib-sys-c0350c5956312546\out\build\CMakeFiles\CMakeScratch\TryCompile-smqws8\cmTC_2ccbd.vcxproj" (default targets) -- FAILED.
Build FAILED.
"C:\Users\username\Documents\VSCODE-RUST\raylib\snake2\raylib-rs-clone\raylib-rs\samples\target\debug\build\raylib-sys-c0350c5956312546\out\build\CMakeFiles\CMakeScratch\TryCompile-smqws8\cmTC_2ccbd.vcxproj" (default target) (1) ->
(ClCompile target) ->
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(755,5): error MSB6003: The specified task executable "CL.exe" could not be run. System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\username\Documents\VSCODE-RUST\raylib\snake2\raylib-rs-clone\raylib-rs\samples\target\debug\build\raylib-sys-c0350c5956312546\out\build\CMakeFiles\CMakeScratch\TryCompile-smqws8\cmTC_2ccbd.dir\Debug\cmTC_2ccbd.tlog'. [C:\Users\username\Documents\VSCODE-RUST\raylib\snake2\raylib-rs-clone\raylib-rs\samples\target\debug\build\raylib-sys-c0350c5956312546\out\build\CMakeFiles\CMakeScratch\TryCompile-smqws8\cmTC_2ccbd.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(755,5): error MSB6003: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) [C:\Users\username\Documents\VSCODE-RUST\raylib\snake2\raylib-rs-clone\raylib-rs\samples\target\debug\build\raylib-sys-c0350c5956312546\out\build\CMakeFiles\CMakeScratch\TryCompile-smqws8\cmTC_2ccbd.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(755,5): error MSB6003: at System.IO.FileSystemEnumerableIterator`1.CommonInit() [C:\Users\username\Documents\VSCODE-RUST\raylib\snake2\raylib-rs-clone\raylib-rs\samples\target\debug\build\raylib-sys-c0350c5956312546\out\build\CMakeFiles\CMakeScratch\TryCompile-smqws8\cmTC_2ccbd.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(755,5): error MSB6003: at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost) [C:\Users\username\Documents\VSCODE-RUST\raylib\snake2\raylib-rs-clone\raylib-rs\samples\target\debug\build\raylib-sys-c0350c5956312546\out\build\CMakeFiles\CMakeScratch\TryCompile-smqws8\cmTC_2ccbd.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(755,5): error MSB6003: at System.IO.Directory.GetFiles(String path, String searchPattern) [C:\Users\username\Documents\VSCODE-RUST\raylib\snake2\raylib-rs-clone\raylib-rs\samples\target\debug\build\raylib-sys-c0350c5956312546\out\build\CMakeFiles\CMakeScratch\TryCompile-smqws8\cmTC_2ccbd.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(755,5): error MSB6003: at Microsoft.Build.Utilities.TrackedDependencies.ExpandWildcards(ITaskItem[] expand) [C:\Users\username\Documents\VSCODE-RUST\raylib\snake2\raylib-rs-clone\raylib-rs\samples\target\debug\build\raylib-sys-c0350c5956312546\out\build\CMakeFiles\CMakeScratch\TryCompile-smqws8\cmTC_2ccbd.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(755,5): error MSB6003: at Microsoft.Build.Utilities.CanonicalTrackedOutputFiles.InternalConstruct(ITask ownerTask, ITaskItem[] tlogFiles, Boolean constructOutputsFromTLogs) [C:\Users\username\Documents\VSCODE-RUST\raylib\snake2\raylib-rs-clone\raylib-rs\samples\target\debug\build\raylib-sys-c0350c5956312546\out\build\CMakeFiles\CMakeScratch\TryCompile-smqws8\cmTC_2ccbd.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(755,5): error MSB6003: at Microsoft.Build.CPPTasks.CL.PostExecuteTool(Int32 exitCode) [C:\Users\username\Documents\VSCODE-RUST\raylib\snake2\raylib-rs-clone\raylib-rs\samples\target\debug\build\raylib-sys-c0350c5956312546\out\build\CMakeFiles\CMakeScratch\TryCompile-smqws8\cmTC_2ccbd.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(755,5): error MSB6003: at Microsoft.Build.CPPTasks.TrackedVCToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [C:\Users\username\Documents\VSCODE-RUST\raylib\snake2\raylib-rs-clone\raylib-rs\samples\target\debug\build\raylib-sys-c0350c5956312546\out\build\CMakeFiles\CMakeScratch\TryCompile-smqws8\cmTC_2ccbd.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(755,5): error MSB6003: at Microsoft.Build.CPPTasks.CL.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [C:\Users\username\Documents\VSCODE-RUST\raylib\snake2\raylib-rs-clone\raylib-rs\samples\target\debug\build\raylib-sys-c0350c5956312546\out\build\CMakeFiles\CMakeScratch\TryCompile-smqws8\cmTC_2ccbd.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(755,5): error MSB6003: at Microsoft.Build.Utilities.ToolTask.Execute() [C:\Users\username\Documents\VSCODE-RUST\raylib\snake2\raylib-rs-clone\raylib-rs\samples\target\debug\build\raylib-sys-c0350c5956312546\out\build\CMakeFiles\CMakeScratch\TryCompile-smqws8\cmTC_2ccbd.vcxproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.40
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
thread 'main' panicked at C:\Users\username\.cargo\registry\src\index.crates.io-6f17d22bba15001f\cmake-0.1.52\src/lib.rs:1115:5:
command did not execute successfully, got: exit code: 1
build script failed, must exit now
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
The text was updated successfully, but these errors were encountered:
Similar but not identical issue to #82 (comment) .
I manually fetched the git sub-modules and then inside
raylib-rs\samples\
I rancargo run --bin arkanoid
anddrop
. I couldn't find explicit instructions for running the examples so I'm unsure if this was the correct approach. Error log bellowThe text was updated successfully, but these errors were encountered: