Compiling ruffle
#20561
Replies: 2 comments 3 replies
-
The error suggests you don't have proper access to the target directory, try deleting it and making sure directory permissions are set correctly (you have to have write access). How do you build the project? Does the directory have the proper owner set? |
Beta Was this translation helpful? Give feedback.
2 replies
-
I'm on Windows, i got the project onto local machine with github desktop and opened it in Vs Code, I've tried changing permissions at least 3 different ways, I cant get it to work. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to compile ruffle, but failing miserably, spent many hours now, trying to get help from chatgpt:
The latest attempt:
I'm in the "web" subdirectory
....
Compiling transpose v0.2.3
Compiling lzma-rs v0.3.0
Compiling clap_builder v4.5.39
Compiling darling_macro v0.20.11
Compiling thiserror v1.0.69
Compiling rustfft v6.3.0
error: failed to run custom build command for
lock_api v0.4.12
Caused by:
process didn't exit successfully:
D:\xampp\htdocs\scripts_other\ruffle\web\target\web-wasm-extensions\build\lock_api-a339639be9139d0a\build-script-build
(exit code: 101)--- stderr
thread 'main' panicked at C:\Users\Sigurd.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\autocfg-1.4.0\src\lib.rs:159:20:
called
Result::unwrap()
on anErr
value: Error { kind: Other("output path is not a writable directory") }note: run with
RUST_BACKTRACE=1
environment variable to display a backtracewarning: build failed, waiting for other jobs to finish...
node:internal/errors:865
const err = new Error(message);
^
Error: Command failed: cargo build --locked --target wasm32-unknown-unknown --profile web-wasm-extensions
at __node_internal_genericNodeError (node:internal/errors:865:15)
at checkExecSyncError (node:child_process:885:11)
at execFileSync (node:child_process:921:15)
at cargoBuild (d:\xampp\htdocs\scripts_other\ruffle\web\packages\core\tools\build_wasm.ts:80:5)
at buildWasm (d:\xampp\htdocs\scripts_other\ruffle\web\packages\core\tools\build_wasm.ts:116:9)
at wasmSource (d:\xampp\htdocs\scripts_other\ruffle\web\packages\core\tools\build_wasm.ts:167:1)
at Object. (d:\xampp\htdocs\scripts_other\ruffle\web\packages\core\tools\build_wasm.ts:176:1)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Object.transformer (D:\xampp\htdocs\scripts_other\ruffle\web\node_modules\tsx\dist\register-D2KMMyKp.cjs:2:1186)
at Module.load (node:internal/modules/cjs/loader:1119:32) {
status: 101,
signal: null,
output: [ null, null, null ],
pid: 34864,
stdout: null,
stderr: null
}
Node.js v18.17.1
npm ERR! Lifecycle script
build
failed with error:npm ERR! Error: command failed
npm ERR! in workspace: [email protected]
npm ERR! at location: D:\xampp\htdocs\scripts_other\ruffle\web\packages\core
So i've pretty much tried everything under the sun, told me by chatgpt, setting a different rust target, tried to change directory permissions... tried rto run vscode as admin, I have no idea what to do
Beta Was this translation helpful? Give feedback.
All reactions