pragha-music-player / pragha

Pragha is a Lightweight Music Player for GNU/Linux.
GNU General Public License v3.0
180 stars 36 forks source link

Compile error on lastest git clone #56

Closed cdprincipe closed 11 years ago

cdprincipe commented 11 years ago
Build Configuration for pragha version 1.1.2

  Gtk version used...: 2.24.20
  Prefix.............: /usr
  Debug enabled......: false

  Cubic volume support.....................(Need gstreamer-plugins-base).: yes
  Use multimedia key without gnome-media-keys..(Need keybinder >= 0.2.0).: yes
  Better session management support...........(Need libxfce4ui >= 4.8.0).: yes
  Lastfm scroble, and add similar songs support (Need libclastfm >= 0.5).: yes
  Search lyrics, artists info and albums art.....(Need libglyr >= 1.0.1).: no
  Use totem-pl-parser to open playlists....(Need totem-plparser >= 2.26).: yes

make  all-recursive
make[1]: Entering directory `/home/diego/pragha-git/src/pragha'
Making all in po
make[2]: Entering directory `/home/diego/pragha-git/src/pragha/po'
  MSGFMT cs.gmo
  MSGFMT es.gmo
  MSGFMT de.gmo
  MSGFMT el.gmo
  MSGFMT fr.gmo
  MSGFMT hu.gmo
  MSGFMT it.gmo
  MSGFMT nl.gmo
  MSGFMT ja.gmo
  MSGFMT no.gmo
  MSGFMT pl.gmo
  MSGFMT pt.gmo
  MSGFMT pt_BR.gmo
  MSGFMT ru.gmo
  MSGFMT sv.gmo
  MSGFMT tr.gmo
  MSGFMT uk.gmo
  MSGFMT zh_CN.gmo
make[2]: Leaving directory `/home/diego/pragha-git/src/pragha/po'
Making all in src
make[2]: Entering directory `/home/diego/pragha-git/src/pragha/src'
  CC       pragha-init.o
  CC       pragha-info-bar-import-music.o
  CC       pragha-gnome-media-keys.o
In file included from pragha.h:23:0,
                 from gnome-media-keys.c:23:
pragha-cdda.h:27:26: fatal error: cdio/cdda.h: File o directory non esistente
    #include <cdio/cdda.h>
                          ^
compilation terminated.
make[2]: *** [pragha-gnome-media-keys.o] Errore 1
make[2]: *** Attesa dei processi non terminati....
make[2]: Leaving directory `/home/diego/pragha-git/src/pragha/src'
make[1]: *** [all-recursive] Errore 1
make[1]: Leaving directory `/home/diego/pragha-git/src/pragha'
make: *** [all] Errore 2
matiasdelellis commented 11 years ago

Hi, libcdio-parania > 0.90?

Test: ./configure CPPFLAGS="-DHAVE_PARANOIA_NEW_INCLUDES" & make See https://github.com/matiasdelellis/pragha/issues/46 for details..

Regards, Matias.

cdprincipe commented 11 years ago

YES i have 10.2 version... I'm on archlinux https://www.archlinux.org/packages/?q=libcdio-paranoia

diego ~/pragha-git/src/pragha $  ./configure CPPFLAGS="-DHAVE_PARANOIA_NEW_INCLUDES"
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether NLS is requested... yes
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.18.0
checking for XML::Parser... ok
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format... func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking for catalogs to be installed...  cs de es el fr hu it ja nl no pl pt pt_BR ru sv tr uk zh_CN
checking for bind_textdomain_codeset... (cached) yes
checking for locales directory... ${datarootdir}/locale
checking for additional xgettext flags... --keyword=Q_ --from-code=UTF-8
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gstreamer-1.0 >= 0.11.90... 1.0.7
checking GSTREAMER_CFLAGS... -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
checking GSTREAMER_LIBS... -lgstreamer-1.0 -lgobject-2.0 -lgmodule-2.0 -pthread -lgthread-2.0 -pthread -lglib-2.0 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gstreamer-base-1.0 >= 0.11.90... 1.0.7
checking GSTREAMER_BASE_CFLAGS... -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
checking GSTREAMER_BASE_LIBS... -lgstbase-1.0 -lgstreamer-1.0 -lgobject-2.0 -lgmodule-2.0 -pthread -lgthread-2.0 -pthread -lglib-2.0 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gio-2.0 >= 2.28... 2.36.3
checking GIO_CFLAGS... -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
checking GIO_LIBS... -lgio-2.0 -lgobject-2.0 -lglib-2.0 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gtk+-2.0 >= 2.24.0... 2.24.20
checking GTK_CFLAGS... -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 
checking GTK_LIBS... -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfreetype -lfontconfig 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for sqlite3 >= 3.4... 3.7.17
checking SQLITE3_CFLAGS... 
checking SQLITE3_LIBS... -lsqlite3 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for dbus-1 >= 1.1... 1.6.12
checking DBUS_CFLAGS... -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include 
checking DBUS_LIBS... -ldbus-1 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for dbus-glib-1 >= 0.84... 0.100.2
checking DBUS_GLIB_CFLAGS... -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
checking DBUS_GLIB_LIBS... -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libnotify >= 0.4.4... 0.7.5
checking LIBNOTIFY_CFLAGS... -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
checking LIBNOTIFY_LIBS... -lnotify -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libcdio >= 0.80... 0.90
checking LIBCDIO_CFLAGS... 
checking LIBCDIO_LIBS... -lcdio -lm 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libcdio_paranoia >= 0.80... 10.2+0.90+1
checking LIBCDIO_PARANOIA_CFLAGS... 
checking LIBCDIO_PARANOIA_LIBS... -lcdio_paranoia -lcdio_cdda -lcdio -lm 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libcddb >= 1.3.0... 1.3.2
checking LIBCDDB_CFLAGS... 
checking LIBCDDB_LIBS... -lcddb 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for taglib_c >= 1.4... 1.8.0
checking TAGLIB_C_CFLAGS... -I/usr/include/taglib 
checking TAGLIB_C_LIBS... -ltag_c -ltag 
checking cdio/paranoia/cdda.h usability... yes
checking cdio/paranoia/cdda.h presence... yes
checking for cdio/paranoia/cdda.h... yes
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for taglib >= 1.7.0... 1.8.0
checking TAGLIB_1_7_CFLAGS... -I/usr/include/taglib 
checking TAGLIB_1_7_LIBS... -ltag 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gstreamer-audio-1.0 >= 0.11.90... 1.0.7
checking GSTREAMER_AUDIO_CFLAGS... -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
checking GSTREAMER_AUDIO_LIBS... -lgstaudio-1.0 -lgstbase-1.0 -lgstreamer-1.0 -lgobject-2.0 -lgmodule-2.0 -pthread -lgthread-2.0 -pthread -lglib-2.0 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for keybinder >= 0.2.0... 0.3.0
checking LIBKEYBINDER_CFLAGS... -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 
checking LIBKEYBINDER_LIBS... -lkeybinder -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfreetype -lfontconfig 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libclastfm >= 0.5... 0.5
checking LIBCLASTFM_CFLAGS... 
checking LIBCLASTFM_LIBS... -lclastfm -lcurl 
checking for optional package libglyr >= 1.0.1... not found
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libxfce4ui-1 >= 4.8.0... 4.10.0
checking LIBXFCE4UI_CFLAGS... -pthread -I/usr/include/xfce4/libxfce4ui-1 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
checking LIBXFCE4UI_LIBS... -lxfce4ui-1 -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lfreetype -lfontconfig -lxfce4util -lglib-2.0 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for totem-plparser >= 2.26... 3.4.5
checking PLPARSER_CFLAGS... -pthread -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -pthread -I/usr/include/totem-pl-parser/1/plparser -I/usr/include/libxml2 -I/usr/include/gmime-2.6 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
checking PLPARSER_LIBS... -ltotem-plparser -lgio-2.0 -lgobject-2.0 -lglib-2.0 
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating po/Makefile.in
config.status: creating src/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default-1 commands
config.status: executing po/stamp-it commands

Build Configuration for pragha version 1.1.2

  Gtk version used...: 2.24.20
  Prefix.............: /usr/local
  Debug enabled......: false

  Cubic volume support.....................(Need gstreamer-plugins-base).: yes
  Use multimedia key without gnome-media-keys..(Need keybinder >= 0.2.0).: yes
  Better session management support...........(Need libxfce4ui >= 4.8.0).: yes
  Lastfm scroble, and add similar songs support (Need libclastfm >= 0.5).: yes
  Search lyrics, artists info and albums art.....(Need libglyr >= 1.0.1).: no
  Use totem-pl-parser to open playlists....(Need totem-plparser >= 2.26).: yes
diego ~/pragha-git/src/pragha $ make
make  all-recursive
make[1]: Entering directory `/home/diego/pragha-git/src/pragha'
Making all in po
make[2]: Entering directory `/home/diego/pragha-git/src/pragha/po'
  MSGFMT cs.gmo
  MSGFMT de.gmo
  MSGFMT es.gmo
  MSGFMT el.gmo
  MSGFMT fr.gmo
  MSGFMT hu.gmo
  MSGFMT it.gmo
  MSGFMT ja.gmo
  MSGFMT nl.gmo
  MSGFMT no.gmo
  MSGFMT pl.gmo
  MSGFMT pt.gmo
  MSGFMT pt_BR.gmo
  MSGFMT ru.gmo
  MSGFMT sv.gmo
  MSGFMT tr.gmo
  MSGFMT uk.gmo
  MSGFMT zh_CN.gmo
make[2]: Leaving directory `/home/diego/pragha-git/src/pragha/po'
Making all in src
make[2]: Entering directory `/home/diego/pragha-git/src/pragha/src'
  CC       pragha-init.o
  CC       pragha-info-bar-import-music.o
  CC       pragha-gnome-media-keys.o
  CC       pragha-pragha.o
  CC       pragha-pragha-album-art.o
  CC       pragha-pragha-backend.o
  CC       pragha-pragha-cdda.o
  CC       pragha-pragha-cmdline.o
  CC       pragha-pragha-database.o
  CC       pragha-pragha-dbus.o
  CC       pragha-pragha-debug.o
  CC       pragha-pragha-equalizer.o
  CC       pragha-pragha-file-utils.o
  CC       pragha-pragha-filter-dialog.o
  CC       pragha-pragha-glyr.o
  CC       pragha-pragha-hig.o
  CC       pragha-pragha-library-pane.o
  CC       pragha-pragha-menubar.o
  CC       pragha-pragha-mpris.o
  CC       pragha-pragha-musicobject.o
  CC       pragha-pragha-musicobject-mgmt.o
  CC       pragha-pragha-notify.o
  CC       pragha-pragha-playback.o
  CC       pragha-pragha-playlist.o
  CC       pragha-pragha-playlists-mgmt.o
  CC       pragha-pragha-preferences.o
  CC       pragha-pragha-preferences-dialog.o
  CC       pragha-pragha-prepared-statement.o
  CC       pragha-pragha-scanner.o
  CC       pragha-pragha-sidebar.o
  CC       pragha-pragha-simple-async.o
  CC       pragha-pragha-simple-widgets.o
  CC       pragha-pragha-statusbar.o
  CC       pragha-pragha-statusicon.o
  CC       pragha-pragha-tagger.o
  CC       pragha-pragha-tags-dialog.o
pragha-tags-dialog.c: In function ‘pragha_tags_dialog_finalize’:
pragha-tags-dialog.c:557:20: warning: unused variable ‘dialog’ [-Wunused-variable]
  PraghaTagsDialog *dialog = PRAGHA_TAGS_DIALOG (object);
                    ^
  CC       pragha-pragha-tags-mgmt.o
  CC       pragha-pragha-toolbar.o
  CC       pragha-pragha-utils.o
  CC       pragha-pragha-window.o
  CC       pragha-gtkcellrendererbubble.o
  CC       pragha-pragha-lastfm.o
  CC       pragha-xml_helper.o
  CC       pragha-pragha-keybinder.o
  CCLD     pragha
make[2]: Leaving directory `/home/diego/pragha-git/src/pragha/src'
make[2]: Entering directory `/home/diego/pragha-git/src/pragha'
  ITMRG  data/pragha.desktop
make[2]: Leaving directory `/home/diego/pragha-git/src/pragha'
make[1]: Leaving directory `/home/diego/pragha-git/src/pragha'

I've solved with this patch

--- a/src/pragha-cdda.h.orig    2013-02-16 23:13:47.000000000 +0100
+++ b/src/pragha-cdda.h 2013-06-02 21:07:50.473864563 +0200
@@ -24,7 +24,7 @@
 #ifdef HAVE_PARANOIA_NEW_INCLUDES
    #include <cdio/paranoia/cdda.h>
 #else
-   #include <cdio/cdda.h>
+   #include <cdio/paranoia/cdda.h>
    #ifdef __CDIO_CONFIG_H__
       #include <cdio/cdio_unconfig.h>
    #endif

But with

  ./configure CPPFLAGS="-DHAVE_PARANOIA_NEW_INCLUDES"

All works without patch

matiasdelellis commented 11 years ago

Or commenting the line 23 on pragha.h get the same result. =)

cdprincipe commented 11 years ago

What is the solution that you advise me? I prefer

./configure CPPFLAGS="-DHAVE_PARANOIA_NEW_INCLUDES"

Beacuse is simplier to implement in a package script https://aur.archlinux.org/packages/pragha-git/

matiasdelellis commented 11 years ago

Yes.. Is better.. It's a shame that I did not find how to make it work automatically with paranoia 0.83 and 0.90.

cdprincipe commented 11 years ago

Ok... closed