Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sockets/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Compilation 在qnap上编译x264时出错_Compilation_Installation_Libx264_Qnap - Fatal编程技术网

Compilation 在qnap上编译x264时出错

Compilation 在qnap上编译x264时出错,compilation,installation,libx264,qnap,Compilation,Installation,Libx264,Qnap,我们在qnap上编译x264时面临问题。 我们需要使用x264库编译ffmpeg,qnap包有内置的x264 0.66库,但ffmpeg-0.9.2不支持太旧的x264版本,从源代码编译x264时会产生以下错误 [/share/MD0_DATA/.qpkg/x264-snapshot-20130208-2245] # make gcc -Wshadow -O3 -ffast-math -m32 -Wall -I. -I. -march=i686 -mfpmath=sse -msse -std=

我们在qnap上编译x264时面临问题。
我们需要使用x264库编译ffmpeg,qnap包有内置的x264 0.66库,但ffmpeg-0.9.2不支持太旧的x264版本,从源代码编译x264时会产生以下错误

[/share/MD0_DATA/.qpkg/x264-snapshot-20130208-2245] # make
gcc -Wshadow -O3 -ffast-math -m32  -Wall -I. -I. -march=i686 -mfpmath=sse -msse -std=gnu99  -I/opt/include    -I/opt/include   -fomit-frame-pointer -fno-tree-vectorize   -c -o x264.o x264.c
x264.c: In function 'help':
x264.c:401: error: 'X264_VERSION' undeclared (first use in this function)
x264.c:401: error: (Each undeclared identifier is reported only once
x264.c:401: error: for each function it appears in.)
make: *** [x264.o] Error 1


[/share/MD0_DATA/.qpkg/x264-snapshot-20130208-2245] # cat /proc/version
Linux version 2.6.33.2 (root@NasX86-4) (gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)) #1 SMP Wed Dec 5 06:48:23 CST 2012

有人能帮我吗?

X264_VERSION define是在X264_config.h中通过调用VERSION.sh在配置脚本执行期间生成的。因此,要么它不是在x264_config.h中生成的(您的构建环境的某些故障,需要对config.log进行分析),要么您在包含路径的某个位置有旧的x264.h头,出于某种原因,使用了该路径而不是新的路径。

x264_VERSION define是在x264_config.h中通过调用VERSION.sh在配置脚本执行期间生成的。因此,要么它不是在x264_config.h中生成的(您的建筑环境的某些故障,需要对config.log进行分析),要么您在某个地方有旧的x264.h头,其中包含出于某种原因而使用的路径,而不是新的路径。

删除
--prefix=“path”
/configure
参数中的
为我修复了此错误。

/configure
参数中删除
--prefix=“path”
为我修复了此错误。

可能
版本。sh
没有执行权限。因此,
chmod 744 version.sh
然后重试配置和制作。

可能
version.sh
没有执行权限。因此,
chmod 744 version.sh
然后重试配置并生成