Raised This Month: $ Target: $400
 0% 

Trying to cross compile my app to windows


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NernakinBandhoo
New Member
Join Date: Oct 2022
Old 11-28-2022 , 07:17   Trying to cross compile my app to windows
Reply With Quote #1

Hey so I'm on arch Linux and I'm attempting to use cross to compile to windows but every-time i try i get an error message stating i don't have a default version of rustc; how would i go about fixing this?

I've attempted to run rustup default stable. And i can normally compile my program with cargo run/ cargo build

[[email protected] webhook_sender]$ sudo cross build --release --target x86_64-pc-windows-gnu
Error:
0: `rustc --print target-list` failed with exit status: 1

Location:
/rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/core/src/convert/mod.rs:550

Stderr:
error: rustup could not choose a version of rustc to run, because one wasn't specified explicitly, and no default is configured.
help: run 'rustup default stable' to download the latest stable release of Rust and set it as your default toolchain.

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
NernakinBandhoo is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:42.


Powered by vBulletin®
Copyright ©2000 - 2022, vBulletin Solutions, Inc.
Theme made by Freecode