OpenWrt Forum Archive

Topic: Cann't compile rygel into OpenWrt,Package not found in Vala API dir

The content of this topic has been archived on 20 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I just want to make my router WDR4300 as a renderer,
and in the newest trunk version r35094,I found it can support rygel now.
So I selected the rygel-playbin,rygel-playbin-gst-suggested packages following the OpenWrt rygel Wiki.
But when I try to compile,it show me such error messages:

error: Package `gupnp-1.0' not found in specified Vala API directories or GObject-Introspection GIR directories
error: Package `gupnp-av-1.0' not found in specified Vala API directories or GObject-Introspection GIR directories
error: Package `gupnp-dlna-1.0' not found in specified Vala API directories or GObject-Introspection GIR directories
error: Package `gee-1.0' not found in specified Vala API directories or GObject-Introspection GIR directories

Consider adjusting the XDG_DATA_DIRS environment variable if you
installed bindings in a non-standard prefix.

make[3]: *** [/home/admin/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/rygel-0.14.1/.configured_] Error 1
make[3]: Leaving directory `/home/admin/openwrt/trunk/feeds/packages/multimedia/rygel'
make[2]: *** [package/feeds/packages/rygel/compile] Error 2
make[2]: Leaving directory `/home/admin/openwrt/trunk'
make[1]: *** [/home/admin/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/stamp/.package_compile] Error 2

Anyone who knows why and how to solve such problem?Many thanks!

I just sent a patch for this, http://patchwork.openwrt.org/patch/3178/

However, as the patch mail says, I'm having trouble with audio output on the latest trunk. If audio is working in other applications on your router, then you're probably okay, otherwise, you may want to try building rygel for AA instead of trunk.

Sorry for taking a long time to reply,I just tested on trunk r35094 yesterday,
the patch working,the audio playback via rygel working well on my router.
Thanks for your help!

Hello,all. I use aandyl's patch,now it is still in errors like this:

/media/Openwrt/Openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/lib/gcc/mips-openwrt-linux-uclibc/4.6.4/../../../../mips-openwrt-linux-uclibc/bin/ld: rygel-main.o: undefined reference to symbol 'gssdp_client_get_network'
/media/Openwrt/Openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/lib/gcc/mips-openwrt-linux-uclibc/4.6.4/../../../../mips-openwrt-linux-uclibc/bin/ld: note: 'gssdp_client_get_network' is defined in DSO /media/Openwrt/Openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib/libgssdp-1.0.so.3 so try adding it to the linker command line
/media/Openwrt/Openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib/libgssdp-1.0.so.3: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[8]: *** [rygel] Error 1
make[8]: Leaving directory `/media/Openwrt/Openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/rygel-0.14.1/src/rygel'
make[7]: *** [all] Error 2
make[7]: Leaving directory `/media/Openwrt/Openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/rygel-0.14.1/src/rygel'
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory `/media/Openwrt/Openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/rygel-0.14.1/src'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/media/Openwrt/Openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/rygel-0.14.1'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/media/Openwrt/Openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/rygel-0.14.1'
make[3]: *** [/media/Openwrt/Openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/rygel-0.14.1/.built] Error 2
make[3]: Leaving directory `/media/Openwrt/Openwrt/trunk/feeds/packages/multimedia/rygel'
make[2]: *** [package/feeds/packages/rygel/compile] Error 2
make[2]: Leaving directory `/media/Openwrt/Openwrt/trunk'
make[1]: *** [/media/Openwrt/Openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory `/media/Openwrt/Openwrt/trunk'
   from the above,rygel compilation is passed,but link error,anyone met this problem?

Thanks

It never got to a working state with clean trunk.

I try to keep the wiki page http://wiki.openwrt.org/doc/howto/rygel updated with the latest build instructions.

Last I tried, building with trunk required 3 patches to the openwrt build tree and the updated rygel packaging available in the github repo.

Thank you for your reply, aandyl.

  I've made the compilation and the link successfully.But when I run rygel,windows or android phone cannot find the rygel renderer,any advice or could you point out how to setup rygel or run it correctly?

  I really don't know how to run it in a right way.

Thanks again

Sorry for the delayed reply, I don't think I got a notification about your second post. Some things to check:

  • Make sure rygel really is running, note that on OpenWrt, when a system service is not part of the base image (i.e. is installed as a package), it is not enabled by default, it must be enabled with /etc/init.d/rygel enable

  • Try using the gupnp-av-cp test control point.

  • Check for rygel messages in the syslog using logread

  • Check that you have set an interface for rygel if necessary and that it's not blocked by the firewall

  • If all else fails, use tcpdump to check the network traffic

I haven't tried recently. What is the error? Have you applied the patches linked from the README in that repository?

this is the error:
WARNING: skipping gst-mod-mpeg2dec -- package not selected
WARNING: skipping gst-plugins-ugly -- package not selected
make[3]: Leaving directory `/home/serra82/openwrt/feeds/rygel/multimedia/gst-plugins-ugly'
make[3]: Entering directory `/home/serra82/openwrt/package/utils/util-linux'
make -C /home/serra82/openwrt/build_dir/host/util-linux-2.24.1/libuuid install
make[4]: Entering directory `/home/serra82/openwrt/build_dir/host/util-linux-2.24.1/libuuid'
make[4]: *** No rule to make target `install'.  Stop.
make[4]: Leaving directory `/home/serra82/openwrt/build_dir/host/util-linux-2.24.1/libuuid'
make[3]: *** [/home/serra82/openwrt/staging_dir/host/stamp/.util-linux_installed] Error 2
make[3]: Leaving directory `/home/serra82/openwrt/package/utils/util-linux'
make[2]: *** [package/utils/util-linux/host/compile] Error 2
make[2]: Leaving directory `/home/serra82/openwrt'
make[1]: *** [/home/serra82/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/serra82/openwrt'
make: *** [world] Error 2

I applied the patches, but there was an error with patch 4467 so I applied the relative change manually; I think that is the problem!
thank you

The discussion might have continued from here.