Jeff, Brian wrote:
The package was built for the latest Montavista kernel on the DM6446
DVEVM. Some additional work may be needed to port this to the latest
community open source Linux kernel for DaVinci.
I finally managed to get this GStreamber release at least built with
non-MV toolchain. Didn't try to run it yet. In case somebody finds it
useful some remarks what has to be done for this, at least for me ;)
Regarding open source part:
- You have to edit make_opensource.sh to adapt your paths, compiler etc.
- I edited above make script to use
make distclean
CC= ... ./configure ...
make -j4
make install
for each package for faster compilation
- To make configure of GLIB-2.12.4 happy I had to add
CC= ... glib_cv_stack_grows=no glib_cv_uscore=no
ac_cv_func_posix_getpwuid_r=yes glib_cv_monotonic_clock=no ./configure ...
to make_opensource.sh for glib configure.
- For me, GSTREAMER-0.10.11 and GST-PLUGINS_BASE-0.10.11 had some
issues with LD_LIBRARY_PATH=$GSTREAMER_DIR/lib and glib-genmarshal
(seems that you need the x86 one of this). For both packages you need
LD_LIBRARY_PATH set properly for configure, but then at build time
system tried to link against the x86 libraries. I worked around this
by setting LD_LIBRARY_PATH for configure but unset it while compilation:
CC= ... ./configure ...
# Avoid that x86 glib-genmarshal tries to look at ARM libraries...
export LD_LIBRARY_PATH=
make -j4
make install
# ... but reset LD_LIBRARY_PATH again
export LD_LIBRARY_PATH=$GSTREAMER_DIR/lib
- For LIBXML2-2.6.16 I had to apply
http://viewcvs.globus.org/viewcvs.cgi/libxml2/elfgcchack.h?r1=1.1.1.1&r2=1.1.1.1.16.1
(see attachment as well)
- To make GSTREAMER-0.10.11 configure stops cause it can't run it's
test programs, I had to edit exit in configure (see attachment). Any
better workaround/configure switch is welcome!
- MPEGTS_DEMUX package has hardcoded montavista related path. Remove
this, see attachment.
Regarding TI part:
- Download of gstreamer_tibuild.tar.gz as mentioned in SPRAAQ9 fails
cause it seems to be available nowhere. In consequence, it is packed
in setup-ti_dm_software_companion_for_gstreamer_davincidm6446.exe. See
http://wiki.davincidsp.com/index.php?title=GStreamer#Build_Steps
I used wine to unpack it under Linux.
- You have to edit make_tiplugins.sh to adapt your paths, compiler etc.
- Compilation is clean, but unfortunately there is one big pitfall:
ti_build comes with some *precompiled* binaries! In
ti_build/system_files_gstreamer you will find some precompiled
libraries (e.g. libce.so) which are *not* generated/compiled if you
call make_tiplugins.sh. Instead, libraries built with
make_tiplugins.sh will be linked against the precompiled libraries in
ti_build/system_files_gstreamer. And, if these files generated by TI
are incompatible with your toolchain/compiler/linker options, link
against these libraries will fail. And thats it.
Concrete, these libraries are generated with an EABI compatible
toolchain. This means that you need an EABI toolchain to compile/link
this GStreamer package. And, as I understand EABI, you then need a
complete EABI compatible target distribution (kernel, target binaries,
libraries etc).
We’ll also have a plain text or HTML doc up shortly on the Z3 Technology
site. They are getting their CVS / GIT ready.
Chris created a DaVinci wiki page
http://wiki.davincidsp.com/index.php?title=GStreamer
containing mainly the content of SPRAAQ9 and already some updates. As
noted on the page the wiki should replace SPRAAQ9. A wiki page is
easier to maintain/correct/update with help of all instead of a pdf
SPRAAQ9.
I just saw that Z3 has basically their page
http://www.z3technology.com/DaVinci%5FGStreamer/
up. This page mentions a zip archive for download with date 2008-02-02
and a git repository. Haven't looked into this yet if anything is
different to the version on TI page
http://focus.ti.com/dsp/docs/dspsplash.tsp?contentId=3100
(seems that some sync is necessary between the two download locations?)
Best regards
Dirk
Btw.: Would be nice if for git on
http://www.z3technology.com/DaVinci%5FGStreamer/Developers.htm
a git web interface would be available to be able to see whats inside
this repository.
--- ./mpegts_demux/autogen.sh_orig 2008-01-27 19:44:10.000000000 +0100
+++ ./mpegts_demux/autogen.sh 2008-01-27 19:44:18.000000000 +0100
@@ -47,7 +47,7 @@ toplevel_check $makefile
# aclocal
if test -f acinclude.m4; then rm acinclude.m4; fi
-tool_run "$aclocal" "-I m4 -I /opt/montavista/pro/share/aclocal $ACLOCAL_FLAGS"
+tool_run "$aclocal" "-I m4 $ACLOCAL_FLAGS"
tool_run "$libtoolize" "--copy --force"
tool_run "$autoheader"
--- ./gstreamer-0.10.11/configure_orig 2008-01-27 19:44:41.000000000 +0100
+++ ./gstreamer-0.10.11/configure 2008-01-27 19:44:47.000000000 +0100
@@ -29513,7 +29513,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
{ { echo "$as_me:$LINENO: error: Could not link libxml2 test program.
Check if you have the necessary dependencies." >&5
echo "$as_me: error: Could not link libxml2 test program. Check if you have
the necessary dependencies." >&2;}
- { (exit 1); exit 1; }; }
+# { (exit 1); exit 1; };
+}
fi
--- ./libxml2-2.6.16/elfgcchack.h_orig 2008-01-27 20:13:06.000000000 +0100
+++ ./libxml2-2.6.16/elfgcchack.h 2008-01-27 20:15:34.000000000 +0100
@@ -8,6 +8,12 @@
* autogenerated with xsltproc doc/elfgcchack.xsl doc/libxml2-api.xml
*/
+#ifdef IN_LIBXML
+#ifdef __GNUC__
+#ifdef PIC
+#ifdef linux
+#if (__GNUC__ == 3 && __GNUC_MINOR__ == 3)
+
#include "libxml/c14n.h"
#include "libxml/catalog.h"
#include "libxml/chvalid.h"
@@ -7638,3 +7644,9 @@ extern __typeof (xmlXPtrWrapLocationSet)
#define xmlXPtrWrapLocationSet xmlXPtrWrapLocationSet__internal_alias
#endif
+#endif
+#endif
+#endif
+#endif
+#endif
+
_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source