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
832 stars 202 forks source link

can't build in OpenWrt 18 #171

Closed Cathgao closed 5 years ago

Cathgao commented 5 years ago
root@OpenWrt:/mnt/sda# git clone http://github.com/hzeller/gmrender-resurrect
Cloning into 'gmrender-resurrect'...
warning: redirecting to https://github.com/hzeller/gmrender-resurrect/
remote: Enumerating objects: 1467, done.
remote: Total 1467 (delta 0), reused 0 (delta 0), pack-reused 1467
Receiving objects: 100% (1467/1467), 418.74 KiB | 315.00 KiB/s, done.
Resolving deltas: 100% (1033/1033), done.
root@OpenWrt:/mnt/sda# cd gmrender-resurrect/
root@OpenWrt:/mnt/sda/gmrender-resurrect# ./autogen.sh 
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force 
autoreconf: configure.ac: tracing
autoreconf: configure.ac: creating directory config
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:8: installing 'config/compile'
configure.ac:6: installing 'config/install-sh'
configure.ac:6: installing 'config/missing'
Makefile.am: installing './INSTALL'
src/Makefile.am: installing 'config/depcomp'
autoreconf: Leaving directory `.'
root@OpenWrt:/mnt/sda/gmrender-resurrect# ./configure
checking for a BSD-compatible install... config/install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
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 dependency style of gcc... gcc3
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for gcc option to accept ISO C99... none needed
checking for gcc option to accept ISO Standard C... (cached) none needed
checking whether make sets $(MAKE)... (cached) yes
./configure: line 4943: CFLAGS+= -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wwrite-strings: not found
./configure: line 4944: CXXFLAGS+= -Wall -Wpointer-arith: not found
checking for asprintf... yes
checking for exp in -lm... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for glib-2.0 gthread-2.0... no
checking for gstreamer-1.0 >= 0.10.1... no
checking for gstreamer-0.10 >= 0.10.1... no
checking for libupnp >= 1.6.0... no
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating data/Makefile
config.status: creating config.h
config.status: executing depfiles commands
root@OpenWrt:/mnt/sda/gmrender-resurrect# make
make  all-recursive
make[1]: Entering directory '/mnt/sda/gmrender-resurrect'
Making all in src
make[2]: Entering directory '/mnt/sda/gmrender-resurrect/src'
(echo "#define GM_COMPILE_VERSION \"2018-08-18_a7b0b1b\"" > git-version.h-new; \
cmp -s git-version.h git-version.h-new || cp git-version.h-new git-version.h; \
rm git-version.h-new)
gcc -DHAVE_CONFIG_H -I. -I..     -DPKG_DATADIR=\"/usr/local/share/gmediarender\"   -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
main.c:31:18: fatal error: glib.h: No such file or directory
compilation terminated.
make[2]: *** [Makefile:391: main.o] Error 1
make[2]: Leaving directory '/mnt/sda/gmrender-resurrect/src'
make[1]: *** [Makefile:364: all-recursive] Error 1
make[1]: Leaving directory '/mnt/sda/gmrender-resurrect'
make: *** [Makefile:305: all] Error 2

but I have installed the glib2

root@OpenWrt:/mnt/sda/gmrender-resurrect# opkg install glib2
Package glib2 (2.58.1-2) installed in root is up to date.