hzeller / gmrender-resurrect

Resource efficient UPnP/DLNA renderer, optimal for Raspberry Pi, CuBox or a general MediaServer. Fork of GMediaRenderer to add some features to make it usable.
GNU General Public License v2.0
839 stars 204 forks source link

Compile issue on Raspberry Pi #30

Closed scp93ch closed 11 years ago

scp93ch commented 11 years ago

The July 24 version that has code for printing version numbers does not compile on a Raspberry Pi:

gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -pthread -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include   -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/libxml2   -pthread -I/usr/include/upnp   -DPKG_DATADIR=\"/usr/local/share/gmediarender\"   -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wwrite-strings -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
In file included from main.c:48:0:
/usr/include/glib-2.0/glib/gversion.h:28:2: error: #error "Only <glib.h> can be included directly."
hzeller commented 11 years ago

Doh, I should start making a compile cluster that tests different versions.

Thanks for the report; fixed in: https://github.com/hzeller/gmrender-resurrect/commit/3532fa24f4677b0f94c1bde217d85dd0c814c380