Anyone have experiencing about porting libnice at OpenWrt?

Hi everyone,

We are working on porting janus gateway to openwrt. First dependency is libnice. Try to use following Makefile to build libnice, and have error with

|Library intl found: NO
|../../../../build_dir/target-mips-linux_uClibc/libnice-0.1.19/subprojects/glib-2.64.2/meson.build:1913: WARNING: Dependency proxy-libintl not found but it is available in a sub-subproject.
|To use it in the current project, promote it by going in the project source
|root and issuing the following command: 
|meson wrap promote subprojects/glib-2.64.2/subprojects/proxy-libintl.wrap

../../../../build_dir/target-mips-linux_uClibc/libnice-0.1.19/subprojects/glib-2.64.2/meson.build:1913:4: ERROR: Subproject directory not found and proxy-libintl.wrap file not found

This is my Makefile.

include $(TOPDIR)/rules.mk

PKG_NAME:=libnice
PKG_VERSION:=0.1.19
PKG_RELEASE:=1

PKG_MAINTAINER:=Collabora

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://libnice.freedesktop.org/releases/
PKG_HASH:=6747af710998cf708a2e8ceef51cccd181373d94201dd4b8d40797a070ed47cc

PKG_INSTALL:=1
PKG_BUILD_DEPENDS:=meson/host glib2/host ninja/host

include $(INCLUDE_DIR)/package.mk
include ../../devel/meson/meson.mk

define Package/$(PKG_NAME)
    SECTION:=libs
    CATEGORY:=Libraries
    TITLE:=libnice is hosted by freedesktop.org
    URL:=https://libnice.freedesktop.org
    DEPENDS:=+libffi +zlib +libpcre     
endef

define Package/$(PKG_NAME)/description
    The libnice library contains the ICE library and the STUN library as well as a Pseudo TCP socket implementation.
endef

define Build/InstallDev
    $(INSTALL_DIR) $(1)/usr/include
    #$(CP) $(PKG_INSTALL_DIR)/usr/include/*.h       $(1)/usr/include/

    $(INSTALL_DIR) $(1)/usr/lib
    #$(CP) $(PKG_INSTALL_DIR)/usr/lib/libedit.{a,so*}   $(1)/usr/lib/

endef

define Package/$(PKG_NAME)/install
    $(INSTALL_DIR) $(1)/usr/lib
    #$(CP) $(PKG_INSTALL_DIR)/usr/lib/libedit.so.*  $(1)/usr/lib/
endef

$(eval $(call BuildPackage,$(PKG_NAME)))

If you have any suggestion, that would be great. Thanks.

Hi All,

We fix this issue by add correct DEPEND. Thanks.

DEPENDS:=+libffi +zlib +glib2 +libgnutls

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.