Problems with building from source

Asked by Dmitry Petrov

I'm trying to build google music frame from source as it's written in the README.Ubuntu, but I get an Error:

$ ./waf build --with-libnotify-vapi-fix
Waf: Entering directory `/home/dpetroff/code/vala/google-music-frame/build'
>>> vala defines: ['GLIB_DBUS', 'UNITY_QUICK_LIST', 'HAVE_WEBKIT', 'HAVE_GDK', 'HAVE_DBUSMENU', 'HAVE_XLIB', 'HAVE_UNITY', 'HAVE_SOUP', 'HAVE_GTK', 'HAVE_GOBJECT', 'HAVE_GEE', 'HAVE_GLIB', 'HAVE_UNIQUE', 'HAVE_GTHREAD', 'HAVE_NOTIFY', 'HAVE_GIO', 'VALAC_0_12', 'DEV_BUILD']
[21/22] c: build/src/player.c -> build/src/player.c.0.o
src/player.c: In function ‘gmf_player_start’:
src/player.c:259:2: error: too few arguments to function ‘notify_notification_new’
/usr/include/libnotify/notification.h:79:21: note: declared here
Waf: Leaving directory `/home/dpetroff/code/vala/google-music-frame/build'
Build failed
 -> task failed (exit status 1):
 {task 46074704: c player.c -> player.c.0.o}
['/usr/bin/gcc', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-I/home/dpetroff/code/vala/google-music-frame/build/src', '-I/home/dpetroff/code/vala/google-music-frame/src', '-I/home/dpetroff/code/vala/google-music-frame', '-I/home/dpetroff/code/vala/google-music-frame/build', '-I/usr/include/glib-2.0', '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include', '-I/usr/include/atk-1.0', '-I/usr/include/pango-1.0', '-I/usr/include/gio-unix-2.0', '-I/usr/include/freetype2', '-I/usr/include/libpng12', '-I/usr/include/gtk-2.0', '-I/usr/lib/gtk-2.0/include', '-I/usr/include/cairo', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/pixman-1', '-I/usr/include/gee-1.0', '-I/usr/include/libsoup-2.4', '-I/usr/include/libxml2', '-I/usr/include/unique-1.0', '-I/usr/include/webkit-1.0', '-I/usr/include/dbus-1.0', '-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include', '-I/usr/include/unity/unity', '-I/usr/include/dee-1.0', '-I/usr/include/libdbusmenu-0.4', '-DHAVE_GOBJECT=1', '-DHAVE_GTHREAD=1', '-DHAVE_GEE=1', '-DHAVE_NOTIFY=1', '-DHAVE_XLIB=1', '-DHAVE_WEBKIT=1', '-DHAVE_GTK_=1', '-DHAVE_GDK=1', '-DHAVE_GLIB=1', '-DHAVE_GIO=1', '-DHAVE_SOUP=1', '-DHAVE_UNIQUE=1', '-DHAVE_DBUSMENU=1', '-DHAVE_UNITY=1', '-DGETTEXT_PACKAGE="google-music-frame"', '-DAPPNAME="google-music-frame"', '-DAPP_ICON="googlemusicframe"', '-DVERSION="0.2.1+next"', '-DRELEASE="0.2"', '-DRELEASE_URL="http://projects.fenryxo.cz/Google_Music_Frame/Releases/0.2/"', '-DCOPYRIGHT="Copyright \xc2\xa9 2011 Ji\xc5\x99\xc3\xad Janou\xc5\xa1ek"', '-DWEBSITE="https://launchpad.net/google-music-frame"', '-DBUG_TRACKER="https://bugs.launchpad.net/google-music-frame"', '-DDISPLAY_NAME="Google Music Frame"', '-DUNIQUE_NAME="cz.fenryxo.GMF"', '-DDESKTOP_ENTRY="googlemusicframe"', '-DUI_STATE_FILE="ui_state.conf"', '-DCONFIG_FILE="main.conf"', '-DCOOKIES_FILE="cookies.dat"', '-DREVISION="66"', '-DCHANGELOG_REVISION="7"', 'src/player.c', '-c', '-o', 'src/player.c.0.o']

I've tried both latest version from bzr and 0.2.1 sources.

Here is the output of ./waf configure
$ ./waf configure --with-unity-quick-list

Setting top to : /home/dpetroff/code/vala/google-music-frame
Setting out to : /home/dpetroff/code/vala/google-music-frame/build
→ configuring the project in /home/dpetroff/code/vala/google-music-frame
→ prefix is /usr/local/
Checking for 'gcc' (c compiler) : ok
Checking for program pkg-config : /usr/bin/pkg-config
Checking for 'gobject-2.0' : yes
Checking for 'gthread-2.0' : yes
Checking for program valac-0.8 : not found
Checking for program valac : /usr/bin/valac
Checking for valac version >= (0, 8, 0) : (0, 12, 0)
Checking for program valac-0.12 : /usr/bin/valac
Checking for valac-0.12 version >= (0, 12, 0) : (0, 12, 0)
Checking for 'gee-1.0' >= 0.5 : yes
Checking for 'libnotify' >= 0.4 : yes
Checking for 'x11' >= 0.5 : yes
Checking for 'webkit-1.0' >= 1.0 : yes
Checking for 'gtk+-2.0' >= 2.20.0 : yes
Checking for 'gdk-2.0' >= 2.20.0 : yes
Checking for 'glib-2.0' >= 2.26 : yes
Checking for 'gio-2.0' >= 2.26 : yes
Checking for 'libsoup-2.4' >= 2.30 : yes
Checking for 'unique-1.0' >= 0.9 : yes
Checking for 'dbusmenu-glib-0.4' >= 0.4 : yes
Checking for 'unity' >= 3.0 : yes
'configure' finished successfully (0.159s)

What should I do to fix this error?

Ubuntu 11.04, 64bit

Question information

Language:
English Edit question
Status:
Answered
For:
Nuvola Apps Runtime (Nuvola Player) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jiří Janoušek (fenryxo) said :
#1

I suspect you ran `./waf build` without `--with-libnotify-vapi-fix` for the first time and the build options were cached, thus second run with `--with-libnotify-vapi-fix` also failed. Anyway, try again clean build:

./waf distclean
./waf configure --with-unity-quick-list
./waf build --with-libnotify-vapi-fix

If it fails, try:

./waf distclean
./waf configure --with-unity-quick-list
./waf build

Can you help with this problem?

Provide an answer of your own, or ask Dmitry Petrov for more information if necessary.

To post a message you must log in.