Skip to content
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

Undefined symbols in architecture x86_64/arm64 #25

Open
ashutosh-samosa opened this issue Nov 29, 2017 · 4 comments
Open

Undefined symbols in architecture x86_64/arm64 #25

ashutosh-samosa opened this issue Nov 29, 2017 · 4 comments

Comments

@ashutosh-samosa
Copy link

Hello,
I get this Linker Error while building for simulator or device.

Undefined symbols for architecture x86_64:
"OBJC_CLASS$_FFBitstreamFilter", referenced from:
objc-class-ref in libFFmpegWrapper.a(FFmpegWrapper.o)
"OBJC_CLASS$_FFOutputFile", referenced from:
objc-class-ref in libFFmpegWrapper.a(FFmpegWrapper.o)
"OBJC_CLASS$_FFInputFile", referenced from:
objc-class-ref in libFFmpegWrapper.a(FFmpegWrapper.o)
"OBJC_CLASS$_FFOutputStream", referenced from:
objc-class-ref in libFFmpegWrapper.a(FFmpegWrapper.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have added the following frameworks & libraries
CoreMedia, VideoToolbox, libbz2, libbz, libiconv, libFFmpegWrapper.a

Please help.

@commando24
Copy link

@ashutosh-samosa have you found the solution ?

@commando24
Copy link

You need to set YES in build Active architecture setting. Everywhere in your project.

@chienfuchen32
Copy link

chienfuchen32 commented Aug 2, 2018

@ashutosh-samosa hi, let xcode compile code by including all the ffmpegWrapper/*.m and .h files.
extra libraries: AVFoundation, audioToolbox.
it works for me.

@xsown
Copy link

xsown commented Aug 24, 2018

@chienfuchen32 is right. In addition, remove the .pch file in the project. If your FFmpeg libs are grabbed with the latest version, there may be several compile errors to fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants