- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 893
Static libraries giving architecture error #2
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
Comments
You have to link with libbz2.dylib and libiconv.dylib. |
Thanks, Everything is fine now :) |
Glad I could help. |
Thanks . I encounter the same situation, and It can work for me . |
I don't know if it changed, but I had to link against |
HI all I'm also phasing same issue i just add above lib but still it is showing some errors like below Undefined symbols for architecture x86_64: please help me |
Have you link libz? |
yes libbz2.0.1.tbd and libbz2.tbd in xcode 7.2 |
You need libz instead of libbz2. By the way libbz2 is just a symlink to libbz2.0.1, so you don't have to link both. |
Thanks its working now |
I have linked libz, libiconv, libbz, but the errors are remains the same: Do anyone have some idea? I am getting mad... |
@kewlbear thank! you saved my day. |
Why does everyone always say "You have to link XYZ" but never "You have to link XYZ and here's how to do that"? Okay--so now I know what I have to do, but I have no idea how... |
@tjayrush Grab a good book on Xcode or google. You should learn such a basic stuff elsewhere. |
I am getting error Undefined symbols for architecture arm64: I have already added libiconv.tdb, libz.tdb,videotoolbox.framework,audiotoolbox.framework Please help |
I guess from the prefix “CM” you need CoreMedia framework. If you encounter this kind of error, you can always google the symbol causing the error. |
@kewlbear That works , Thank you so much. I did't noticed CM ... 100 Thumbs up |
Thank you for the CoreMedia.framework solution that helped me to fix an issue in another library. |
I am able to compile ffmpeg library but when integrate static library of ffmpeg its still giving undefined symbol error for various architecture.
I have tried with http://sourceforge.net/projects/ffmpeg-ios/postdownload?source=dlp too but this is giving same error
Undefined symbols for architecture armv7:
"_BZ2_bzDecompressInit", referenced from:
_matroska_decode_buffer in libavformat.a(matroskadec.o)
"_iconv", referenced from:
_avcodec_decode_subtitle2 in libavcodec.a(utils.o)
"_BZ2_bzDecompress", referenced from:
_matroska_decode_buffer in libavformat.a(matroskadec.o)
"_BZ2_bzDecompressEnd", referenced from:
_matroska_decode_buffer in libavformat.a(matroskadec.o)
"_iconv_open", referenced from:
_avcodec_open2 in libavcodec.a(utils.o)
_avcodec_decode_subtitle2 in libavcodec.a(utils.o)
"_iconv_close", referenced from:
_avcodec_open2 in libavcodec.a(utils.o)
_avcodec_decode_subtitle2 in libavcodec.a(utils.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The text was updated successfully, but these errors were encountered: