[gst-devel] need for help on gstreamer cross compiling

Stefan Kost ensonic at hora-obscura.de
Sat Jun 17 13:27:45 CEST 2006


hi,

configure seem to pickup linbux components, which is bad. Your configure
run need to run in isolation. In this case it seems to find check.h
(which is used for unit-tests) and thus also build some code in
gstreamer that uses it. As a quick workaround you should be able to
disable the tests.

Stefan

Am Mittwoch, den 14.06.2006, 14:56 +0800 schrieb 龚 元晖:
> Hello,
> I compiled gstreamer-0.10.6 on desktop redhat9, and it works well. but I 
> met problem when I trying to compile it for ARM  platform. please see 
> detailes below, any help or suggestion are much appreciated.
> 
> 1) uncompress gstreamer to /tmp/gstreamer-0.10.6 directory
> 2) cd /tmp/gstreamer-0.10.6, issue the following command to create Makefile
>    CC=arm-unknown-linux-gnu-gcc ./configure --prefix=/usr/arm 
> --host=arm=unknown-linux-gnu
>    (please note that "arm-unknown-linux-gnu-gcc" is cross compiler I made)
> 3) then issue "make" to begin the compiling
> 4) errors occured when compiling file gstcheck.c. because one .h file 
> (check.h) can't be found, which included by gstcheck.h, then included by 
> gstcheck.c
> 5) also one interesting thing is that files in direcotry 
> 'gstreamer-0.10.6/libs/gst/check' are not compiled when compiling gstreamer 
> for desktop linux, but for arm platform it will be compiled, then the above 
> error occured.(gstcheck.c in under this directory)
> 
> 
> 
> Making all in check
> make[4]: Entering directory `/tmp/gstreamer-0.10.6/libs/gst/check'
> if /bin/sh ../../../libtool --tag=CC --mode=compile 
> arm-unknown-linux-gnu-gcc -DHA
> VE_CONFIG_H -I. -I. -I../../..    -I../../../libs -I../../.. -I../../.. 
> -pthread -
> I/usr/arm/include/glib-2.0 -I/usr/arm/lib/glib-2.0/include 
> -I/usr/arm/include/libx
> ml2   -Wall  -g   -DGST_DISABLE_DEPRECATED  -g -O2 -MT 
> libgstcheck_0.10_la-gstchec
> k.lo -MD -MP -MF ".deps/libgstcheck_0.10_la-gstcheck.Tpo" -c -o 
> libgstcheck_0.10_l
> a-gstcheck.lo `test -f 'gstcheck.c' || echo './'`gstcheck.c; \
> then mv -f ".deps/libgstcheck_0.10_la-gstcheck.Tpo" 
> ".deps/libgstcheck_0.10_la-gst
> check.Plo"; else rm -f ".deps/libgstcheck_0.10_la-gstcheck.Tpo"; exit 1; fi
>  arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../.. 
> -I../../../libs -I..
> /../.. -I../../.. -pthread -I/usr/arm/include/glib-2.0 
> -I/usr/arm/lib/glib-2.0/inc
> lude -I/usr/arm/include/libxml2 -Wall -g -DGST_DISABLE_DEPRECATED -g -O2 
> -MT libgs
> tcheck_0.10_la-gstcheck.lo -MD -MP -MF 
> .deps/libgstcheck_0.10_la-gstcheck.Tpo -c g
> stcheck.c  -fPIC -DPIC -o .libs/libgstcheck_0.10_la-gstcheck.o
> In file included from gstcheck.c:30:
> gstcheck.h:30:19: check.h: No such file or directory
> gstcheck.c: In function `gst_check_log_critical_func':
> gstcheck.c:66: warning: implicit declaration of function `fail'
> gstcheck.c: In function `gst_check_message_error':
> gstcheck.c:108: warning: implicit declaration of function `fail_unless'
> gstcheck.c: In function `gst_check_setup_element':
> gstcheck.c:135: warning: implicit declaration of function `fail_if'
> gstcheck.c:136: warning: passing arg 1 of `g_atomic_int_get' discards 
> qualifiers f
> rom pointer target type
> gstcheck.c: In function `gst_check_teardown_element':
> gstcheck.c:108: warning: implicit declaration of function `fail_unless'
> gstcheck.c: In function `gst_check_setup_element':
> gstcheck.c:135: warning: implicit declaration of function `fail_if'
> gstcheck.c:136: warning: passing arg 1 of `g_atomic_int_get' discards 
> qualifiers f
> rom pointer target type
> gstcheck.c: In function `gst_check_teardown_element':
> gstcheck.c:147: warning: passing arg 1 of `g_atomic_int_get' discards 
> qualifiers f
> rom pointer target type
> gstcheck.c: In function `gst_check_setup_src_pad':
> gstcheck.c:163: warning: passing arg 1 of `g_atomic_int_get' discards 
> qualifiers f
> rom pointer target type
> gstcheck.c:168: warning: passing arg 1 of `g_atomic_int_get' discards 
> qualifiers f
> rom pointer target type
> gstcheck.c:174: warning: passing arg 1 of `g_atomic_int_get' discards 
> qualifiers f
> rom pointer target type
> gstcheck.c: In function `gst_check_teardown_src_pad':
> gstcheck.c:186: warning: passing arg 1 of `g_atomic_int_get' discards 
> qualifiers f
> rom pointer target type
> gstcheck.c:192: warning: passing arg 1 of `g_atomic_int_get' discards 
> qualifiers f
> rom pointer target type
> gstcheck.c:197: warning: passing arg 1 of `g_atomic_int_get' discards 
> qualifiers f
> rom pointer target type
> gstcheck.c: In function `gst_check_setup_sink_pad':
> gstcheck.c:225: warning: passing arg 1 of `g_atomic_int_get' discards 
> qualifiers f
> rom pointer target type
> gstcheck.c: In function `gst_check_teardown_sink_pad':
> gstcheck.c:241: warning: passing arg 1 of `g_atomic_int_get' discards 
> qualifiers f
> rom pointer target type
> gstcheck.c:246: warning: passing arg 1 of `g_atomic_int_get' discards 
> qualifiers f
> rom pointer target type
> make[4]: *** [libgstcheck_0.10_la-gstcheck.lo] Error 1
> make[4]: Leaving directory `/tmp/gstreamer-0.10.6/libs/gst/check'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/tmp/gstreamer-0.10.6/libs/gst'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/tmp/gstreamer-0.10.6/libs'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/tmp/gstreamer-0.10.6'
> make: *** [all] Error 2
> [root at localhost gstreamer-0.10.6]#
> 
> _________________________________________________________________
> 免费下载 MSN Explorer:   http://explorer.msn.com/lccn  
> 
> 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel





More information about the gstreamer-devel mailing list