Open FrancisRussell opened 1 year ago
I have the same issue
I have a dirty fix on my fork. You can use it by adding this to Cargo.toml
[patch.crates-io]
audiopus_sys = { git = "https://github.com/WcaleNieWolny/audiopus_sys.git", branch = "stable-changes" }
I've been using
audiopus_sys
0.2.2 viaaudiopus
0.3.0-rc.0, In myCargo.toml
, I've used thestatic
option to ensure thatlibopus
is built from source. In an Ubuntu environment I've been cross compiling my project for thex86_64-pc-windows-gnu
andi686-pc-windows-gnu
targets. However, I have encountered linking issues due to stack-smashing protection (SSP). These manifest as follows:From what I can tell, the Opus library will compile using SSP functionality by default which is what causes these references. I was able to work around the issue by creating a
.cargo/config.toml
as follows:I also have a build for x86-64 musl, but did not encounter this issue.