我试着用工具链将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:致命错误:
.h:没有这样的文件或目录#包括
发布于 2022-04-06 07:01:54
相反,如果我们可以设置Tizen,则tizen gbs构建将是有帮助的。
我已经验证了使用
https://stackoverflow.com/questions/71697050
复制相似问题