|
再放一个最近的编译包过程
hplip,一个朋友打算弄网络扫描,需要这个版本是3.10以上,而openwrt的在oldpackage里,版本是3.9.12
这个开源包的官网已经是3.15.9
http://hplipopensource.com/hplip-web/index.html
15.05要先打开oldpackage注释,14.04就不用这步,然后
./scripts/feeds update -a
./scripts/feeds install hplip
修改[源码目录]feeds/oldpackages/utils/hplip/Makefile
- #
- # Copyright (C) 2006-2011 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:=hplip
- PKG_VERSION:=3.15.9
- PKG_RELEASE:=4
- PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
- PKG_SOURCE_URL:=@SF/hplip
- PKG_MD5SUM:=8188653d1e65ae1c4850da78319007ee
- PKG_BUILD_DEPENDS := python
- PKG_FIXUP:=autoreconf
- include $(INCLUDE_DIR)/package.mk
- define Package/hplip
- SECTION:=utils
- CATEGORY:=Utilities
- TITLE:=HP Linux Imaging and Printing
- URL:=http://sourceforge.net/projects/hplip/
- DEPENDS+=+libjpeg +libtiff +libusb-compat +cups +sane-libs
- endef
- define Package/hplip/description
- HPLIP is an HP developed solution for printing, scanning, and faxing with HP inkjet and laser based printers in Linux.
- endef
- CONFIGURE_ARGS += \
- --disable-gui-build \
- --disable-network-build \
- --disable-fax-build \
- --disable-pp-build \
- --disable-doc-build \
- --disable-foomatic-xml-install \
- --disable-dbus-build
- define Build/Configure
- $(call Build/Configure/Default,\
- $(CONFIGURE_ARGS),\
- ac_cv_lib_cups_cupsDoFileRequest=yes \
- LIBS="-lz -ljpeg -lusb -lcups -lpng -ltiff" \
- )
- endef
- define Package/hplip/install
- $(INSTALL_DIR) $(1)/usr/lib
- $(CP) $(PKG_BUILD_DIR)/.libs/libhpip.so* $(1)/usr/lib/
- $(CP) $(PKG_BUILD_DIR)/.libs/libhpmud.so* $(1)/usr/lib/
- $(CP) $(PKG_BUILD_DIR)/.libs/libhpipp.so* $(1)/usr/lib/
- $(INSTALL_DIR) $(1)/usr/lib/cups/backend
- $(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/hp $(1)/usr/lib/cups/backend
- $(INSTALL_DIR) $(1)/usr/lib/sane
- $(CP) $(PKG_BUILD_DIR)/.libs/libsane-hpaio.so* $(1)/usr/lib/sane
- $(INSTALL_DIR) $(1)/etc/hp
- $(CP) $(PKG_BUILD_DIR)/hplip.conf $(1)/etc/hp/hplip.conf
- $(INSTALL_DIR) $(1)/usr/share/hplip/data/models/
- $(CP) $(PKG_BUILD_DIR)/data/models/models.dat $(1)/usr/share/hplip/data/models/
- $(INSTALL_DIR) $(1)/etc/hotplug.d/usb/
- $(INSTALL_BIN) ./files/20-hplip $(1)/etc/hotplug.d/usb/
- $(INSTALL_DIR) $(1)/etc/sane.d/dll.d/
- $(INSTALL_DATA) ./files/hplib.conf $(1)/etc/sane.d/dll.d/hplib
- endef
- define Package/hplip/conffiles
- /etc/hp/hplip.conf
- endef
- $(eval $(call BuildPackage,hplip))
复制代码 主要是更新版本
再加上这行
$(CP) $(PKG_BUILD_DIR)/.libs/libhpipp.so* $(1)/usr/lib/
新版加了这个so依赖,不加会报依赖不满足
安装编译中要用的lib
sudo apt-get install libusb-1.0-0-dev libusb-dev
在make menuconfig中选中hplip包为M然后就可以make了放上在14.07源码下编译出来的 ar71xx ipk
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|