首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Tizen交叉编译ffmpeg

Tizen交叉编译ffmpeg
EN

Stack Overflow用户
提问于 2022-03-31 17:46:56
回答 1查看 150关注 0票数 0

我试着用工具链将Tizen TV的ffmpeg编译成一个静态库。这是我正在使用的脚本:

代码语言:javascript
复制
#!/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:没有这样的文件或目录#包括

EN

回答 1

Stack Overflow用户

发布于 2022-04-06 07:01:54

相反,如果我们可以设置Tizen,则tizen gbs构建将是有帮助的。

我已经验证了使用

https://docs.tizen.org/platform/developing/building/

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71697050

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档