我正在尝试使用工具链将 Tizen TV 的 ffmpeg 编译为静态库。
这是我正在使用的脚本:
#!/bin/bash
function buildme
{
./configure --prefix=$PREFIX \
--target-os=linux \
--arch=$ARCH \
--cpu=armv7-a \
--enable-runtime-cpudetect \
--disable-doc \
--disable-ffmpeg \
--disable-ffplay \
--enable-cross-compile \
--enable-optimizations \
--disable-ffprobe \
--disable-devices \
--disable-avdevice \
--disable-debug \
--enable-pic \
--disable-shared \
--enable-gpl \
--enable-static \
--sysroot=/path-to-tizen-studio/tools/arm-linux-gnueabi-gcc-6.2/arm-tizen-linux-gnueabi \
--cross-prefix=${PLATFORM}/bin/$PLATFORM_PREFIX \
--extra-cflags="-O3 -std=c++11 -DHAVE_SYS_UIO_H=1 -Dipv6mr_interface=ipv6mr_ifindex -fasm -Wno-psabi -fno-short-enums -fno-strict-aliasing -finline-limit=300 -fpic $OPTIMIZE_CFLAGS" \
--enable-asm \
--extra-ldflags="-Wl,-rpath-link=$PLATFORM/lib -L$PLATFORM/lib -nostdlib" \
--cc=${CCOMPILER} \
$ADDITIONAL_CONFIGURE_FLAG
make clean
make V=1
make install
}
echo configuring....
PLATFORM=/path-to-tizen-studio/tools/arm-linux-gnueabi-gcc-6.2
PREFIX='pwd'/thridParty
PLATFORM_PREFIX=arm-linux-gnueabi-
ARCH=arm
CCOMPILER=${PLATFORM}/bin/arm-linux-gnueabi-g++
OPTIMIZE_CFLAGS="-marm"
buildme
echo end
我得到这个错误:/path-to-tizen-studio/tools/arm-linux-gnueabi-gcc-6.2/arm-tizen-linux-gnueabi/include/c++/6.2.1/arm-tizen-linux-gnueabi/bits/os_defines.h:39:22: fatal error: features.h: No such file or directory #include <features.h>
最佳答案
而是 Tizen gbs
如果我们可以设置 tizen env,那么 build 会很有帮助。
我已经使用
关于ffmpeg - 为 Tizen 交叉编译 ffmpeg,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71697050/