[oe] ffmpeg compile error
axel lin
axel.lin at gmail.com
Thu Nov 23 09:41:38 UTC 2006
hi list,
I got below error messages when bitbake ffmpeg.
NOTE: build 200611231701: started
OE Build Configuration:
BB_VERSION = "1.6.3"
OE_REVISION = "a070a3b126e8ee81976fc029ae92f485cc8c6248"
TARGET_ARCH = "arm"
TARGET_OS = "linux-gnueabi"
MACHINE = "mainstone"
DISTRO = "angstrom"
DISTRO_VERSION = "test-20061123"
TARGET_FPU = "soft"
NOTE: preferred version 2.5 of glibc not available
NOTE: package ffmpeg-0.4.9-pre1: started
NOTE: package ffmpeg-0.4.9-pre1-r1: task do_compile: started
NOTE: SITE files /opt/oe/org.openembedded.dev/site/endian-little
/opt/oe/org.openembedded.dev/site/arm-linux
ERROR: function do_compile failed
ERROR: log data follows
(/opt/oe/build/tmp/work/armv5te-angstrom-linux-gnueabi/ffmpeg-0.4.9-pre1-r1/temp/log.do_compile.11809)
| NOTE: make
| make -C libavcodec all
| make[1]: Entering directory
`/opt/oe/build/tmp/work/armv5te-angstrom-linux-gnueabi/ffmpeg-0.4.9-pre1-r1/ffmpeg-0.4.9-pre1/libavcodec'
| ccache arm-angstrom-linux-gnueabi-gcc -march=armv5te -mtune=xscale
-O3 -Wall -isystem/opt/oe/build/tmp/staging/arm-angstrom-linux-gnueabi/include
-O -g -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -D_GNU_SOURCE -fPIC -DPIC -c -o common.o common.c
| In file included from avcodec.h:14,
| from common.c:28:
| common.h:69: error: array type has incomplete element type
| common.h:71: error: array type has incomplete element type
| make[1]: *** [common.o] Error 1
| make[1]: Leaving directory
`/opt/oe/build/tmp/work/armv5te-angstrom-linux-gnueabi/ffmpeg-0.4.9-pre1-r1/ffmpeg-0.4.9-pre1/libavcodec'
| make: *** [lib] Error 2
| FATAL: oe_runmake failed
NOTE: Task failed:
/opt/oe/build/tmp/work/armv5te-angstrom-linux-gnueabi/ffmpeg-0.4.9-pre1-r1/temp/log.do_compile.11809
NOTE: package ffmpeg-0.4.9-pre1-r1: task do_compile: failed
ERROR: TaskFailed event exception, aborting
NOTE: package ffmpeg-0.4.9-pre1: failed
ERROR: Build of ffmpeg failed
axel at kdc:/opt/oe/build$
I use below steps to fix it.
1. apply the gcc4-fix patch from
http://svn.cross-lfs.org/svn/repos/patches/ffmpeg/ffmpeg-0.4.9-pre1-gcc4-1.patch
2. comment out below code in dsputil.h
--- dsputil.h.ori 2006-11-23 17:30:37.000000000 +0800
+++ dsputil.h 2006-11-23 17:31:21.000000000 +0800
@@ -554,24 +554,4 @@
return score;\
}
-#ifndef HAVE_LRINTF
-/* XXX: add ISOC specific test to avoid specific BSD testing. */
-/* better than nothing implementation. */
-/* btw, rintf() is existing on fbsd too -- alex */
-static inline long int lrintf(float x)
-{
-#ifdef CONFIG_WIN32
- /* XXX: incorrect, but make it compile */
- return (int)(x);
-#else
- return (int)(rint(x));
-#endif
-}
-#else
-#ifndef _ISOC9X_SOURCE
-#define _ISOC9X_SOURCE
-#endif
-#include <math.h>
-#endif
-
#end
3. comment out EXTRALIBS += -lpostproc in
build/tmp/work/armv5te-angstrom-linux-gnueabi/ffmpeg-0.4.9-pre1-r1/ffmpeg-0.4.9-pre1/libavcodec/Makefile
--- Makefile.ori 2006-11-23 17:32:20.000000000 +0800
+++ Makefile 2006-11-23 17:32:33.000000000 +0800
@@ -89,7 +89,7 @@
ifeq ($(CONFIG_PP),yes)
ifeq ($(SHARED_PP),yes)
-EXTRALIBS += -lpostproc
+#EXTRALIBS += -lpostproc
else
# LIBS += libpostproc/libpostproc.a ... should be fixed
OBJS += libpostproc/postprocess.o
Not sure if this is the correct way to fix ffmpeg compile problem.
Or is any fix already available to fix the compile problem?
Regards,
Axel
More information about the Openembedded-devel
mailing list