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

compile in centos 7, using ndk14c ,find error #111

Closed
mAndroidNovice opened this issue Oct 31, 2019 · 1 comment
Closed

compile in centos 7, using ndk14c ,find error #111

mAndroidNovice opened this issue Oct 31, 2019 · 1 comment

Comments

@mAndroidNovice
Copy link

/tmp/ccKUhGO3.s:30: rdhi, rdlo and rm must all be different
CXX libSBRdec/src/psbitdec.lo
CXX libSBRdec/src/psdec.lo
/tmp/ccOAalDE.s: Assembler messages:
/tmp/ccOAalDE.s:30: rdhi, rdlo and rm must all be different
CXX libSBRdec/src/psdec_drm.lo
libSBRdec/src/lpp_tran.cpp:122:21: fatal error: log/log.h: No such file or directory
#include "log/log.h"
^
compilation terminated.
CXX libSBRdec/src/psdecrom_drm.lo
make: *** [libSBRdec/src/lpp_tran.lo] 错误 1
make: *** 正在等待未完成的任务....
/tmp/ccN8RLfv.s: Assembler messages:
/tmp/ccN8RLfv.s:30: rdhi, rdlo and rm must all be different
CXX libSBRdec/src/lpp_tran.lo
libSBRdec/src/lpp_tran.cpp:122:21: fatal error: log/log.h: No such file or directory
#include "log/log.h"
^
compilation terminated.
make: *** [libSBRdec/src/lpp_tran.lo] error 1

I can't understand what's mean and how to resolve it.
I google it and can't find the method how to resolve it.
please help me!

@mstorsjo
Copy link
Owner

Building this project for Andoid actually isn't really supported, for a few reasons:

  • fdk-aac already is available as a system component (accessible via the MediaCodec APIs) on Android since Android 4.1
  • The license of fdk-aac is problematic with respect to redistribution

The error about "rdhi, rdlo and rm must all be different" probably is due to you trying to build for ARMv5, while the project's arm assembly code probably only supports ARMv7.

The second error about log/log.h being missing is because when fdk-aac is built as a part of Android, they have a few sets of android-specific logging in a few places in that file (within #ifdef __ANDROID__), that only works when built as part of the platform, not when built with the NDK. You can manually just remove all of these ifdefs from the file if you want to try to fix the build that way.

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

2 participants