-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to resolve build error: unknown type name '*' #5
Comments
Ahh, first I don't think the Anyway in all honesty, this is a very strange error. Can you give me the full output instead of a summary? That may give me better context. Also what is your OS? But from what I gather, this definitely looks like an FFmpeg build issue. I wonder, this crate is supposed to be self contained, but perhaps this is still linking against some system dependency somehow (maybe the ffmpeg config flag Oh, I noticed you had the Another possibility I think, on my Mac I've built this using clang, and on Linux I'm pretty sure I've always used llvm/clang (e.g. here is a Dockerfile that builds this crate as a dependency). Maybe this is a bug in some codepath trigged by GCC. Do you have clang installed and available on your path? Update: also just to be safe, when testing the GCC idea, |
I am using macOS Mojave and running in debug mode does not help. I also tried to build the example on my Ubuntu 16.04 and got same error. Below are more information, including clang version, llvm version and error details. Hope they are helpful for locating the reason :)
|
Hi, I got build error: unknown type name '*' when trying to build this crate:
LLVM_CONFIG_PATH=/usr/local/opt/llvm/bin/llvm-config cargo run --release --example h264_video_dec
--- stderr
/w/imager-io/ffmpeg-dev-rs/target/release/build/ffmpeg-dev-81b52e898a9ea16c/out/FFmpeg-FFmpeg-2722fc2/libavutil/buffer_internal.h:44:5: error: unknown type name 'atomic_uint'
/w/imager-io/ffmpeg-dev-rs/target/release/build/ffmpeg-dev-81b52e898a9ea16c/out/FFmpeg-FFmpeg-2722fc2/libavutil/buffer_internal.h:89:5: error: unknown type name 'atomic_uint'
/w/imager-io/ffmpeg-dev-rs/target/release/build/ffmpeg-dev-81b52e898a9ea16c/out/FFmpeg-FFmpeg-2722fc2/libavcodec/error_resilience.h:64:5: error: unknown type name 'atomic_int'
...
The text was updated successfully, but these errors were encountered: