[Bug 766287] Cross compiling gstreamer-1.8.1 for iOS arm64 fails on Mac OS X 10.11.4 and Xcode 7.3.0
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Wed May 11 20:37:54 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=766287
--- Comment #2 from Elvis Dowson <elvis.dowson at gmail.com> ---
I was able to progress a little bit by running the bootstrap command for the
arm64 architecture. Bootstrapping was mentioned for the macosx build, but the
documentation didn't state that it had to be run for every architecture that
you plan to build.
$ ./cerbero-uninstalled -c config/cross-ios-arm64.cbc bootstrap
$ ./cerbero-uninstalled -c config/cross-ios-arm64.cbc package gstreamer-1.0
However it fails a little further with bzip2:
-----> Step done
[(12/86) bzip2 -> compile ]
clang -L/Library/Frameworks/GStreamer.framework/Versions/1.0/lib -arch arm64
-pipe -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk
-miphoneos-version-min=6.0 -Wl,-iphoneos_version_min,6.0 -Wl,-undefined,error
-Wl,-headerpad_max_install_names -Wno-error=unused-command-line-argument
-shared -Wl,-install_name -Wl,libbz2.1.0.dylib -o libbz2.1.0.6.dylib
blocksort.o huffman.o crctable.o randtable.o compress.o decompress.o bzlib.o
rm -f libbz2.1.0.dylib
rm -f libbz2.dylib
ln -s libbz2.1.0.6.dylib libbz2.1.0.dylib
ln -s libbz2.1.0.6.dylib libbz2.dylib
clang -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -arch arm64 -pipe -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk
-miphoneos-version-min=6.0 -Wall -g -Os -Wno-error=format-nonliteral
-Wno-error=implicit-function-declaration
-L/Library/Frameworks/GStreamer.framework/Versions/1.0/lib -arch arm64 -pipe
-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk
-miphoneos-version-min=6.0 -Wl,-iphoneos_version_min,6.0 -Wl,-undefined,error
-Wl,-headerpad_max_install_names -Wno-error=unused-command-line-argument -o
bzip2 bzip2.o -L. -lbz2
ld: warning: ignoring file
/Library/Frameworks/GStreamer.framework/Versions/1.0/lib/libbz2.dylib, file was
built for x86_64 which is not the architecture being linked (arm64):
/Library/Frameworks/GStreamer.framework/Versions/1.0/lib/libbz2.dylib
Undefined symbols for architecture arm64:
"_BZ2_bzRead", referenced from:
_uncompress in bzip2.o
_testf in bzip2.o
"_BZ2_bzReadClose", referenced from:
_uncompress in bzip2.o
_testf in bzip2.o
"_BZ2_bzReadGetUnused", referenced from:
_uncompress in bzip2.o
_testf in bzip2.o
"_BZ2_bzReadOpen", referenced from:
_uncompress in bzip2.o
_testf in bzip2.o
"_BZ2_bzWrite", referenced from:
_compress in bzip2.o
"_BZ2_bzWriteClose64", referenced from:
_compress in bzip2.o
"_BZ2_bzWriteOpen", referenced from:
_compress in bzip2.o
"_BZ2_bzlibVersion", referenced from:
_main in bzip2.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [bzip2] Error 1
Running command 'make -f Makefile-libbz2_dylib; make EXT='
Recipe 'bzip2' failed at the build step 'compile'
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list