Hi,
I´m trying to create my first OpenWrt package for the libwlocate library but I´m stuck at this point:
find /home/floh1111/openwrt-sdk-x86_64/build/fonera/build_dir/target-mips_r2_uClibc-0.9.33.2/libwlocate-1.1/ipkg-ar71xx/libwlocate -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
Package libwlocate is missing dependencies for the following libraries:
libc.so.6
libiw.so.29
libm.so.6
make[2]: *** [/home/floh1111/openwrt-sdk-x86_64/build/fonera/bin/ar71xx/packages/libwlocate_1.1-1_ar71xx.ipk] Error 1
My makefile created based on the howto from the wiki looks like this:
#
# Copyright (C) 2006-2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=libwlocate
PKG_VERSION:=1.1
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://dev.freifunk-ol.de/packages
PKG_MD5SUM:=739b43ac6845efa6edf5d8aae0676169
include $(INCLUDE_DIR)/package.mk
define Package/libwlocate
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Shared library that can be used for location-based services
URL:=http://sourceforge.net/projects/libwlocate/
DEPENDS:=+wireless-tools
endef
define Package/libwlocate/description
libwlocate is a shared library that can be used for location-based services.
It checks for WLAN-networks that are available near to a user and retrieves the
current geographic position out of them.
Thus no GPS is needed for positioning. This WLAN-based geolocation happens
without using any of the commercial services that do the same but track the users
position and data. libwlocate instead bases on the free OpenWLANMap project.
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_BUILD_DIR)/libwlocate.h $(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/libwlocate.so $(1)/usr/lib/
endef
define Package/libwlocate/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/libwlocate.so $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libwlocate))
I think to get libiw.so.29 I have to make the package depend on wireless-tools right? But what´s up with the other depencies the compiler complains about?
I´m some kind of new to building packages for OpenWrt. I already tried to build this library some months ago and failed but now I need it again to test some stuff so I would be happy if anyone can help me.
Kind regards
Floh1111