Hello dear,I have enable USB Printer Support in Kernel configuration.Also get /dev/usb/lp0 node and print through terminal cmd echo -en "\sSTRING" >/dev/usb/lp0
on HP Deskjet D5568.But my requirement is to print through cups.I have cross- compiled cups like thisexport CC=/opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc export CXX=/opt/arm-2009q1/bin/arm-none-linux-gnueabi-g++ export LD=/opt/arm-2009q1/bin/arm-none-linux-gnueabi-ld export LDFLAGS="-static" ./configure --prefix=/nfs/targetNFS --host=/opt/arm-2009q1/bin/arm-none-linux-gnueabi- --disable-dbus --enable-static-link --disable-sharedmakemake installit cross compiled successfully.but when i print lpr /text.txt give errorroot@am180x-evm:/# lpr /opt/lalit.txtlpr: Error - scheduler not responding!also it shows driver =none in devices fileroot@am180x-evm:/proc/bus/usb# cat devicesT: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1P: Vendor=03f0 ProdID=8211 Rev= 1.00S: Manufacturer=HPS: Product=Deskjet D5500 seriesS: SerialNumber=CN9BDDD12P05FHC:* #Ifs= 2 Cfg#= 1 Atr=c0 MxPwr= 2mAI:* If#= 0 Alt= 0 #EPs= 2 Cls=07(print) Sub=01 Prot=02 Driver=(none)E: Ad=08(O) Atr=02(Bulk) MxPS= 64 Ivl=0msE: Ad=89(I) Atr=02(Bulk) MxPS= 64 Ivl=0msI:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)E: Ad=06(O) Atr=02(Bulk) MxPS= 64 Ivl=0msE: Ad=87(I) Atr=02(Bulk) MxPS= 64 Ivl=0msI: If#= 1 Alt= 1 #EPs= 2 Cls=ff(vend.) Sub=d4 Prot=00 Driver=(none)E: Ad=06(O) Atr=02(Bulk) MxPS= 64 Ivl=0msE: Ad=87(I) Atr=02(Bulk) MxPS= 64 Ivl=0mssuggest me for the same.Harnek Singh
Harnek,
Which driver have you enabled in kernel config or have compiled and inserted the driver for HP printer. Google show me that there is a linux specific driver which u need to compile and insert into the kernel. Please refer the below page,
http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId=3811581&prodTypeId=18972&prodSeriesId=3811580&swLang=8&taskId=135&swEnvOID=2020
http://hplipopensource.com/hplip-web/index.html?
Ajay
If my reply answers your question then please click on the green button "Verify Answer"
Do you have any update ?
Hi dear,
I am getting the following error while cross-compiling HPlip-3.12.4 package
configure: error: "cannot find libjpeg support".
I am following these configure option .
root@harnek-desktop:/nfs/targetNFS/hplip-3.12.4# ./configure --host=x86 --target=/opt/arm-2009q1/bin/arm-none-linux-gnueabi- --prefix=/nfs/targetNFS/usr --enable-qt4 --enable-doc-build --enable-cups-ppd-install --disable-foomatic-drv-install --disable-foomatic-ppd-install --disable-hpijs-install --disable-policykit --disable-cups-drv-install --enable-hpcups-install --enable-network-build --enable-dbus-build --enable-scan-build --enable-fax-build configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used.checking for a BSD-compatible install... /usr/bin/install -cchecking whether build environment is sane... yeschecking for x86-strip... /opt/arm-2009q1/bin/arm-none-linux-gnueabi-stripchecking for a thread-safe mkdir -p... /bin/mkdir -pchecking for gawk... gawkchecking whether make sets $(MAKE)... yeschecking for C++ compiler default output file name... a.outchecking whether the C++ compiler works... yeschecking whether we are cross compiling... yeschecking for suffix of executables... checking for suffix of object files... ochecking whether we are using the GNU C++ compiler... yeschecking whether /opt/arm-2009q1/bin/arm-none-linux-gnueabi-g++ accepts -g... yeschecking for style of include used by make... GNUchecking dependency style of /opt/arm-2009q1/bin/arm-none-linux-gnueabi-g++... gcc3checking for x86-gcc... /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gccchecking whether we are using the GNU C compiler... yeschecking whether /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc accepts -g... yeschecking for /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc option to accept ISO C89... none neededchecking dependency style of /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc... gcc3checking for a BSD-compatible install... /usr/bin/install -cchecking build system type... i686-pc-linux-gnuchecking host system type... x86-unknown-nonechecking for a sed that does not truncate output... /bin/sedchecking for grep that handles long lines and -e... /bin/grepchecking for egrep... /bin/grep -Echecking for ld used by /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc... /opt/arm-2009q1/bin/arm-none-linux-gnueabi-ldchecking if the linker (/opt/arm-2009q1/bin/arm-none-linux-gnueabi-ld) is GNU ld... yeschecking for /opt/arm-2009q1/bin/arm-none-linux-gnueabi-ld option to reload object files... -rchecking for BSD-compatible nm... nmchecking whether ln -s works... yeschecking how to recognize dependent libraries... unknownchecking how to run the C preprocessor... /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc -Echecking for ANSI C header files... yeschecking for sys/types.h... yeschecking for sys/stat.h... yeschecking for stdlib.h... yeschecking for string.h... yeschecking for memory.h... yeschecking for strings.h... yeschecking for inttypes.h... yeschecking for stdint.h... yeschecking for unistd.h... yeschecking dlfcn.h usability... yeschecking dlfcn.h presence... yeschecking for dlfcn.h... yeschecking how to run the C++ preprocessor... /opt/arm-2009q1/bin/arm-none-linux-gnueabi-g++ -Echecking for x86-g77... nochecking for x86-xlf... nochecking for x86-f77... nochecking for x86-frt... nochecking for x86-pgf77... nochecking for x86-cf77... nochecking for x86-fort77... nochecking for x86-fl32... nochecking for x86-af77... nochecking for x86-xlf90... nochecking for x86-f90... nochecking for x86-pgf90... nochecking for x86-pghpf... nochecking for x86-epcf90... nochecking for x86-gfortran... nochecking for x86-g95... nochecking for x86-xlf95... nochecking for x86-f95... nochecking for x86-fort... nochecking for x86-ifort... nochecking for x86-ifc... nochecking for x86-efc... nochecking for x86-pgf95... nochecking for x86-lf95... nochecking for x86-ftn... nochecking for g77... nochecking for xlf... nochecking for f77... nochecking for frt... nochecking for pgf77... nochecking for cf77... nochecking for fort77... nochecking for fl32... nochecking for af77... nochecking for xlf90... nochecking for f90... nochecking for pgf90... nochecking for pghpf... nochecking for epcf90... nochecking for gfortran... nochecking for g95... nochecking for xlf95... nochecking for f95... nochecking for fort... nochecking for ifort... nochecking for ifc... nochecking for efc... nochecking for pgf95... nochecking for lf95... nochecking for ftn... nochecking whether we are using the GNU Fortran 77 compiler... nochecking whether accepts -g... nochecking the maximum length of command line arguments... 1572864checking command to parse nm output from /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc object... okchecking for objdir... .libschecking for x86-ar... /opt/arm-2009q1/bin/arm-none-linux-gnueabi-archecking for x86-ranlib... /opt/arm-2009q1/bin/arm-none-linux-gnueabi-ranlibchecking for x86-strip... (cached) /opt/arm-2009q1/bin/arm-none-linux-gnueabi-stripchecking if /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc supports -fno-rtti -fno-exceptions... nochecking for /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc option to produce PIC... -fPICchecking if /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc PIC flag -fPIC works... yeschecking if /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc static flag -static works... yeschecking if /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc supports -c -o file.o... yeschecking whether the /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc linker (/opt/arm-2009q1/bin/arm-none-linux-gnueabi-ld) supports shared libraries... yeschecking whether -lc should be explicitly linked in... nochecking dynamic linker characteristics... nochecking how to hardcode library paths into programs... immediatechecking whether stripping libraries is possible... yeschecking if libtool supports shared libraries... nochecking whether to build shared libraries... nochecking whether to build static libraries... yesconfigure: creating libtoolappending configuration tag "CXX" to libtoolchecking for ld used by /opt/arm-2009q1/bin/arm-none-linux-gnueabi-g++... /opt/arm-2009q1/bin/arm-none-linux-gnueabi-ldchecking if the linker (/opt/arm-2009q1/bin/arm-none-linux-gnueabi-ld) is GNU ld... yeschecking whether the /opt/arm-2009q1/bin/arm-none-linux-gnueabi-g++ linker (/opt/arm-2009q1/bin/arm-none-linux-gnueabi-ld) supports shared libraries... nochecking for /opt/arm-2009q1/bin/arm-none-linux-gnueabi-g++ option to produce PIC... -fPICchecking if /opt/arm-2009q1/bin/arm-none-linux-gnueabi-g++ PIC flag -fPIC works... yeschecking if /opt/arm-2009q1/bin/arm-none-linux-gnueabi-g++ static flag -static works... yeschecking if /opt/arm-2009q1/bin/arm-none-linux-gnueabi-g++ supports -c -o file.o... yeschecking whether the /opt/arm-2009q1/bin/arm-none-linux-gnueabi-g++ linker (/opt/arm-2009q1/bin/arm-none-linux-gnueabi-ld) supports shared libraries... nochecking dynamic linker characteristics... no(cached) (cached) checking how to hardcode library paths into programs... immediateappending configuration tag "F77" to libtoolchecking for pthread_create in -lpthread... yeschecking for pow in -lm... yeschecking for jpeg_set_defaults in -ljpeg... noconfigure: error: "cannot find libjpeg support"
Harnek
Dear Harnek,
Can you try installing lib jpeg first and then hplip? If you have already tried so, did it solve your problem? Please update.
Thanks.
Best Regards,
Anuj Aggarwal
---------------------------------------------------------------------------------------------------------
Please click the Verify Answer button on this post if it answers your question.---------------------------------------------------------------------------------------------------------
Dear
Anuj
I have already installed libjpeg , but getting same error.
Thanks
Hi
Looking forward from your side.
Please do the needful.
Regards
Is there some other solution to printing on TI SDK? I have a DM355 EVM , and I want to send to a network printer (a very basic print).
I am having some problems with cross-compiling - 1.5.3 - It apparently wants to compile some programs (genstrings and mantohtml) and exec these on my linux host?
Obviously there is an issue here - I just don't know what~!
thanks in advance
tom