mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
version gst-feedback
Original commit message from CVS: version gst-feedback
This commit is contained in:
parent
acf210e3bf
commit
2183b65091
4 changed files with 209 additions and 83 deletions
|
@ -1,3 +1,10 @@
|
|||
2004-02-11 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* tools/Makefile.am:
|
||||
* tools/gst-feedback:
|
||||
* tools/gst-feedback-0.7:
|
||||
make gst-feedback versioned too for consistency
|
||||
|
||||
2004-02-11 David Schleef <ds@schleef.org>
|
||||
|
||||
* gst/gstpad.c: (gst_pad_link_intersect), (gst_pad_link_fixate),
|
||||
|
|
|
@ -19,6 +19,7 @@ GST_LOADSAVE_SRC_V = \
|
|||
endif
|
||||
|
||||
GST_OTHER_SRC = \
|
||||
gst-feedback \
|
||||
gst-inspect \
|
||||
gst-launch \
|
||||
gst-md5sum \
|
||||
|
@ -31,12 +32,12 @@ GST_OTHER_SRC_V = \
|
|||
gst-typefind-@GST_MAJORMINOR@ \
|
||||
gst-xmlinspect-@GST_MAJORMINOR@
|
||||
|
||||
|
||||
### so all of the programs we want to build
|
||||
bin_PROGRAMS = \
|
||||
$(GST_REGISTRY_SRC) $(GST_REGISTRY_SRC_V) \
|
||||
$(GST_LOADSAVE_SRC) $(GST_LOADSAVE_SRC_V) \
|
||||
$(GST_OTHER_SRC) $(GST_OTHER_SRC_V)
|
||||
bin_SCRIPTS = gst-feedback-@GST_MAJORMINOR@
|
||||
|
||||
# make sure each versioned tool has the right source file
|
||||
if !GST_DISABLE_REGISTRY
|
||||
|
@ -62,6 +63,7 @@ gst_complete_SOURCES = gst-run.c
|
|||
gst_compprep_SOURCES = gst-run.c
|
||||
gst_xmllaunch_SOURCES = gst-run.c
|
||||
endif
|
||||
gst_feedback_SOURCES = gst-run.c
|
||||
gst_inspect_SOURCES = gst-run.c
|
||||
gst_launch_SOURCES = gst-run.c
|
||||
gst_md5sum_SOURCES = gst-run.c
|
||||
|
@ -93,6 +95,7 @@ GST_LOADSAVE_MAN=
|
|||
endif
|
||||
|
||||
GST_OTHER_MAN = \
|
||||
gst-feedback-@GST_MAJORMINOR@.1 \
|
||||
gst-inspect-@GST_MAJORMINOR@.1 \
|
||||
gst-launch-@GST_MAJORMINOR@.1 \
|
||||
gst-md5sum-@GST_MAJORMINOR@.1 \
|
||||
|
@ -114,9 +117,7 @@ EXTRA_DIST = \
|
|||
gst-register.1.in \
|
||||
gst-typefind.1.in \
|
||||
gst-xmllaunch.1.in \
|
||||
gst-feedback
|
||||
|
||||
bin_SCRIPTS = gst-feedback
|
||||
gst-feedback-@GST_MAJORMINOR@
|
||||
|
||||
%-@GST_MAJORMINOR@.1: %.1.in
|
||||
sed \
|
||||
|
@ -127,5 +128,6 @@ bin_SCRIPTS = gst-feedback
|
|||
-e s,gst-launch,gst-launch-@GST_MAJORMINOR@,g \
|
||||
-e s,gst-md5sum,gst-md5sum-@GST_MAJORMINOR@,g \
|
||||
-e s,gst-register,gst-register-@GST_MAJORMINOR@,g \
|
||||
-e s,gst-typefind,gst-typefind-@GST_MAJORMINOR@,g \
|
||||
-e s,gst-xmllaunch,gst-xmllaunch-@GST_MAJORMINOR@,g \
|
||||
$< >$@
|
||||
|
|
|
@ -1,84 +1,117 @@
|
|||
#! /bin/sh
|
||||
# this script provides feedback for GStreamer debugging
|
||||
# the user can run this and provide the GStreamer developers with information
|
||||
# about their system
|
||||
|
||||
command_output ()
|
||||
{
|
||||
echo "+++ $1"
|
||||
$1
|
||||
}
|
||||
# gst-feedback - temporary wrapper script for .libs/gst-feedback
|
||||
# Generated by ltmain.sh - GNU libtool 1.5 (1.1220.2.1 2003/04/14 22:48:00)
|
||||
#
|
||||
# The gst-feedback program cannot be directly executed until all the libtool
|
||||
# libraries that it depends on are installed.
|
||||
#
|
||||
# This wrapper script should never be moved out of the build directory.
|
||||
# If it is, it will not operate correctly.
|
||||
|
||||
echo "GStreamer feedback script."
|
||||
echo "Please attach the output of this script to your bug reports."
|
||||
echo "Bug reports should go into Gnome's bugzilla (http://bugzilla.gnome.org)"
|
||||
echo
|
||||
# Sed substitution that helps us do robust quoting. It backslashifies
|
||||
# metacharacters that are still active within double-quoted strings.
|
||||
Xsed='/bin/sed -e 1s/^X//'
|
||||
sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
|
||||
|
||||
echo "+ SYSTEM INFORMATION"
|
||||
command_output "uname -a"
|
||||
# The HP-UX ksh and POSIX shell print the target directory to stdout
|
||||
# if CDPATH is set.
|
||||
if test "${CDPATH+set}" = set; then CDPATH=:; export CDPATH; fi
|
||||
|
||||
if test -f /etc/redhat-release; then
|
||||
echo "+++ distribution: Red Hat"
|
||||
cat /etc/redhat-release
|
||||
relink_command="(cd /home/thomas/gst/head/gstreamer/tools; { test -z \"\${LIBRARY_PATH+set}\" || unset LIBRARY_PATH || { LIBRARY_PATH=; export LIBRARY_PATH; }; }; { test -z \"\${COMPILER_PATH+set}\" || unset COMPILER_PATH || { COMPILER_PATH=; export COMPILER_PATH; }; }; { test -z \"\${GCC_EXEC_PREFIX+set}\" || unset GCC_EXEC_PREFIX || { GCC_EXEC_PREFIX=; export GCC_EXEC_PREFIX; }; }; { test -z \"\${LD_RUN_PATH+set}\" || unset LD_RUN_PATH || { LD_RUN_PATH=; export LD_RUN_PATH; }; }; PATH=\"/home/thomas/gst/head/gstreamer/tools:/home/thomas/gst/head/gst-plugins/tools:/home/thomas/gst/head/gst-editor/src:/home/thomas/gst/head/gst-player/src:/home/thomas/gst/head/prefix/bin:/home/thomas/prefix/bin:/usr/kerberos/bin:/usr/lib/ccache/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/thomas/bin:/usr/java/j2re1.4.1_02/bin\"; export PATH; gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/libxml2 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I.. -Wall -Werror -DGST_DISABLE_DEPRECATED -g -I../libs -I../include -g -O2 -pthread -Wl,--export-dynamic -o \$progdir/\$file gst-run.o ../gst/.libs/libgstreamer-0.7.so /usr/lib/libxml2.so -lpthread -lz -lm -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -ldl -lglib-2.0 /usr/lib/libpopt.so -Wl,--rpath -Wl,/home/thomas/gst/head/gstreamer/gst/.libs -Wl,--rpath -Wl,/home/thomas/gst/cvs/prefix/lib)"
|
||||
|
||||
# This environment variable determines our operation mode.
|
||||
if test "$libtool_install_magic" = "%%%MAGIC variable%%%"; then
|
||||
# install mode needs the following variable:
|
||||
notinst_deplibs=' ../gst/libgstreamer-0.7.la'
|
||||
else
|
||||
# When we are sourced in execute mode, $file and $echo are already set.
|
||||
if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
|
||||
echo="echo"
|
||||
file="$0"
|
||||
# Make sure echo works.
|
||||
if test "X$1" = X--no-reexec; then
|
||||
# Discard the --no-reexec flag, and continue.
|
||||
shift
|
||||
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
|
||||
# Yippee, $echo works!
|
||||
:
|
||||
else
|
||||
# Restart under the correct shell, and then maybe $echo will work.
|
||||
exec /bin/sh "$0" --no-reexec ${1+"$@"}
|
||||
fi
|
||||
fi
|
||||
|
||||
if test -f /etc/debian_version; then
|
||||
echo "+++ distribution: Debian"
|
||||
cat /etc/debian_version
|
||||
# Find the directory that this script lives in.
|
||||
thisdir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
|
||||
test "x$thisdir" = "x$file" && thisdir=.
|
||||
|
||||
# Follow symbolic links until we get to the real thisdir.
|
||||
file=`ls -ld "$file" | /bin/sed -n 's/.*-> //p'`
|
||||
while test -n "$file"; do
|
||||
destdir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
|
||||
|
||||
# If there was a directory component, then change thisdir.
|
||||
if test "x$destdir" != "x$file"; then
|
||||
case "$destdir" in
|
||||
[\\/]* | [A-Za-z]:[\\/]*) thisdir="$destdir" ;;
|
||||
*) thisdir="$thisdir/$destdir" ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
command_output "cat /etc/issue"
|
||||
|
||||
echo
|
||||
|
||||
echo "+ USER INFORMATION"
|
||||
command_output "id"
|
||||
echo
|
||||
|
||||
echo "+ PKG-CONFIG INFORMATION"
|
||||
command_output "pkg-config --version"
|
||||
command_output "pkg-config gstreamer --modversion"
|
||||
command_output "pkg-config gstreamer --cflags"
|
||||
command_output "pkg-config gstreamer --libs"
|
||||
command_output "pkg-config gstreamer-libs --modversion"
|
||||
command_output "pkg-config gstreamer-libs --cflags"
|
||||
command_output "pkg-config gstreamer-libs --libs"
|
||||
echo
|
||||
|
||||
echo "+ GSTREAMER INFORMATION"
|
||||
command_output "which gst-register"
|
||||
command_output "gst-inspect"
|
||||
command_output "gst-inspect fakesrc"
|
||||
command_output "gst-inspect fakesink"
|
||||
command_output "gst-launch fakesrc num_buffers=5 ! fakesink"
|
||||
|
||||
echo "++ looking for gstreamer libraries in common locations"
|
||||
for dirs in /usr/lib /usr/local/lib /home; do
|
||||
if test -d $dirs; then
|
||||
find $dirs -name libgstreamer* | grep so
|
||||
fi
|
||||
done
|
||||
echo "++ looking for gstreamer headers in common locations"
|
||||
for dirs in /usr/include /usr/local/include /home; do
|
||||
if test -d $dirs; then
|
||||
find $dirs -name gst.h
|
||||
fi
|
||||
file=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
|
||||
file=`ls -ld "$thisdir/$file" | /bin/sed -n 's/.*-> //p'`
|
||||
done
|
||||
|
||||
echo "+ GSTREAMER PLUG-INS INFORMATION"
|
||||
command_output "gst-inspect volume"
|
||||
# Try to get the absolute directory name.
|
||||
absdir=`cd "$thisdir" && pwd`
|
||||
test -n "$absdir" && thisdir="$absdir"
|
||||
|
||||
echo "++ looking for gstreamer volume plugin in common locations"
|
||||
for dirs in /usr/lib /usr/local/lib /home; do
|
||||
if test -d $dirs; then
|
||||
find $dirs -name libgstvolume* | grep so
|
||||
program=lt-'gst-feedback'
|
||||
progdir="$thisdir/.libs"
|
||||
|
||||
if test ! -f "$progdir/$program" || \
|
||||
{ file=`ls -1dt "$progdir/$program" "$progdir/../$program" 2>/dev/null | /bin/sed 1q`; \
|
||||
test "X$file" != "X$progdir/$program"; }; then
|
||||
|
||||
file="$$-$program"
|
||||
|
||||
if test ! -d "$progdir"; then
|
||||
mkdir "$progdir"
|
||||
else
|
||||
rm -f "$progdir/$file"
|
||||
fi
|
||||
|
||||
# relink executable if necessary
|
||||
if test -n "$relink_command"; then
|
||||
if relink_command_output=`eval $relink_command 2>&1`; then :
|
||||
else
|
||||
echo "$relink_command_output" >&2
|
||||
rm -f "$progdir/$file"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
echo "++ looking for gstreamer headers in common locations"
|
||||
for dirs in /usr/include /usr/local/include /home; do
|
||||
if test -d $dirs; then
|
||||
find $dirs -name audio.h
|
||||
fi
|
||||
done
|
||||
|
||||
mv -f "$progdir/$file" "$progdir/$program" 2>/dev/null ||
|
||||
{ rm -f "$progdir/$program";
|
||||
mv -f "$progdir/$file" "$progdir/$program"; }
|
||||
rm -f "$progdir/$file"
|
||||
fi
|
||||
|
||||
if test -f "$progdir/$program"; then
|
||||
if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
|
||||
# Run the actual program with our arguments.
|
||||
|
||||
exec $progdir/$program ${1+"$@"}
|
||||
|
||||
$echo "$0: cannot exec $program ${1+"$@"}"
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
# The program doesn't exist.
|
||||
$echo "$0: error: $progdir/$program does not exist" 1>&2
|
||||
$echo "This script is just a wrapper for $program." 1>&2
|
||||
echo "See the libtool documentation for more information." 1>&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
|
84
tools/gst-feedback-0.7
Executable file
84
tools/gst-feedback-0.7
Executable file
|
@ -0,0 +1,84 @@
|
|||
#!/bin/sh
|
||||
# this script provides feedback for GStreamer debugging
|
||||
# the user can run this and provide the GStreamer developers with information
|
||||
# about their system
|
||||
|
||||
command_output ()
|
||||
{
|
||||
echo "+++ $1"
|
||||
$1
|
||||
}
|
||||
|
||||
echo "GStreamer feedback script."
|
||||
echo "Please attach the output of this script to your bug reports."
|
||||
echo "Bug reports should go into Gnome's bugzilla (http://bugzilla.gnome.org)"
|
||||
echo
|
||||
|
||||
echo "+ SYSTEM INFORMATION"
|
||||
command_output "uname -a"
|
||||
|
||||
if test -f /etc/redhat-release; then
|
||||
echo "+++ distribution: Red Hat"
|
||||
cat /etc/redhat-release
|
||||
fi
|
||||
|
||||
if test -f /etc/debian_version; then
|
||||
echo "+++ distribution: Debian"
|
||||
cat /etc/debian_version
|
||||
fi
|
||||
|
||||
command_output "cat /etc/issue"
|
||||
|
||||
echo
|
||||
|
||||
echo "+ USER INFORMATION"
|
||||
command_output "id"
|
||||
echo
|
||||
|
||||
echo "+ PKG-CONFIG INFORMATION"
|
||||
command_output "pkg-config --version"
|
||||
command_output "pkg-config gstreamer --modversion"
|
||||
command_output "pkg-config gstreamer --cflags"
|
||||
command_output "pkg-config gstreamer --libs"
|
||||
command_output "pkg-config gstreamer-libs --modversion"
|
||||
command_output "pkg-config gstreamer-libs --cflags"
|
||||
command_output "pkg-config gstreamer-libs --libs"
|
||||
echo
|
||||
|
||||
echo "+ GSTREAMER INFORMATION"
|
||||
command_output "which gst-register"
|
||||
command_output "gst-inspect"
|
||||
command_output "gst-inspect fakesrc"
|
||||
command_output "gst-inspect fakesink"
|
||||
command_output "gst-launch fakesrc num_buffers=5 ! fakesink"
|
||||
|
||||
echo "++ looking for gstreamer libraries in common locations"
|
||||
for dirs in /usr/lib /usr/local/lib /home; do
|
||||
if test -d $dirs; then
|
||||
find $dirs -name libgstreamer* | grep so
|
||||
fi
|
||||
done
|
||||
echo "++ looking for gstreamer headers in common locations"
|
||||
for dirs in /usr/include /usr/local/include /home; do
|
||||
if test -d $dirs; then
|
||||
find $dirs -name gst.h
|
||||
fi
|
||||
done
|
||||
|
||||
echo "+ GSTREAMER PLUG-INS INFORMATION"
|
||||
command_output "gst-inspect volume"
|
||||
|
||||
echo "++ looking for gstreamer volume plugin in common locations"
|
||||
for dirs in /usr/lib /usr/local/lib /home; do
|
||||
if test -d $dirs; then
|
||||
find $dirs -name libgstvolume* | grep so
|
||||
fi
|
||||
done
|
||||
echo "++ looking for gstreamer headers in common locations"
|
||||
for dirs in /usr/include /usr/local/include /home; do
|
||||
if test -d $dirs; then
|
||||
find $dirs -name audio.h
|
||||
fi
|
||||
done
|
||||
|
||||
|
Loading…
Reference in a new issue