<div dir="ltr"><div>Hi,</div><div><br></div><div>I've solved the problem, by removing the offending libvpx.so and its folder, which was generated when I compiled for x86.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Sirius Wu <<a href="mailto:ccwu660601@gmail.com">ccwu660601@gmail.com</a>> 於 2019年10月13日 週日 下午2:48寫道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>HI,</div><div><br></div><div>I'm trying to build plugins-good-1.0 from master branch with the following command.</div><div><br></div><div>./cerbero-uninstalled -c ./config/cross-android-armv7.cbc build gst-plugins-good-1.0</div><div><br></div><div>I've successfully built the bad plugins, but for the good one errors occur for label [493/718].</div><div><br></div><div>I extracts the errors from log:</div><div><br></div><div>1. FAILED: ext/vpx/libgstvpx.so <br></div><div>2. ld.gold: error: .../cerbero/lib/libvpx.so: incompatible target<br>clang: error: linker command failed with exit code 1 (use -v to see invocation)</div><div>ninja: build stopped: subcommand failed.<br>3. Recipe 'gst-plugins-good-1.0' failed at the build step 'compile'<br>Fatal Error: Running ['sh', '-c', 'ninja -v -d keeprsp'], returncode 1<br></div><div><br></div><div>I've the following two questions:<br></div><div>1. If I do not need the libvpx, how can I removed it from the build process?</div><div>2. How can I fix the issue?<br></div><br><div>The whole log for [492/718] is listed below:</div><div><br></div><div>[492/718] /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/mapacode/git/cerbero/build/android-ndk-18/android-ndk-r18b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target armv7-none-linux-androideabi16 --sysroot /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/mapacode/git/cerbero/build/android-ndk-18/android-ndk-r18b/platforms/android-16/arch-arm -o ext/vpx/libgstvpx.so 'ext/vpx/d463a24@@gstvpx@sha/gstvp8dec.c.o' 'ext/vpx/d463a24@@gstvpx@sha/gstvp8enc.c.o' 'ext/vpx/d463a24@@gstvpx@sha/gstvp8utils.c.o' 'ext/vpx/d463a24@@gstvpx@sha/gstvp9dec.c.o' 'ext/vpx/d463a24@@gstvpx@sha/gstvp9enc.c.o' 'ext/vpx/d463a24@@gstvpx@sha/gstvpxdec.c.o' 'ext/vpx/d463a24@@gstvpx@sha/gstvpxenc.c.o' 'ext/vpx/d463a24@@gstvpx@sha/plugin.c.o' -Wl,--no-undefined -Wl,--as-needed -shared -fPIC -Wl,--start-group -Wl,-soname,libgstvpx.so -Wl,-Bsymbolic-functions /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/<a href="http://libgstbase-1.0.so" target="_blank">libgstbase-1.0.so</a> /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/<a href="http://libgstreamer-1.0.so" target="_blank">libgstreamer-1.0.so</a> /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/<a href="http://libgobject-2.0.so" target="_blank">libgobject-2.0.so</a> /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/<a href="http://libglib-2.0.so" target="_blank">libglib-2.0.so</a> /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/libintl.so /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/<a href="http://libgsttag-1.0.so" target="_blank">libgsttag-1.0.so</a> /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/<a href="http://libgstvideo-1.0.so" target="_blank">libgstvideo-1.0.so</a> /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/libvpx.so -lm -Wl,--end-group -L/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib -gcc-toolchain /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/mapacode/git/cerbero/build/android-ndk-18/android-ndk-r18b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 -fPIC -no-canonical-prefixes -Wl,-no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--gc-sections -Wl,-dynamic-linker,/system/bin/linker -Wl,--warn-shared-textrel -Wl,--exclude-libs,libatomic.a -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libunwind.a -Wl,--fix-cortex-a8 -Wl,-z,nocopyreloc -L/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/mapacode/git/cerbero/build/android-ndk-18/android-ndk-r18b/platforms/android-16/arch-arm/usr/lib -fuse-ld=gold -L/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib <br>FAILED: ext/vpx/libgstvpx.so <br>/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/mapacode/git/cerbero/build/android-ndk-18/android-ndk-r18b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target armv7-none-linux-androideabi16 --sysroot /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/mapacode/git/cerbero/build/android-ndk-18/android-ndk-r18b/platforms/android-16/arch-arm -o ext/vpx/libgstvpx.so 'ext/vpx/d463a24@@gstvpx@sha/gstvp8dec.c.o' 'ext/vpx/d463a24@@gstvpx@sha/gstvp8enc.c.o' 'ext/vpx/d463a24@@gstvpx@sha/gstvp8utils.c.o' 'ext/vpx/d463a24@@gstvpx@sha/gstvp9dec.c.o' 'ext/vpx/d463a24@@gstvpx@sha/gstvp9enc.c.o' 'ext/vpx/d463a24@@gstvpx@sha/gstvpxdec.c.o' 'ext/vpx/d463a24@@gstvpx@sha/gstvpxenc.c.o' 'ext/vpx/d463a24@@gstvpx@sha/plugin.c.o' -Wl,--no-undefined -Wl,--as-needed -shared -fPIC -Wl,--start-group -Wl,-soname,libgstvpx.so -Wl,-Bsymbolic-functions /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/<a href="http://libgstbase-1.0.so" target="_blank">libgstbase-1.0.so</a> /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/<a href="http://libgstreamer-1.0.so" target="_blank">libgstreamer-1.0.so</a> /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/<a href="http://libgobject-2.0.so" target="_blank">libgobject-2.0.so</a> /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/<a href="http://libglib-2.0.so" target="_blank">libglib-2.0.so</a> /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/libintl.so /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/<a href="http://libgsttag-1.0.so" target="_blank">libgsttag-1.0.so</a> /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/<a href="http://libgstvideo-1.0.so" target="_blank">libgstvideo-1.0.so</a> /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/libvpx.so -lm -Wl,--end-group -L/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib -gcc-toolchain /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/mapacode/git/cerbero/build/android-ndk-18/android-ndk-r18b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 -fPIC -no-canonical-prefixes -Wl,-no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--gc-sections -Wl,-dynamic-linker,/system/bin/linker -Wl,--warn-shared-textrel -Wl,--exclude-libs,libatomic.a -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libunwind.a -Wl,--fix-cortex-a8 -Wl,-z,nocopyreloc -L/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/mapacode/git/cerbero/build/android-ndk-18/android-ndk-r18b/platforms/android-16/arch-arm/usr/lib -fuse-ld=gold -L/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib <br>/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/mapacode/git/cerbero/build/android-ndk-18/android-ndk-r18b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld.gold: error: /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/libvpx.so: incompatible target<br>clang: error: linker command failed with exit code 1 (use -v to see invocation)<br></div><div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><span></span>Sirius Wu<br></div></div></div></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><span></span>Sirius Wu<br></div></div></div></div></div></div></div></div>