awcast 如果用glibc编译失败
-
CFLAGS="-Os -pipe -march=armv7-a -mtune=cortex-a7 -mfpu=neon -fno-caller-saves -Wno-unused-result -mfloat-abi=hard -Wformat -Werror=format-security -fPIC -D_FORTIFY_SOURCE=2 -Wl,-z,now -Wl,-z,relro -DCONF_AWCAST_DLNA_ENABLE -DCONF_AWCAST_MIRACAST_ENABLE -DCONF_AWCAST_AIRPLAY_ENABLE -I/opt/H133/H133-lianhe/out/h133-p2/staging_dir/target/usr/include -I/opt/H133/H133-lianhe/out/h133-p2/staging_dir/target/include -I/opt/H133/H133-lianhe/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-glibc/toolchain/usr/include -I/opt/H133/H133-lianhe/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-glibc/toolchain/include " CXXFLAGS="-Os -pipe -march=armv7-a -mtune=cortex-a7 -mfpu=neon -fno-caller-saves -Wno-unused-result -mfloat-abi=hard -Wformat -Werror=format-security -fPIC -D_FORTIFY_SOURCE=2 -Wl,-z,now -Wl,-z,relro -DCONF_AWCAST_DLNA_ENABLE -DCONF_AWCAST_MIRACAST_ENABLE -DCONF_AWCAST_AIRPLAY_ENABLE -Wno-virtual-dtor -I/opt/H133/H133-lianhe/out/h133-p2/staging_dir/target/usr/include -I/opt/H133/H133-lianhe/out/h133-p2/staging_dir/target/include -I/opt/H133/H133-lianhe/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-glibc/toolchain/usr/include -I/opt/H133/H133-lianhe/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-glibc/toolchain/include " LDFLAGS="-L/opt/H133/H133-lianhe/out/h133-p2/staging_dir/target/usr/lib -L/opt/H133/H133-lianhe/out/h133-p2/staging_dir/target/lib -L/opt/H133/H133-lianhe/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-glibc/toolchain/usr/lib -L/opt/H133/H133-lianhe/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-glibc/toolchain/lib -specs=/opt/H133/H133-lianhe/build/hardened-ld-pie.specs -znow -zrelro " LIBS="" make -j1 -C /opt/H133/H133-lianhe/out/h133-p2/compile_dir/target/awcast/. AR="arm-openwrt-linux-gnueabi-ar" AS="arm-openwrt-linux-gnueabi-gcc -c -Os -pipe -march=armv7-a -mtune=cortex-a7 -mfpu=neon -fno-caller-saves -Wno-unused-result -mfloat-abi=hard -Wformat -Werror=format-security -fPIC -D_FORTIFY_SOURCE=2 -Wl,-z,now -Wl,-z,relro -DCONF_AWCAST_DLNA_ENABLE -DCONF_AWCAST_MIRACAST_ENABLE -DCONF_AWCAST_AIRPLAY_ENABLE" LD=arm-openwrt-linux-gnueabi-ld NM="arm-openwrt-linux-gnueabi-nm" CC="arm-openwrt-linux-gnueabi-gcc" GCC="arm-openwrt-linux-gnueabi-gcc" CXX="arm-openwrt-linux-gnueabi-g++" RANLIB="arm-openwrt-linux-gnueabi-ranlib" STRIP=arm-openwrt-linux-gnueabi-strip OBJCOPY=arm-openwrt-linux-gnueabi-objcopy OBJDUMP=arm-openwrt-linux-gnueabi-objdump SIZE=arm-openwrt-linux-gnueabi-size CROSS="arm-openwrt-linux-gnueabi-" ARCH="arm" CMAKE_COMMAND='/opt/H133/H133-lianhe/out/host/bin/cmake' CMAKE_DISABLE_cmake_check_build_system=1 ; make[4]: Entering directory '/opt/H133/H133-lianhe/out/h133-p2/compile_dir/target/awcast' make[5]: Entering directory '/opt/H133/H133-lianhe/out/h133-p2/compile_dir/target/awcast' make[6]: Entering directory '/opt/H133/H133-lianhe/out/h133-p2/compile_dir/target/awcast' make[6]: Leaving directory '/opt/H133/H133-lianhe/out/h133-p2/compile_dir/target/awcast' [ 28%] Built target tinyui make[6]: Entering directory '/opt/H133/H133-lianhe/out/h133-p2/compile_dir/target/awcast' make[6]: Leaving directory '/opt/H133/H133-lianhe/out/h133-p2/compile_dir/target/awcast' make[6]: Entering directory '/opt/H133/H133-lianhe/out/h133-p2/compile_dir/target/awcast' [ 35%] Linking C executable awcast CMakeFiles/awcast.dir/wireless_display.c.o: In function `wd_start_airplay': wireless_display.c:(.text+0x344): undefined reference to `CWA_SetRes' collect2: error: ld returned 1 exit status CMakeFiles/awcast.dir/build.make:303: recipe for target 'awcast' failed make[6]: *** [awcast] Error 1 make[6]: Leaving directory '/opt/H133/H133-lianhe/out/h133-p2/compile_dir/target/awcast' CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/awcast.dir/all' failed make[5]: *** [CMakeFiles/awcast.dir/all] Error 2 make[5]: Leaving directory '/opt/H133/H133-lianhe/out/h133-p2/compile_dir/target/awcast' Makefile:127: recipe for target 'all' failed make[4]: *** [all] Error 2 make[4]: Leaving directory '/opt/H133/H133-lianhe/out/h133-p2/compile_dir/target/awcast' Makefile:130: recipe for target '/opt/H133/H133-lianhe/out/h133-p2/compile_dir/target/awcast/.built' failed make[3]: *** [/opt/H133/H133-lianhe/out/h133-p2/compile_dir/target/awcast/.built] Error 2 make[3]: Leaving directory '/opt/H133/H133-lianhe/package/allwinner/homlet/awcast' package/Makefile:192: recipe for target 'package/allwinner/homlet/awcast/compile' failed make[2]: *** [package/allwinner/homlet/awcast/compile] Error 2 make[2]: Leaving directory '/opt/H133/H133-lianhe' package/Makefile:189: recipe for target '/opt/H133/H133-lianhe/out/h133-p2/staging_dir/target/stamp/.package_compile' failed make[1]: *** [/opt/H133/H133-lianhe/out/h133-p2/staging_dir/target/stamp/.package_compile] Error 2 make[1]: Leaving directory '/opt/H133/H133-lianhe' /opt/H133/H133-lianhe/build/toplevel.mk:304: recipe for target 'world' failed make: *** [world] Error 2 [2]+ Done $T/tools/build/buildserver --path $T 2> /dev/null 1>&2 #### make failed to build some targets (02:53 (mm:ss)) ####
-
$ grep CWA_SetRes -r external/ external/awcast/src/wireless_display.c: CWA_SetRes(CWA_RES_MID); external/awcast/src/airplay/include/coolserver.h:int CWA_SetRes(int res); Binary file external/awcast/src/airplay/lib/lib32/openwrt-arm-musl/libcoolserver.so matches Binary file external/awcast/src/airplay/lib/lib32/openwrt-arm-musl/libcoolserver_s.a matches
只有 musl 实现了 CWA_SetRes,glibc没有实现。
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号