Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

[Android/IOS] Building with debug option fails #74

Closed
tanersener opened this issue Jan 29, 2019 · 2 comments
Closed

[Android/IOS] Building with debug option fails #74

tanersener opened this issue Jan 29, 2019 · 2 comments
Assignees
Labels
bug Something isn't working fixed

Comments

@tanersener
Copy link
Owner

tanersener commented Jan 29, 2019

Android arm64-v8a builds fail during linking with this error:

LD	libavutil/libavutil.so.56
libavutil/../compat/strtod.o: file not recognized: File format not recognized
clang70: error: linker command failed with exit code 1 (use -v to see invocation)
ffbuild/library.mak:102: recipe for target 'libavutil/libavutil.so.56' failed
make: *** [libavutil/libavutil.so.56] Error 1
make: *** Waiting for unfinished jobs....

other Android architectures fail again during linking with this error:

LD	libavutil/libavutil.so.56
/files/android-sdk/android-ndk-r18b/toolchains/mobile-ffmpeg-api-24-arm/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: libavutil/../compat/strtod.o:1:3: invalid character
/files/android-sdk/android-ndk-r18b/toolchains/mobile-ffmpeg-api-24-arm/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: libavutil/../compat/strtod.o:1:3: syntax error, unexpected $end
/files/android-sdk/android-ndk-r18b/toolchains/mobile-ffmpeg-api-24-arm/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: libavutil/../compat/strtod.o: not an object or archive

IOS architectures fail with this compilation error.

CC	libavcodec/dvdata.o
libavcodec/dvbsubdec.c:1430:9: error: 'system' is unavailable: not available on iOS
    if (system(command) != 0) {
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/stdlib.h:190:6: note: 'system' has been explicitly marked unavailable here
int      system(const char *) __DARWIN_ALIAS_C(system);
         ^
libavcodec/dvbsubdec.c:1436:9: error: 'system' is unavailable: not available on iOS
    if (system(command) != 0) {
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/stdlib.h:190:6: note: 'system' has been explicitly marked unavailable here
int      system(const char *) __DARWIN_ALIAS_C(system);
         ^
2 errors generated.
make: *** [libavcodec/dvbsubdec.o] Error 1
make: *** Waiting for unfinished jobs....
@tanersener tanersener self-assigned this Jan 29, 2019
@tanersener tanersener changed the title [Android] Building with debug option fails [Android/IOS] Building with debug option fails Jan 29, 2019
@tanersener tanersener reopened this Jan 29, 2019
@tanersener
Copy link
Owner Author

On Android, link time optimizations cause this error. They must be disabled on debug.

On IOS, -DDEBUG in CFLAGS cause this. It must be removed.

@tanersener tanersener added bug Something isn't working and removed needs-analysis labels Jan 31, 2019
@tanersener
Copy link
Owner Author

Fixed in development, issue will be closed when development is merged to master.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working fixed
Projects
None yet
Development

No branches or pull requests

1 participant