Page 1 of 1
hplip install v3.12.4 from hp: help!

Posted:
Apr 24th, '12, 12:30
by tonyb
Mageia2 beta 3 x89_64
Needed 3.12.4 for my Hp officejet pro 8600 plus.
1. downloaded source from hp
2. used to following from an hp 'mandriva 2010.0 and above' howto:
su - -c "urpmi --allow-force --force --auto cups cups-common libcups2-devel libcups2 libdbus-1-devel python-gobject gcc-c++ ghostscript libopenssl0.9.8-devel libjpeg-devel libnet-snmp-devel glibc-i18ndata glibc_lsb libtool libgphoto-devel libusb1.0-devel make python-imaging policykit policykit-gnome python-qt4 qt4-qtdbus python-dbus libpython2.6-devel python python-reportlab saned libsane1-devel sane-backends libsane1 xsane sane-frontends"
later in that script, used:
64 bit distro users:
./configure --with-hpppddir=/usr/share/ppd/HP --libdir=/usr/lib64 --prefix=/usr --enable-qt4 --enable-doc-build --disable-cups-ppd-install --disable-foomatic-drv-install --disable-foomatic-ppd-install --disable-hpijs-install --disable-policykit --enable-cups-drv-install --enable-hpcups-install --enable-network-build --enable-dbus-build --enable-scan-build --enable-fax-build
get most of the way there, then:
checking for net-snmp/net-snmp-config.h... yes
checking for cupsDoFileRequest in -lcups... no
configure: error: cannot find libcups support
package seems to be there:
# urpmi libcups2
Package libcups2-1.5.2-3.mga2.i586 is already installed
Thought it wanted the 64 bit lib, installed it:
# urpmi lib64cups2
Package lib64cups2-1.5.2-3.mga2.x86_64 is already installed
This process worked on mageia1, don't know why its failing in m2beta3. Ideas?
Re: hplip install v3.12.4 from hp: help!

Posted:
Apr 24th, '12, 13:25
by djennings
You need the devel package
lib64cups2-devel
Re: hplip install v3.12.4 from hp: help!

Posted:
Apr 26th, '12, 11:41
by tonyb
installled it at some point:
# urpmi lib64cups2-devel
Package lib64cups2-devel-1.5.2-3.mga2.x86_64 is already installed
configure runs OK for a while, then:
checking for host machine platform... x86_64
checking for CRYPTO_free in -lcrypto... yes
checking for snmp_timeout in -lnetsnmp... no
checking for snmp_timeout in -lsnmp... no
configure: error: cannot find net/ucd-snmp support (or --disable-network-build)
So: tracked down that I needed:
# urpmi lib64net-snmp-devel
To satisfy dependencies, the following packages are going to be installed:
Package Version Release Arch
(medium "Core Release (distrib1)")
lib64lm_sensors-devel 3.3.2 5.mga2 x86_64
lib64net-snmp-devel 5.7.1 1.mga2 x86_64
lib64wrap-devel 7.6 42.mga1 x86_64
completes, re-run config, terminates with same error message as above.
Could use some further ideas!
Re: hplip install v3.12.4 from hp: help!

Posted:
Apr 26th, '12, 12:33
by richardwest
Just shooting in the dark here but have you got net-snmp and libnet-snmp installed?
Re: hplip install v3.12.4 from hp: help!

Posted:
Apr 26th, '12, 21:55
by doktor5000
Do you have any particular reason to install hplip from source, if i may ask?
Re: hplip install v3.12.4 from hp: help!

Posted:
Apr 26th, '12, 22:02
by djennings
If you look in the spec file for the Mageia package in SVN you can see what packages are needed to build hplip
- Code: Select all
96 BuildRequires: python-sip >= 4.1.1
97 BuildRequires: net-snmp-devel
98 BuildRequires: libusb-devel >= 0.1.8
99 BuildRequires: imagemagick
100 BuildRequires: autoconf
101 BuildRequires: libcups-devel
102 BuildRequires: libjpeg-devel
103 BuildRequires: python-devel
104 BuildRequires: desktop-file-utils
105 BuildRequires: libdbus-devel
106 BuildRequires: udev-devel
107 BuildRequires: polkit
108 BuildRequires: gphoto2-devel
109 BuildRequires: libv4l-devel
http://svnweb.mageia.org/packages/cauldron/hplip/current/SPECS/hplip.spec?revision=228566&view=markup
Re: hplip install v3.12.4 from hp: help!

Posted:
Apr 27th, '12, 20:11
by doktor5000
Maybe the easiest way to pull all required dependencies would be to download the src.rpm and use urpmi to get all in one go, like so:
- Code: Select all
wget ftp://ftp.mandrivauser.de/mirrors/Mageia/distrib/cauldron/SRPMS/core/release/hplip-3.12.2-3.mga2.src.rpm && urpmi --buildrequires hplip-3.12.2-3.mga2.src.rpm
Re: hplip install v3.12.4 from hp: help!

Posted:
May 1st, '12, 09:57
by smoreau
I also need this version of hplip for the m1132 HP printer.
So i already attemped to build the hplip 3.12.4.
I download as you proposed the src rpm.
Then i tried the first step of the hplip 3.12.4 installation process as explained :
http://hplipopensource.com/hplip-web/in ... driva.htmlAt the step of the ./configure process, i get the following message :
- Code: Select all
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
(cached) (cached) checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for pthread_create in -lpthread... yes
checking for pow in -lm... yes
checking for jpeg_set_defaults in -ljpeg... yes
checking for dlopen in -ldl... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking whether byte ordering is bigendian... no
checking for uint32_t... yes
checking "for platform-dependencies"... "using Default platform.h"
checking for documentation build... yes
checking for hpijs only build... no
checking for lite build... no
checking for hpcups only build... no
checking for hpijs install... no
checking for hpcups install... yes
checking for new hpcups install... no
checking for network build... yes
checking for parallel port build... no
checking for scanner build... yes
checking for gui build... yes
checking for fax build... yes
checking for dbus build... yes
checking for cups 1.1.x build... no
checking for udev acl rules... no
checking for shadow build... no
checking for foomatic ppd install... no
checking for foomatic drv install... no
checking for cups drv install... yes
checking for cups ppd install... no
checking for foomatic-rip-hplip install... no
checking for qt4... yes
checking for qt3... no
checking for policykit... no
checking for host machine platform... x86_32
checking for CRYPTO_free in -lcrypto... yes
checking for snmp_timeout in -lnetsnmp... yes
checking net-snmp/net-snmp-config.h usability... yes
checking net-snmp/net-snmp-config.h presence... yes
checking for net-snmp/net-snmp-config.h... yes
checking for cupsDoFileRequest in -lcups... yes
checking cups/cups.h usability... yes
checking cups/cups.h presence... yes
checking for cups/cups.h... yes
checking for usb_init in -lusb... no
configure: error: cannot find libusb support
However I installed all libusb available from cauldron
What am I doing wrong ?

Re: hplip install v3.12.4 from hp: help!

Posted:
May 1st, '12, 10:14
by smoreau
Looking for libusb :
libusb-compat0.1-devel-0.1.3-6.mga2.i586 already installed
Is this one the expected version ?
Re: hplip install v3.12.4 from hp: help!

Posted:
May 2nd, '12, 00:20
by tonyb
I got it built. See the scripts I put in the original post, see also the packages listed a little above this. In addition to those packages, I also needed to install libsane-devel. Don't recall if these was anything else just for usb.
From the look of your ./configure script output, these are quite a few 'no' responses, so suggest you do all this and re-try.
It works, but you do have to follow the post-install things in the HP script I think I referenced originally.
Re: hplip install v3.12.4 from hp: help!

Posted:
May 2nd, '12, 00:29
by tonyb
No, I hadn't put in the HP reference, but you'll need to do the stuff at the end of this after building and installing:
http://hplipopensource.com/hplip-web/in ... driva.htmlI've bug-reported this and with any luck the 3.12.4 version will be in the RC due out in days, so you could wait until then.
https://bugs.mageia.org/show_bug.cgi?id=5619
Re: hplip install v3.12.4 from hp: help!

Posted:
May 2nd, '12, 07:26
by smoreau
Many thanks for the suggestions. I will wait for RC.
Re: hplip install v3.12.4 from hp: help!

Posted:
May 2nd, '12, 20:58
by doktor5000
FWIW Thomas Backlund was so kind and pushed new hplip-3.12.4 packages to core/updates_testing in cauldron so people could actually test.
So guys and gals, please test and give some feedback. The plugin issue which Serge reported is still unfixed because i need help in diagnosing the cause of this, or at least the terminal output of the plugin installation, hopefully showing some error message.
Mika Laitio already reported it to be working fine with an HP Color laserjet-cm1312nfi
Re: hplip install v3.12.4 from hp: help!

Posted:
May 3rd, '12, 07:44
by smoreau
The plugin issue which Serge reported is still unfixed because i need help in diagnosing the cause of this, or at least the terminal output of the plugin installation, hopefully showing some error message.
Many thanks for your help. I will be able to test the RC at the beginning of next week with the HP m1132. Could you explain me how to get efficient error messages during plugin installation ?
Re: hplip install v3.12.4 from hp: help!

Posted:
May 3rd, '12, 20:26
by doktor5000
Run the plugin installation from a terminal, probably like this:
- Code: Select all
hp-plugin -g
This enables debug logging level and will hopefully provide helpful insight what the problem is.
Maybe you need to run this as root, but first try as a normal user and post the results in the bugreport.