[Mplayer-users] bugreport
Sergei Golubchik
sergii at pisem.net
Sun Oct 7 13:58:53 CEST 2001
Hi.
I've compiled it on FreeBSD - works fine.
Though, some tuning was required.
Here's a patch. It fixes:
- failure to find a GL in FreeBSD (by ./configure)
- SIGTYPE => SIGUSR2, get_current_dir_name => getcwd in GUI sources
- misc warnings in GUI source code (not FreeBSD specific)
Also, odivx codec fails for me with
"MPlayer interrupted by signal 11 in module: decode_video",
but as there're other DivX codecs it's not a problem.
And - it doesn't hurt that much actually, but why not
to install also share/mplayer/codecs.conf, share/mplayer/examples.conf,
share/doc/mplayer/*, etc. ?
Regards,
Sergei
-------------- next part --------------
diff -ruBb MPlayer-0.50pre3/Gui/mplayer/gtk/about.h MPlayer-0.50pre3-new/Gui/mplayer/gtk/about.h
--- MPlayer-0.50pre3/Gui/mplayer/gtk/about.h Wed Sep 12 17:47:18 2001
+++ MPlayer-0.50pre3-new/Gui/mplayer/gtk/about.h Sun Oct 7 12:20:02 2001
@@ -25,7 +25,7 @@
GtkWidget * Ok;
GtkStyle * pixmapstyle;
- GtkPixmap * pixmapwid;
+ GdkPixmap * pixmapwid;
GdkBitmap * mask;
GtkAccelGroup * accel_group;
diff -ruBb MPlayer-0.50pre3/Gui/mplayer/gtk/fs.h MPlayer-0.50pre3-new/Gui/mplayer/gtk/fs.h
--- MPlayer-0.50pre3/Gui/mplayer/gtk/fs.h Thu Sep 13 21:49:40 2001
+++ MPlayer-0.50pre3-new/Gui/mplayer/gtk/fs.h Sun Oct 7 12:27:28 2001
@@ -9,7 +9,7 @@
#include <glob.h>
#include <unistd.h>
-#ifdef __SVR4
+#if defined(__SVR4) || defined(__FreeBSD__)
#define get_current_dir_name() getcwd(NULL, PATH_MAX)
#endif
diff -ruBb MPlayer-0.50pre3/Gui/mplayer/gtk/mb.h MPlayer-0.50pre3-new/Gui/mplayer/gtk/mb.h
--- MPlayer-0.50pre3/Gui/mplayer/gtk/mb.h Thu Sep 20 12:27:24 2001
+++ MPlayer-0.50pre3-new/Gui/mplayer/gtk/mb.h Sun Oct 7 12:19:11 2001
@@ -33,13 +33,12 @@
GtkWidget * frame4;
GtkWidget * vbox1;
GtkWidget * hbox1;
- GtkWidget * pixmap1;
GtkWidget * hseparator1;
GtkWidget * hbuttonbox1;
GtkWidget * Ok;
GtkAccelGroup * accel_group;
GtkStyle * pixmapstyle;
- GtkPixmap * pixmapwid;
+ GdkPixmap * pixmapwid;
GdkBitmap * mask;
accel_group = gtk_accel_group_new ();
diff -ruBb MPlayer-0.50pre3/Gui/mplayer/psignal.h MPlayer-0.50pre3-new/Gui/mplayer/psignal.h
--- MPlayer-0.50pre3/Gui/mplayer/psignal.h Wed Sep 5 20:16:10 2001
+++ MPlayer-0.50pre3-new/Gui/mplayer/psignal.h Sun Oct 7 12:25:53 2001
@@ -39,7 +39,7 @@
#define mplIncAudioBufferDelay 28
#define mplDecAudioBufferDelay 29
-#ifdef __SVR4
+#if defined(__SVR4) || defined(__FreeBSD__)
#define SIGTYPE SIGUSR2
#warning should we use SIGUSR1 or SIGUSR2 on linux, bsd, ... too?
#else
Only in MPlayer-0.50pre3-new/TOOLS: cpuinfo
Only in MPlayer-0.50pre3-new: config.h
Only in MPlayer-0.50pre3-new: config.mak
diff -ruBb MPlayer-0.50pre3/configure MPlayer-0.50pre3-new/configure
--- MPlayer-0.50pre3/configure Mon Oct 1 11:56:53 2001
+++ MPlayer-0.50pre3-new/configure Sun Oct 7 10:24:38 2001
@@ -861,7 +861,7 @@
# this is not yet checked with OpenBSD - atmos
if [ "$system_name" = "FreeBSD" -o "$system_name" = "OpenBSD" ]; then
-$_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL -pthread $_socklib > /dev/null 2>&1 && _gl=yes
+$_cc $TMPC -o $TMPO $_x11libdir -lm -lX11 -lXext -lGL -pthread $_socklib > /dev/null 2>&1 && _gl=yes
else
$_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL $_socklib > /dev/null 2>&1 && _gl=yes
fi
@@ -872,7 +872,7 @@
EOF
# this is not yet checked with OpenBSD - atmos
if [ "$system_name" = "FreeBSD" -o "$system_name" = "OpenBSD" ]; then
-$_cc $_x11incdir $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL -pthread $_socklib > /dev/null 2>&1 || \
+$_cc $_x11incdir $TMPC -o $TMPO $_x11libdir -lm -lX11 -lXext -lGL -pthread $_socklib > /dev/null 2>&1 || \
{ _gl=no; echo "GL includes not found!";}
else
$_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL $_socklib > /dev/null 2>&1 || \
More information about the MPlayer-users
mailing list