cross compile issues with prebuilt sdl2.so
Triangle345 opened this issue · comments
ef commented
Hello,
I'm trying to cross compile from windows to linux. I have already acquired a linux built sdl2.so. I want to use this to cross compile for linux so I wouldnt need to rebuilt the .so. I'm getting the following error:
cargo build --target=x86_64-unknown-linux-musl --example mouse-state
Compiling sdl2 v0.35.2 (C:\Users\peterpan\Documents\projects\rust\rust-sdl2)
error: linker `cc` not found
|
= note: program not found
error: could not compile `sdl2` (example "mouse-state") due to previous error
It seems that I need an external cross compiler to accomplish this? Since I already have a prebuilt .so, is there a way to cross compile without rebuilding sdl2?