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

ffmpeg related errors after adding this recipe to the project #849

Closed
CoderCoderCoder opened this issue Aug 28, 2023 · 1 comment
Closed

Comments

@CoderCoderCoder
Copy link

Hello,
I have successfully built a kivy-ios based app, which runs perfectly fine (thanks a lot by the way for your great library!).
Now for additional functionality I need the python library "pydub", which requires "ffmpeg". So I built this library with the following commands:

  1. . venv/bin/activate
  2. toolchain build ffmpeg
  3. toolchain update myapp-ios
    Everything went smooth without any errors. Now when I am building my app in XCode, I get the following errors:

Undefined symbols for architecture arm64:
"_iconv", referenced from:
_avcodec_decode_subtitle2 in libavcodec.a(decode.o)
_getstr8 in libavformat.a(mpegts.o)
(maybe you meant: _SDL_iconv_close, _SDL_iconv_string , _SDL_iconv_open , _SDL_iconv )
"_iconv_close", referenced from:
_avcodec_open2 in libavcodec.a(avcodec.o)
_avcodec_decode_subtitle2 in libavcodec.a(decode.o)
_getstr8 in libavformat.a(mpegts.o)
(maybe you meant: _SDL_iconv_close)
"_iconv_open", referenced from:
_avcodec_open2 in libavcodec.a(avcodec.o)
_avcodec_decode_subtitle2 in libavcodec.a(decode.o)
_getstr8 in libavformat.a(mpegts.o)
(maybe you meant: _SDL_iconv_open)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have no idea what to do with it and how to fix it, so I truly hope to get some help. Many thanks in advance!
My iOS, MacOS and XCode are all the latest versions of the respective software. The Python virtual environment contains almost no packages, besides a few I needed. I built only kivy, python and pillow recipes prior to ffmpeg, nothing else.

@CoderCoderCoder
Copy link
Author

Same solution as here - #676 . I had to link manually the file "libiconv.tbd" from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib

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

1 participant