ฉันกำลังพยายามรวบรวมโปรเจ็กต์ Rust ของฉันด้วยการเชื่อมโยงแบบไดนามิกเพื่อลดขนาดและจัดเตรียมไฟล์ .so (หรือ .dll บน Windows) ด้วยแอปพลิเคชันเหมือนกับที่ Qt ทำสำหรับ Android ฉันอ่าน เหตุใดโปรแกรมสั่งการของ Rust ถึงมีขนาดใหญ่มาก และคอมไพล์ด้วย
cargo rustc -- -C prefer-dynamic
เมื่อฉันรันโปรแกรม ฉันได้รับข้อผิดพลาดนี้:
% target/debug/t_pro
target/debug/t_pro: error while loading shared libraries: libstd-a021829e87e39dcf.so: cannot open shared object file: No such file or directory