OpenWrt Forum Archive

Topic: hplip kamikaze

The content of this topic has been archived on 15 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi, I have successfully compiled & used hplip on kamikaze 7.09 (compiled on trunk, used on 7.09).

The Makefile I used is slightly modified from:
http://lists.openwrt.org/pipermail/open … 01661.html
to satisfy dependencies. Here it is:

# 
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id: $

include $(TOPDIR)/rules.mk

PKG_NAME:=hplip
PKG_VERSION:=2.7.12
PKG_RELEASE:=2

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/hplip
PKG_MD5SUM:=ba00337ccf1b520509518bffbec960db

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_BUILD_DEPENDS:=python

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 +sane-libs +cups +libusb
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

define Build/Configure
    $(call Build/Configure/Default, \
        --disable-gui-build \
        --disable-network-build \
        --disable-fax-build \
        --disable-pp-build \
        --disable-doc-build \
        --disable-foomatic-xml-install \
    )
endef

define Build/Compile
    $(call Build/Compile/Default, \
    )
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/
    
    $(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/
endef

$(eval $(call BuildPackage,hplip))

The compiled package is here:

http://misha680.googlepages.com/hplip_2 … mipsel.ipk

Misha

I changed the Makefile and split into subpackages. Updated to latest hplip version and linked against uClibc++ instead of libstdc++ (hpijs).

Below is the changed Makefile for hplip. Please test and report. I'd like to add it to subversion if it's working.

#
# Copyright (C) 2008 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id$

include $(TOPDIR)/rules.mk

PKG_NAME:=hplip
PKG_VERSION:=2.8.2
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/$(PKG_NAME)
PKG_MD5SUM:=ea57b92483622d3eae359994c5fd3dc3

PKG_BUILD_DEPENDS:=python

PKG_FIXUP = libtool

include $(INCLUDE_DIR)/package.mk

define Package/hplip/Default
  URL:=http://hplip.sourceforge.net/
  TITLE:=HP Linux Printing and Imaging
endef

define Package/hplip
$(call Package/hplip/Default)
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE+=(HPLIP)
  DEPENDS:=+uclibcxx +libjpeg +sane-libs +cups +libusb +libpthread
endef

define Package/hplip/conffiles
/etc/hp/hplip.conf
/etc/sane.d/dll.conf
endef

define Package/hplip-data
$(call Package/hplip/Default)
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE+=- data files
  DEPENDS:=hplip
endef

define Package/hpijs
$(call Package/hplip/Default)
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE+=- gs IJS driver (hpijs)
  DEPENDS:=hplip
endef

define Package/hpijs-ppds
$(call Package/hplip/Default)
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE+=- HPIJS PPD files
  DEPENDS:=hpijs
endef

CONFIGURE_ARGS += \
    --enable-shared \
    --enable-static \
    --disable-gui-build \
    --disable-network-build \
    --disable-fax-build \
    --disable-pp-build \
    --disable-doc-build \
    --disable-foomatic-xml-install \

define Build/Compile
    $(MAKE) -C $(PKG_BUILD_DIR) \
        DESTDIR="$(PKG_INSTALL_DIR)" \
        CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/uClibc++ -fno-builtin -fno-rtti -nostdinc++" \
        LDFLAGS="$(TARGET_LDFLAGS) -nodefaultlibs -luClibc++" \
        all install
endef

define Package/hplip/install
    $(INSTALL_DIR) $(1)/usr/lib
    $(CP) $(PKG_INSTALL_DIR)/usr/lib/libhpip.so* $(1)/usr/lib/
    $(CP) $(PKG_INSTALL_DIR)/usr/lib/libhpmud.so* $(1)/usr/lib/

    $(INSTALL_DIR) $(1)/usr/lib/sane
    $(CP) $(PKG_INSTALL_DIR)/usr/lib/sane/libsane-hpaio.so* $(1)/usr/lib/sane/

    $(INSTALL_DIR) $(1)/etc/hp
    $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/hp/hplip.conf $(1)/etc/hp/hplip.conf
    $(INSTALL_DIR) $(1)/etc/sane.d
    $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/sane.d/dll.conf $(1)/etc/sane.d/dll.conf

    $(INSTALL_DIR) $(1)/usr/bin
    $(CP) $(PKG_INSTALL_DIR)/usr/bin/hp-* $(1)/usr/bin/

    $(INSTALL_DIR) $(1)/usr/lib/cups/backend
    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/cups/backend/hp $(1)/usr/lib/cups/backend/

    $(INSTALL_DIR) $(1)//usr/lib/python2.5
    $(CP) $(PKG_INSTALL_DIR)/usr/lib/python2.5/ $(1)/usr/lib/python2.5/

    $(INSTALL_DIR) $(1)/usr/share/hplip/data/models
    $(CP) $(PKG_INSTALL_DIR)/usr/share/hplip/data/models/models.dat $(1)/usr/share/hplip/data/models/
endef

define Package/hplip-data/install
    $(INSTALL_DIR) $(1)/usr/share/hplip
    $(CP) $(PKG_INSTALL_DIR)/usr/share/hplip/* $(1)/usr/share/hplip/
    # $(INSTALL_DIR) $(1)/usr/share/lintian/overrides
    # $(CP) $(PKG_INSTALL_DIR)/usr/share/lintian/overrides/hplip-data $(1)/usr/share/lintian/overrides/
    $(INSTALL_DIR) $(1)/usr/share/hplip/data/models
    $(CP) $(PKG_INSTALL_DIR)/usr/share/hplip/data/models/models.dat $(1)/usr/share/hplip/data/models/
endef

define Package/hpijs/install
    $(INSTALL_DIR) $(1)/usr/bin
    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/hpijs $(1)/usr/bin/
endef

define Package/hpijs-ppds/install
    $(INSTALL_DIR) $(1)/usr/share/ppd/hpijs/HP
    $(CP) $(PKG_INSTALL_DIR)/usr/share/ppd/HP/* $(1)/usr/share/ppd/hpijs/HP/
endef

$(eval $(call BuildPackage,hplip))
$(eval $(call BuildPackage,hplip-data))
$(eval $(call BuildPackage,hpijs))
$(eval $(call BuildPackage,hpijs-ppds))
misha680 wrote:

Hi, I have successfully compiled & used hplip on kamikaze 7.09 (compiled on trunk, used on 7.09).

The compiled package is here:

http://misha680.googlepages.com/hplip_2 … mipsel.ipk

Misha

Hi!

Do you happen to have a whiterussian version of this? Sorry, i just cant get the toolchain working properly to compile my own. It works (sort of) in whiterussian but there are some issues (I posted in this topic http://forum.openwrt.org/viewtopic.php?id=15382)

Thanks!

asuswrt wrote:

Do you happen to have a whiterussian version of this?

No. WR is obsolete. Upgrade to Kamikaze trunk smile

forum2008 wrote:
asuswrt wrote:

Do you happen to have a whiterussian version of this?

No. WR is obsolete. Upgrade to Kamikaze trunk smile

i'd love to but sadly i read that the asus wl500gP cannot use the wireless in Kamikaze unless i replace the wireless minipci card with a supported one... and i just got the router last week.

asuswrt wrote:
forum2008 wrote:
asuswrt wrote:

Do you happen to have a whiterussian version of this?

No. WR is obsolete. Upgrade to Kamikaze trunk smile

i'd love to but sadly i read that the asus wl500gP cannot use the wireless in Kamikaze unless i replace the wireless minipci card with a supported one... and i just got the router last week.

That is absolutely not true. I have Kamikaze 7.09 on the Asus wl500gp it it is the brcm-2.4 version that has the 2.4 kernel version vs 2.6 for other platforms. I don't use trunk but unless there is a temporary regression it should be supported on Asus wl500gp as well.

The only problem I've heard about is with USB hard drives (_not_ flash drives though) through wireless transferring at high speeds, but I don't have one so I'm quite happy and have not had any problems.

Misha

misha680 wrote:
asuswrt wrote:
forum2008 wrote:

No. WR is obsolete. Upgrade to Kamikaze trunk smile

i'd love to but sadly i read that the asus wl500gP cannot use the wireless in Kamikaze unless i replace the wireless minipci card with a supported one... and i just got the router last week.

That is absolutely not true. I have Kamikaze 7.09 on the Asus wl500gp it it is the brcm-2.4 version that has the 2.4 kernel version vs 2.6 for other platforms. I don't use trunk but unless there is a temporary regression it should be supported on Asus wl500gp as well.

The only problem I've heard about is with USB hard drives (_not_ flash drives though) through wireless transferring at high speeds, but I don't have one so I'm quite happy and have not had any problems.

Misha

i didnt know Kamikaze would run anything other than 2.6.x. great news i'll just switch to Kamikaze with 2.4. the only reason i loaded up whiterussian was the 2.4 and the wireless support for the wl500gP.

Thanks again!

OK installed Kamikaze 7.09 and it's working with my psc1315 both scan & print! here are my instructions:

http://forum.openwrt.org/viewtopic.php?id=15382

hope it helps someone since i have not seen any complete instructions on the board for this device.

(Last edited by asuswrt on 26 Apr 2008, 23:04)

asuswrt wrote:

OK installed Kamikaze 7.09 and it's working with my psc1315 both scan & print! here are my instructions:

http://forum.openwrt.org/viewtopic.php?id=15382

hope it helps someone since i have not seen any complete instructions on the board for this device.

Glad it worked for you and thanks for posting instructions. I only use the sane functionality and use p910nd for printing (I have a 1 GB flash drive
on my router and I think I'm only at 2% space anyway so having cups installed doesn't really take too much space for me, maybe I'll look into cups since I do
have it installed... although honestly I'm perfectly happy with my current setup).

Misha

misha680 wrote:
asuswrt wrote:

OK installed Kamikaze 7.09 and it's working with my psc1315 both scan & print! here are my instructions:

http://forum.openwrt.org/viewtopic.php?id=15382

hope it helps someone since i have not seen any complete instructions on the board for this device.

Glad it worked for you and thanks for posting instructions. I only use the sane functionality and use p910nd for printing (I have a 1 GB flash drive
on my router and I think I'm only at 2% space anyway so having cups installed doesn't really take too much space for me, maybe I'll look into cups since I do
have it installed... although honestly I'm perfectly happy with my current setup).

Misha

didnt print any large documents yet, so i'd assume a hard drive is needed and changes to the spooling directory location. p910nd may be a better idea in the long run - but i'll wait till my first router crash to do that!

Hello, i followed the posts about scannig for hplip controlled devices. the hplip packages has so many packages depending on, that the normal flashspace is not sufficient. My question:
while examine the hplip package i realized that 2 sane libraries (named hpioa or similar) are copied into the sane library directory. are they sufficient to use the scanner without the hplip package?
i plan to use the simople p910 deamon for printing, it is enough for me. another thing is the sane backend package, it is not needed for saned to work. so saned should not depend on this ca. 2 mb package. who is the maintainer of hplip package and of sane packages?
regards
frosch

The discussion might have continued from here.