building hplip as a module as porteus printing solution

Post here if you are a new Porteus member and you're looking for some help.
User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

building hplip as a module as porteus printing solution

Post#1 by francois » 09 Jul 2011, 13:15

I did build a few simple modules from source, but long ago. So forgive the following naive questions.

Trying to solve my printing issues under Porteus 64-bit, I am trying to install hplip, and maybe build a module from it. The following thread is the receipe I am following:
http://www.linuxquestions.org/linux/ans ... kware_10_2

I got hplip in the form of hplip-3.11.5.tar.gz from sourceforge:
http://en.sourceforge.jp/projects/sfnet_hplip/releases/

Code: Select all

bash-4.1# ./configure --disable-network-build
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/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/ginstall -c
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ld used by gcc... /usr/x86_64-slackware-linux/bin/ld
checking if the linker (/usr/x86_64-slackware-linux/bin/ld) is GNU ld... yes
checking for /usr/x86_64-slackware-linux/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... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/x86_64-slackware-linux/bin/ld -m elf_x86_64) 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/x86_64-slackware-linux/bin/ld -m elf_x86_64
checking if the linker (/usr/x86_64-slackware-linux/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/x86_64-slackware-linux/bin/ld -m elf_x86_64) 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... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/x86_64-slackware-linux/bin/ld -m elf_x86_64) 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... no
configure: error: "cannot find libjpeg support"
bash-4.1# slackyd -s libjpeg 

Warning: package `brhl2170wlpr-2.0.2-1.i386' isn't standard. Skipping.
Warning: package `cupswrapperHL2170W-2.0.2-1.i386' isn't standard. Skipping.
Searching libjpeg: found 1 package.

libjpeg-v8a-x86_64-1.txz [from slackware]

bash-4.1#
and as:

Code: Select all

bash-4.1# slackyd -s libjpeg 

Warning: package `brhl2170wlpr-2.0.2-1.i386' isn't standard. Skipping.
Warning: package `cupswrapperHL2170W-2.0.2-1.i386' isn't standard. Skipping.
Searching libjpeg: found 1 package.

libjpeg-v8a-x86_64-1.txz [from slackware]

bash-4.1#
I conclude that libjpeg is not the missing package.

From the above output, is it that I am working with a 32-bit package or something else?
Last edited by francois on 25 Jul 2011, 18:17, edited 1 time in total.
Prendre son temps, profiter de celui qui passe.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: building hplip for as a module as porteus printing solut

Post#2 by fanthom » 09 Jul 2011, 15:46

hi francois,
libjpeg and libpng are missing in 64bits (i relied on aaa_elflibs package instead) pls add them and continue compilation.

i'll include them in Porteus 1.1 as many people are confused with this setup.
Please add [Solved] to your thread title if the solution was found.

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: building hplip for as a module as porteus printing solut

Post#3 by francois » 10 Jul 2011, 03:49

Hello fanthom. Thanks for giving a hand.

So I added libjpeg-v8a-x86_64-1..txz, but libpng-1.4.2-x86_64-1.txz was already installed. However I installed net-snmp-5.5-x86_64-2.txz

Then ./configure --disable-scan-build went just fine.

Then:

Code: Select all

bash-4.1# make
...

...
bash-4.1# mv -f .deps/hpcups-LidilCompress.Tpo .deps/hpcups-LidilCompress.Po
bash-4.1# g++ -DPACKAGE_NAME=\"HP\ Linux\ Imaging\ and\ Printing\" -DPACKAGE_TARNAME=\"hplip\" -DPACKAGE_VERSION=\"3.11.5\" -DPACKAGE_STRING=\"HP\ Linux\ I
g++: no input files
bash-4.1# mv -f .deps/hpcups-dj3320ColorMaps.Tpo .deps/hpcups-dj33
mv: cannot stat `.deps/hpcups-dj3320ColorMaps.Tpo': No such file or directory
bash-4.1# g++ -DPACKAGE_NAME=\"HP\ Linux\ Imaging\ and\ Printing\" -DPACKAGE_TARNAME=\"hplip\" -DPACKAGE_VERSION=\"3.11.5\" -DPACKAGE_STRING=\"HP\ Linux\ Imaging\ and\ Printing\ 3.11.5\" -DPACKAGE_BUGREPORT=\"3.11.5\" -DPACKAGE=\"hplip\" -DVERSION=\"3.11.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBDL=1 -DHAVE_PTHREAD_H=1 -DHAVE_JPEGLIB_H=1 -DHAVE_UINT32_T=1 -DHAVE_LIBHPIP=1 -DHAVE_LIBHPIP=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBNETSNMP=1 -DHAVE_NET_SNMP_NET_SNMP_CONFIG_H=1 -DHAVE_CUPS_CUPS_H=1 -DHAVE_USB_H=1 -DHAVE_PYTHON2_6_PYTHON_H=1 -DHAVE_DBUS=1 -I. -Iip -Iio/hpmud -Iscan/sane -Iprnt/hpijs   -DAPDK_LITTLE_ENDIAN -g -O2 -MT hpcups-dj3600ColorMaps.o -MD -MP -MF .deps/hpcups-dj3600ColorMaps.Tpo -c -o hpcups-dj3600ColorMaps.o `t
> mv -f .deps/hpcups-dj3600ColorMaps.Tpo .
> /bin/sh ./libtool --tag=CXX   --mode=link g++ -DAPDK_LITTLE_ENDIAN -g -O2   -o hpcups hpcups-HPCupsFilter.o hpcups-Compressor.o hpcups-Mode2.o hpcups-Mode3.o hpcups-Mode9.o hpcups-Mode10.o hpcups-ModeDeltaPlus.o hpcups-ModeJbig.o hpcups-ErnieFilter.o hpcups-EncapsulatorFactory.o hpcups-Encapsulator.o hpcups-Pcl3.o hpcups-Pcl3Gui.o hpcups-Pcl3Gui2.o hpcups-LJMono.o hpcups-LJColor.o hpcups-LJFastRaster.o hpcups-LJJetReady.o hpcups-LJZjStream.o hpcups-LJZxStream.o hpcups-Job.o hpcups-Pipeline.o hpcups-Processor.o hpcups-RasterSender.o hpcups-ColorMatcher.o hpcups-Halftoner.o hpcups-Scaler.o hpcups-dj400ColorMaps.o hpcups-dj600ColorMaps.o hpcups-dj970ColorMaps.o hpcups-dj8xxColorMaps.o hpcups-dj4100ColorMaps.o hpcups-BreakTables.o hpcups-Utils.o hpcups-SystemServices.o hpcups-QuickConnect.o hpcups-ModeJpeg.o jccolor.o jdatadbf.o hpcups-Lidil.o hpcups-LidilCompress.o hpcups-dj3320ColorMaps.
> g++ -DAPDK_LITTLE_ENDIAN -g -O2 -o hpcups 
> g++ -DPACKAGE_NAME=\"HP\ Linux\ Imaging\ and\ Printing\" -DPACKAGE_TARNAME=\"hplip\" -DPACKAGE_VERSION=\"3.11.5\" -DPACKAGE_STRING=\"HP\ Linux\ Imaging\ and\ Printing\ 3.11.5\" -DPACKAGE_BUGREPORT=\"3.11.5\" -DPACKAGE=\"hplip\" -DVERSION=\"3.11.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBDL=1 -DHAVE_PTHREAD_H=1 -DHAVE_JPEGLIB_H=1 -DHAVE_UINT32_T=1 -DHAVE_LIBHPIP=1 -DHAVE_LIBHPIP=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBNETSNMP=1 -DHAVE_NET_SNMP_NET_SNMP_CONFIG_H=1 -DHAVE_CUPS_CUPS_H=1 -DHAVE_USB_H=1 -DHAVE_PYTHON2_6_PYTHON_H=1 -DHAVE_DBUS=1 -I. -Iip -Iio/hpmud -Iscan/sane -Iprnt/hpijs    -g -O2 -MT hpcupsfax.o -MD -MP -MF .deps/hpcupsfax.Tpo -c -o hpcupsfax.o `test -f 'prnt/hpijs/hpcupsfax.cpp' || echo './'`prnt/hpijs/hpcupsfax.cpp
> prnt/hpijs/hpcupsfax.c
> compilation terminated.
> make: *** [hpcupsfax.o] Er
> bash-4.1# 
Google did not help. Any idea?
Prendre son temps, profiter de celui qui passe.

User avatar
wread
Module Guard
Module Guard
Posts: 1255
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v5.0-kde-64 bits
Location: Santo Domingo
Contact:

Re: building hplip for as a module as porteus printing solut

Post#4 by wread » 10 Jul 2011, 04:06

@francois
you have to compile hplip first and then run hp-check. This produces a log indicating missing packages and the functionality you wont get. You can add the packages you want to produce the results you are expecting.

I compiled the HPPrinter package for 32 bits. It is a patience game, I can tell you. It is posted in the forum under zxm modules.

http://porteus.org/forum/viewtopic.php?f=51&t=457#p3212


Cheers!
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: building hplip for as a module as porteus printing solut

Post#5 by francois » 10 Jul 2011, 04:13

Thanks for your comments Wread. Finally, Maybe the best solution for me would be to use you 32-bit solution with Ponce's multilib module (32bit multilib packages for 64bit users):
http://porteus.org/forum/viewtopic.php? ... it=+compat
Prendre son temps, profiter de celui qui passe.

User avatar
wread
Module Guard
Module Guard
Posts: 1255
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v5.0-kde-64 bits
Location: Santo Domingo
Contact:

Re: building hplip for as a module as porteus printing solut

Post#6 by wread » 10 Jul 2011, 04:50

@francois
but the version of hplip you have now is newer than mine; ok, if you don't want to make big things, only letters and so, my version is ok for you.

Last week I tried to print a complicated brochure made in docx, I was using Open Office 3, and the printing was not identical with the screen. I had to translate docx into pdf, then it could make it.

Regards!
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: building hplip for as a module as porteus printing solut

Post#7 by fanthom » 10 Jul 2011, 09:20

i have added hplip, gutenprint, sane + all deps to official 64bit porteus repo. please use PPM (update index first) to download it. Gimp will be shown as a dependency but i believe it's not necessary for printing...
Please add [Solved] to your thread title if the solution was found.

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: building hplip for as a module as porteus printing solut

Post#8 by francois » 11 Jul 2011, 02:13

wread wrote:@francois
you have to compile hplip first and then run hp-check. This produces a log indicating missing packages and the functionality you wont get. You can add the packages you want to produce the results you are expecting.

I compiled the HPPrinter package for 32 bits. It is a patience game, I can tell you. It is posted in the forum under zxm modules.

http://porteus.org/forum/viewtopic.php?f=51&t=457#p3212


Cheers!
Thus I understand that you encourage me to pursue. And I will do it. But at the same time I will use and test your 32-bit for my Porteus installation on a MSI 340X laptop.

As soon as I manage to get some time.

Posted after 1 hour 23 minutes 31 second:
Re: building hplip for as a module as porteus printing solution
Using PPM, choosing by name there is no hplip, gutenprint, sane packages.

Posted after 49 minutes 10 seconds:
Re: building hplip for as a module as porteus printing solution
Following Wreads hplip package with dependencies:

On porteus 64-bit:
1) Already there:
libnotify-0.4.5-x86_64-2.txz
python-2.6.4-x86_64-1.txz
qt-4.6.2_2d3d3e5-x86_64-1.txz

2) Downloaded thru slackyd:
ghostscript-8.71-x86_64-3_slack13.1.txz
ghostscript-fonts-std-8.11-noarch-1.txz
net-snmp-5.5-x86_64-2.txz
notify-python-0.1.1-x86_64-1.txz
xsane-0.996-x86_64-2.txz

3) Not found or to be built from source:
imaging-1.1.7
Is python-imaging-1.1.7 an analog?

PyQt-x11-gpl needs SIP to be built from source:
http://www.riverbankcomputing.co.uk/sof ... t/download
http://www.riverbankcomputing.co.uk/sof ... p/download

qt4

sane-backends

reportlab

Category 3) packages will represent more work. So if some of you know where to find them or just built them that would be great. If not I will do the job.
Prendre son temps, profiter de celui qui passe.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: building hplip for as a module as porteus printing solut

Post#9 by fanthom » 11 Jul 2011, 07:43

hi francois,

"Using PPM, choosing by name there is no hplip, gutenprint, sane packages."
i believe that you have forgotten to update index files as instructed in my previous post.

"On porteus 64-bit:
1) Already there:
libnotify-0.4.5-x86_64-2.txz
python-2.6.4-x86_64-1.txz
qt-4.6.2_2d3d3e5-x86_64-1.txz"
these packages does not come from Porteus 1.0. i would recommend you switching to 1.0 (majority of users done it already) as packages compiled on previous porteus version may cause troubles/incompatibility with recent one.

Cheers
Please add [Solved] to your thread title if the solution was found.

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: building hplip for as a module as porteus printing solut

Post#10 by francois » 12 Jul 2011, 02:27

Hum! You are right. I just miss this one. PPM just worked fine, once updated.

Thanks a lot.

Posted after 15 hours 38 minutes 16 seconds:
Re: building hplip for as a module as porteus printing solution
fanthom wrote:hi francois,

"Using PPM, choosing by name there is no hplip, gutenprint, sane packages."
i believe that you have forgotten to update index files as instructed in my previous post.

"On porteus 64-bit:
1) Already there:
...
these packages does not come from Porteus 1.0. i would recommend you switching to 1.0 (majority of users done it already) as packages compiled on previous porteus version may cause troubles/incompatibility with recent one.

Cheers
Funny, I thought I did. Maybe, it is the case. You get mixed between boxes 32-bit an 64-bit or it is some package of mine that I did not removed (gslapt, for example).


I have managed to install and print under Porteus 64-bit. Even though I get some error message under hp-check:

Code: Select all

bash-4.1# hp-check

...
-----------
| SUMMARY |
-----------
error: 14 errors and/or warnings.

Please refer to the installation instructions at:
http://hplip.sourceforge.net/install/index.html

Done.
bash-4.1# 
Exciting isn't? I will try to refine the thing.
Prendre son temps, profiter de celui qui passe.

User avatar
wread
Module Guard
Module Guard
Posts: 1255
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v5.0-kde-64 bits
Location: Santo Domingo
Contact:

Re: building hplip for as a module as porteus printing solut

Post#11 by wread » 17 Jul 2011, 03:37

@francois
Here are all the modules for hp printing in 32 bits: http://www.mediafire.com/?f1vrqwkcbxavb

Enjoy!
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: building hplip for as a module as porteus printing solut

Post#12 by francois » 17 Jul 2011, 03:44

Thanks Wread, I already used them, see your own thread on hp printing:
http://forum.porteus.org/viewtopic.php?f=51&t=457

Now that the hp printer works, I am trying to get hplip work for my brother printer, maybe you can be of some help:
http://forum.porteus.org/viewtopic.php?f=48&t=678
Prendre son temps, profiter de celui qui passe.

Post Reply