[MPlayer-dev-eng] GUI & FreeBSD

Bohdan Horst nexus at hoth.amu.edu.pl
Fri Sep 28 12:59:31 CEST 2001


configure doesn't recognize FreeBSD specific gtk12-config and
glib12-config

after small changes in configure GUI doesn't compile :(
(my patch to configure included as attach)

in main/Gui/mplayer :

gcc -c -O4 -march=i686 -mcpu=i686 -pipe -ffast-math -fomit-frame-pointer -D_THREAD_SAFE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -fomit-frame-pointer -fexpensive-optimizations -malign-double -fschedule-insns2 -mwide-multiply -Wall -I. -I../event -I../wm -I../skin -I/usr/X11R6/include/gtk12 -I/usr/local/include/glib12 -I/usr/local/include -I/usr/X11R6/include -DDEBUG -o mplayer.o mplayer.c
In file included from mplayer.c:37:
mw.h: In function `Translate':
mw.h:20: warning: unused variable `s'
mw.h:20: warning: unused variable `m'
mw.h:20: warning: unused variable `h'

gcc -c -O4 -march=i686 -mcpu=i686 -pipe -ffast-math -fomit-frame-pointer -D_THREAD_SAFE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -fomit-frame-pointer -fexpensive-optimizations -malign-double -fschedule-insns2 -mwide-multiply -Wall -I. -I../event -I../wm -I../skin -I/usr/X11R6/include/gtk12 -I/usr/local/include/glib12 -I/usr/local/include -I/usr/X11R6/include -DDEBUG -o widgets.o widgets.c
In file included from widgets.c:55:
gtk/mb.h: In function `create_MessageBox':
gtk/mb.h:111: warning: assignment from incompatible pointer type
gtk/mb.h:112: warning: passing arg 1 of `gtk_pixmap_new' from incompatible pointer type
gtk/mb.h:113: warning: assignment from incompatible pointer type
gtk/mb.h:114: warning: passing arg 1 of `gtk_pixmap_new' from incompatible pointer type
gtk/mb.h:36: warning: unused variable `pixmap1'
In file included from widgets.c:56:
gtk/about.h: In function `create_About':
gtk/about.h:83: warning: assignment from incompatible pointer type
gtk/about.h:84: warning: passing arg 1 of `gtk_pixmap_new' from incompatible pointer type
widgets.c: In function `gtkThreadProc':
widgets.c:85: `_NSIG' undeclared (first use in this function)
widgets.c:85: (Each undeclared identifier is reported only once
widgets.c:85: for each function it appears in.)
widgets.c: In function `gtkDone':
widgets.c:104: warning: unused variable `status'
gmake[2]: *** [widgets.o] Error 1
gmake[2]: Opuszczam katalog `/root/src/main/Gui/mplayer'
gmake[1]: *** [libgui.a] Error 2
gmake[1]: Opuszczam katalog `/root/src/main/Gui'
gmake: *** [Gui/libgui.a] Error 2

best regards

-- 
 / irl:Bohdan 'Nexus' Horst | mailto:nexus at irc.pl | irc:Nexus \
{---------------------------^----------v----------^------------}
 \ http://www.physd.amu.edu.pl/~nexus/ | Instytut Fizyki  UAM /
-------------- next part --------------
*** configure	Fri Sep 28 11:00:11 2001
--- configure.new	Fri Sep 28 12:39:45 2001
***************
*** 187,192 ****
--- 187,196 ----
                                  (--with-css* only needed, if libCSS autodetect fails)
          --with-sdl-config=PATH  specify location of sdl-config if it's not in your PATH
                                  (example: --with-sdl-config=/usr/sdl/bin/sdl-config)
+         --with-gtk-config=PATH  specify location of gtk-config if it's not in your PATH
+                                 (example: --with-gtk-config=/usr/gtk/bin/gtk-config)
+         --with-glib-config=PATH specify location of glib-config if it's not in your PATH
+                                 (example: --with-glib-config=/usr/glib/bin/glib-config)
          --with-extralibdir=DIR  extra library files (png, SDL) are in DIR
                                  (only needed if autodetection fails)
          --with-extraincdir=DIR extra headers (png, SDL) are in DIR
***************
*** 242,247 ****
--- 246,257 ----
    --with-sdl-config=*)
          _sdlconfig=`echo $ac_option | cut -d '=' -f 2`
          ;;
+   --with-gtk-config=*)
+         _gtkconfig=`echo $ac_option | cut -d '=' -f 2`
+         ;;
+   --with-glib-config=*)
+         _glibconfig=`echo $ac_option | cut -d '=' -f 2`
+         ;;
    --with-extralibdir=*)
          _extralibdir=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'`
          ;;
***************
*** 381,386 ****
--- 391,413 ----
     fi
  fi
  
+ if [ "$_gtkconfig" = "" ]; then
+    if [ "$system_name" = "FreeBSD" ]; then
+       _gtkconfig='gtk12-config'
+    else
+       _gtkconfig='gtk-config'
+    fi
+ fi
+ 
+ if [ "$_glibconfig" = "" ]; then
+    if [ "$system_name" = "FreeBSD" ]; then
+       _glibconfig='glib12-config'
+    else
+       _glibconfig='glib-config'
+    fi
+ fi
+ 
+ 
  # ---
  
  # Checking CC version...
***************
*** 1613,1645 ****
  
  echo
  echo $_echo_n "Checking for gtk version ... $_echo_c"
! _gtk=`gtk-config --version 2>&1`
  [ -z "$_gtk" ] && { echo 'gtk not found.'; exit 1; }
  echo "$_gtk"
  
  echo $_echo_n "Checking for gtk includes ... $_echo_c"
! _gtkinc=`gtk-config --cflags 2>&1`
  [ -z "$_gtkinc" ] && { echo 'gtk not found.'; exit 1; }
  echo "done"
  
  echo $_echo_n "Checking for gtk libs ... $_echo_c"
! _gtklib=`gtk-config --libs 2>&1`
  [ -z "$_gtklib" ] && { echo 'gtk not found.'; exit 1; }
  echo "done"
  
  echo
  echo $_echo_n "Checking for glib version ... $_echo_c"
! _glib=`glib-config --version 2>&1`
  [ -z "$_glib" ] && { echo 'glib not found.'; exit 1; }
  echo "$_glib"
  
  echo $_echo_n "Checking for glib includes ... $_echo_c"
! _glibinc=`glib-config --cflags 2>&1`
  [ -z "$_glibinc" ] && { echo 'glib not found.'; exit 1; }
  echo "done"
  
  echo $_echo_n "Checking for glib libs ... $_echo_c"
! _gliblib=`glib-config --libs 2>&1`
  [ -z "$_gliblib" ] && { echo 'glib not found.'; exit 1; }
  echo "done"
  
--- 1640,1672 ----
  
  echo
  echo $_echo_n "Checking for gtk version ... $_echo_c"
! _gtk=`$_gtkconfig --version 2>&1`
  [ -z "$_gtk" ] && { echo 'gtk not found.'; exit 1; }
  echo "$_gtk"
  
  echo $_echo_n "Checking for gtk includes ... $_echo_c"
! _gtkinc=`$_gtkconfig --cflags 2>&1`
  [ -z "$_gtkinc" ] && { echo 'gtk not found.'; exit 1; }
  echo "done"
  
  echo $_echo_n "Checking for gtk libs ... $_echo_c"
! _gtklib=`$_gtkconfig --libs 2>&1`
  [ -z "$_gtklib" ] && { echo 'gtk not found.'; exit 1; }
  echo "done"
  
  echo
  echo $_echo_n "Checking for glib version ... $_echo_c"
! _glib=`$_glibconfig --version 2>&1`
  [ -z "$_glib" ] && { echo 'glib not found.'; exit 1; }
  echo "$_glib"
  
  echo $_echo_n "Checking for glib includes ... $_echo_c"
! _glibinc=`$_glibconfig --cflags 2>&1`
  [ -z "$_glibinc" ] && { echo 'glib not found.'; exit 1; }
  echo "done"
  
  echo $_echo_n "Checking for glib libs ... $_echo_c"
! _gliblib=`$_glibconfig --libs 2>&1`
  [ -z "$_gliblib" ] && { echo 'glib not found.'; exit 1; }
  echo "done"
  


More information about the MPlayer-dev-eng mailing list