ipk 编译 包不存在解决 openwrt下使用lame

除了要在 DEPENDS:=+libxxx之外,app

可能还须要在下面的define Package/$(PKG_NAME)/install里面增长copy lib命令spa

通常都是在打包时候出现错误ip

define Package/$(PKG_NAME)ci

 SECTION:=utilsget

 CATEGORY:=Utilitiescmd

 DEPENDS:=+libpthread +libmad +libmp3lameit

 TITLE:=hello --hello hello app编译

endefthread

define Package/$(PKG_NAME)/install打包

 #$(INSTALL_DIR) $(1)/usr/sbin

 #$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin

 $(INSTALL_DIR) $(1)/tmp

 $(CP) /home/hekaifeng/SDK/SDK_BASE/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib/libmp3lame.* $(1)/tmp

 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/tmp

endef


还有问题:

上面的是对于libmp3lame而言的,虽然上面这样写了能够编译也经过,可是发如今安装时候出现错误,一直提示:

Downloading http://192.168.0.11/hello_1.0.0-1_ar71xx.ipk.
Installing hello (1.0.0-1) to root...
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for hello:
 *      libmp3lame * 

 * opkg_install_cmd: Cannot install package hello.

因此直接把上面 +libmp3lame去掉了

相关文章
相关标签/搜索