mario0alberto1 / gnome-mplayer

Automatically exported from code.google.com/p/gnome-mplayer
0 stars 0 forks source link

Make fails on Ubuntu 10.10 #469

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello. :)
Tried to compile 1.0.0 on an Ubuntu system today, which didn't work out of the 
box, and would like to suggest a some things to assist others doing the same. :)

During the configure the following cryptic message flew past (initially 
unnoticed)

---
checking for DBUS... no
configure: WARNING: Compiling without dbus support cannot be used with 
gecko-mediaplayer

---

And later naturally make failed due to "missing dbus".
In my case what was missing was the package
libdbus-glib-1-dev
Installing that allowed for make to finish

To help other users and improve the user experience maybe the following things 
could be done.

* If a critical part is missing during the configure step, I think it would be 
good to halt the configure process with an terminal error.

* Maybe the additional packages needed to compile on eg Ubuntu could be added 
in the README?
libdbus-glib-1-dev, but likely also other packages (my system is not a "clean" 
system, but previously had a lot of dev packages).

Original issue reported on code.google.com by stefan.h...@gmail.com on 15 Dec 2010 at 1:07

GoogleCodeExporter commented 8 years ago
Code is in process of being able to compile without dbus, conversion is not 
finished. Some people want a minimal application without dbus support.

Original comment by kdeko...@gmail.com on 15 Dec 2010 at 1:46

GoogleCodeExporter commented 8 years ago
BTW, feel free to document the packages, I don't use Ubuntu so I don't know the 
package names. The packages required for Fedora, that I do use, are documented 
in the .spec file. 

I used to include debian build files in the gnome-mplayer package, but the 
Ubuntu maintainers asked me to remove them.

Original comment by kdeko...@gmail.com on 15 Dec 2010 at 1:50

GoogleCodeExporter commented 8 years ago
OK, installed a squeaky clean (x)ubuntu 10.10 on a virtual machine today and 
the following (and the packages it pulls with it) is the bare minimum to 
compile gnome-mplayer 1.0.0 

sudo apt-get update && sudo apt-get install build-essential libgtk2.0-dev 
libdbus-1-dev

That of course still leaves quite a few configure complaints due to missing 
packages (see below) but it's a base working/running player frontend.

checking for XSCRNSAVER... no
configure: WARNING: Compiling withou xscrnsaver support
checking for GCONF... no
configure: Using keystore for preferences
checking for ALSA... no
configure: WARNING: Compiling without asound support
checking for NOTIFY... no
configure: WARNING: Compiling without libnotify support
checking for GPOD06... no
configure: WARNING: Compiling without libgpod 0.6.0 support
checking for GPOD07... no
configure: WARNING: Compiling without libgpod 0.7.0 support
checking for MUSICBRAINZ... no
configure: WARNING: Compiling without libmusicbrainz3 support
checking for NAUTILUS... no
configure: Checking for flat audio support
./configure: line 8736: test: 21-63-gd3efa-dirty: integer expression expected

Original comment by stefan.h...@gmail.com on 15 Dec 2010 at 3:49

GoogleCodeExporter commented 8 years ago
the "integer expression expected" should be fixed by the same fix for issue #470

Original comment by kdeko...@gmail.com on 15 Dec 2010 at 3:58

GoogleCodeExporter commented 8 years ago
Forgot to mention above that mplayer naturally has to be installed as well, 
easiest done by eg installing the existing gnome-mplayer package (which is a 
bit outdated and quirky).

To turn some of the remaining "NO" into "YES" these can optionally be installed 
(sound though I guess borders on required)
libgconf2-dev
libasound2-dev
libnotify-dev
libnautilus-extension-dev
libgpod-dev

libgpod-dev though will only satisfy GPOD07 and leave

checking for GPOD06... no
configure: WARNING: Compiling without libgpod 0.6.0 support

I also installed 

x11proto-scrnsaver-dev
libmusicbrainz3-dev

but...

checking for XSCRNSAVER... no
checking for MUSICBRAINZ... no
configure: WARNING: Compiling without libmusicbrainz3 support

Didn't check your fix for the integer expression problem yet

Original comment by stefan.h...@gmail.com on 15 Dec 2010 at 5:46

GoogleCodeExporter commented 8 years ago
Yup, those warnings are expected and normal

Original comment by kdeko...@gmail.com on 15 Dec 2010 at 5:58

GoogleCodeExporter commented 8 years ago
You need libcurl-dev installed as well as libmusicbrainz3 to make coverart 
retrieval work. 

xscrnsaver.pc needs to be installed for xscrensaver support to work, really 
only needed on non-gnome-power-manager systems.

Original comment by kdeko...@gmail.com on 15 Dec 2010 at 6:12

GoogleCodeExporter commented 8 years ago
Screensaver needs
libxss-dev

libcurl-dev is not as easy since there seems to be a whole bunch of different 
ones due to debian/ubuntu wisdom (libcurl-ocaml-dev, liblua5.1-curl-dev, 
libcurl4-gnutls-dev, libcurl4-openssl-dev, libflickcurl-dev, libghc6-curl-dev, 
etc)

BTW I also get this
configure: Checking for gnome-power-manager support
./configure: line 8825: gnome-power-manager: command not found
./configure: line 8826: test: -ge: unary operator expected
./configure: line 8831: test: -lt: unary operator expected

Original comment by stefan.h...@gmail.com on 15 Dec 2010 at 11:39

GoogleCodeExporter commented 8 years ago
Hum, the same patch that was made for Pulse was also made to the GPM section 
and it appears to work correctly here..

I would guess that curl-dev would fix it... Although you might want to check 
here for what Caesar chose: https://code.launchpad.net/gnome-mplayer

Original comment by kdeko...@gmail.com on 15 Dec 2010 at 11:45

GoogleCodeExporter commented 8 years ago
I installed subversion on the VM to aid in us not chasing ghosts already fixed 
in latest trunk.

gnome-power-management is fine in r1810 though I still get

configure: Checking for flat audio support
./configure: line 8875: test: 21-63-gd3efa-dirty: integer expression expected

(also lobnotify 07 of course is not available on ubuntu 10.10, but that's a 
nonissue)

> I would guess that curl-dev would fix it...

?? curl-dev, libghc6-curl-dev you mean (notice the linebreak)?

What I managed to track down though on deb/ubu packages sites is that either of 
libcurl4-gnutls-dev, libcurl4-openssl-dev should do (the difference being which 
SSL implementation that comes with the package, GnuTLSs or OpenSSLs). I tried 
the OpenSSL one and that at least worked.

Original comment by stefan.h...@gmail.com on 16 Dec 2010 at 12:56

GoogleCodeExporter commented 8 years ago
Something is not right with your build, since the configure.in was changed at 
1807 and both pulse and gpm were changed at the same time. Maybe run autoreconf 
and see if that helps.

I don't know which libcurl you need, but it looks like you found one, I'm 
guessing any of them probably would have worked.

Original comment by kdeko...@gmail.com on 16 Dec 2010 at 1:25

GoogleCodeExporter commented 8 years ago
> run autoreconf and see if that helps

?? I checked out r1810 into a new dir via SVN. Nothing in there to "pollute" a 
./configure. So if something is messed up it's likely messed up on trunk as 
well.
Also autoreconf needs several new packages to be installed, so trying to avoid 
that to see what is really needed (and if it is needed the INSTALL file is 
incorrect about the compile procedure). :)

re libcurl-dev
http://packages.ubuntu.com/maverick/libcurl-dev
Either 1 of those 2 works, but one must manually specify 1 or the other 

Original comment by stefan.h...@gmail.com on 16 Dec 2010 at 2:34

GoogleCodeExporter commented 8 years ago
Anyway, I guess something like this could go into a readme

To compile on Ubuntu (10.10) you need to issue the folowing command to get the 
required packages (and their deps)
sudo apt-get update && sudo apt-get install build-essential libgtk2.0-dev 
libdbus-1-dev

You also probably want these (and their deps) for expected functionality
sudo apt-get install libgconf2-dev libasound2-dev libnotify-dev 
libnautilus-extension-dev mplayer gnome-mplayer

And you might want some or all of these as well
sudo apt-get install libmusicbrainz3-dev libcurl4-openssl-dev libgpod-dev 
libxss-dev

Original comment by stefan.h...@gmail.com on 16 Dec 2010 at 3:01