You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CheezeNotes/pages/perso-cross.md

15 lines
630 B

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

[Notes](notes)
# Installation cross compilation (sous Debian pour windows avec sqlite)
> `cargo install -f cross`  
> `rustup target add x86_64-pc-windows-gnu`  
> `rustup target add x86_64-pc-windows-msvc`  
> `sudo apt install gcc-mingw-w64-x86-64-win32`  
> `sudo apt install g++-mingw-w64-x86-64-win32`  
## Exécution
> `cargo build --release --target x86_64-pc-windows-gnu`
ou  
> `cargo build --release --target x86_64-pc-windows-msvc`
# Avec sqlite (rusqlite)
> `sudo apt install libsqlite3-dev`
Dans `Cargo.toml`, définir rusqlite de cette manière :
> `rusqlite = {version = "0.28.0", features=["bundled"]}`