Got the latest version ffmpeg4android, and compile it on my platform using ndk-r9d, ubuntu-64, which has two problems:
1."undefined refference to sincos"
and so on, a lot of errors just like this, but the compiling process can just keep going, what should i do if i want to solve this?
2."libavcodec.so has text relocations"
really i still don't understand this after surveying, i can see many people asking but no one give an correct answer, could anyone solve this?
email: hoi72008@sina.com
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Basically, the problem You have is caused because You configure and
build FFmpeg against NDK system root and libraries. But when You put
them on Your system, and try to build something, they work and are
linking against bionic libraries from android system root. It happens
that these two are different. Solution - try to exclude the codec
which is using missing functions, or create some macro to avoid them.
Regarding text relocations, this should be fixed in my make files,
there is a flag for this (+++ LOCAL_LDFLAGS :=
-Wl,--no-warn-shared-textrel)
Got the latest version ffmpeg4android, and compile it on my platform using ndk-r9d, ubuntu-64, which has two problems:
1."undefined refference to sincos"
and so on, a lot of errors just like this, but the compiling process can just keep going, what should i do if i want to solve this?
2."libavcodec.so has text relocations"
really i still don't understand this after surveying, i can see many people asking but no one give an correct answer, could anyone solve this?
email: hoi72008@sina.com
plus, the tool i wrote compiled with static-lib could work well, does not work well while compiled with shared-lib, why is this happening?
many thanks!!!
MIssing sincos is a long known problem I reported a while ago.
However, there is still no proper solution.
https://code.google.com/p/android/issues/detail?id=38423
Basically, the problem You have is caused because You configure and
build FFmpeg against NDK system root and libraries. But when You put
them on Your system, and try to build something, they work and are
linking against bionic libraries from android system root. It happens
that these two are different. Solution - try to exclude the codec
which is using missing functions, or create some macro to avoid them.
Regarding text relocations, this should be fixed in my make files,
there is a flag for this (+++ LOCAL_LDFLAGS :=
-Wl,--no-warn-shared-textrel)
Best regards
Srdjan
2015-04-24 11:45 GMT+02:00 derekzhuo derekzhuo@users.sf.net:
The tool ffmpeg compile with static lib in the project work fine, but ffmpeg(shared version) would hang.
And it goes the same for my tool, i found that i just hang on function "avformat_find_stream_into()", have you ever encounter this?
thank u!
Last edit: derekzhuo 2015-04-24
to tranform video format, instruction is like this:
have you ever encountered this?
thank you.
Sorry, I cant tell anything without debugging.
thanks any way!