除了要在 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去掉了