Open Alkimical opened 6 days ago
Looking at the winresource source, it's not clear to me how you would get that "program not found" error. It should use the last path it prints out, and it checks that the path exists before printing it. Maybe it's a permission issue or a winresource bug?
Regardless, the fact that it's trying to use the x64 rc.exe means you're compiling for the wrong architecture. You should be using cargo build --target=i686-pc-windows-msvc
to compile it as a 32-bit DLL (you may need to run rustup target add i686-pc-windows-msvc
first to install the 32-bit Rust toolchain). You can try that and see if you have the same problem.
Worst case scenario, you can just delete build.rs and compile without it. All it does is set the version number and stuff in the DLL properties; it's not required for the mod to work.
I get this error when trying to compitale unmodified script:
error: failed to run custom build command for
re0box v0.4.1 (D:\Multimedia\Downloads\re0box-master\re0box-master)`Caused by: process didn't exit successfully:
D:\Multimedia\Downloads\re0box-master\re0box-master\target\debug\build\re0box-6178c356ff98f0fb\build-script-build
(exit code: 101) --- stdout package.metadata does not exist "C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\rc.exe" "C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x64\rc.exe" "C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\rc.exe"--- stderr thread 'main' panicked at build.rs:3:19: called
Result::unwrap()
on anErr
value: Error { kind: NotFound, message: "program not found" } note: run withRUST_BACKTRACE=1
environment variable to display a backtrace warning: build failed, waiting for other jobs to finish...`But actually theres rc.exe in my C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64