#Error while executing cargo run

8 messages · Page 1 of 1 (latest)

uneven hornet
#

I can build my app without any problems but when i try to run it i get "error: could not execute process target\thumbv7em-none-eabihf\debug\[project_name] (never executed)

Caused by:
1% is not a valid Win32 application (os error 193)"

sudden matrix
#

the path indicates you are compiling for the thumbv7em-none-eabihf target platform

#

binaries produced for that target cannot be run on your own machine, unless you have an emulator handy (in which case you need to tell Cargo about it)

#

if you aren't intending to be doing embedded development cross-compilation, then you should find where thumbv7em-none-eabihf came from and stop doing that

uneven hornet
#

i would like to use qemu to test it from the command line

sudden matrix
#
[target.thumbv7em-none-eabihf]
runner = ["qemu", "--whatever-options-you-need-for-qemu"]
#

note that this goes in yourproject/.cargo/config.toml, not yourproject/Cargo.toml