From: Pieter A. <pi...@sc...> - 2005-10-27 17:00:45
|
Hello, I want to compile HPOJ for a mipsel router so I can use this router to share my HP Officejet G55 on my personal network. I have successfully cross compiled hpoj after some major problems at first (configure script seems to contain some major bugs, but I'll post on that at a later time). Now I executed ptal-init setup on this router and it didn't probe for USB devices because it wasn't compiled with USB-support. But I DID compile it with usb support. I first cross compiled libusb and then pointed the configure script to the right directory. I also used some other options like no SNMP support, no parallel port support, no sane support (I will compile with this at a later time) and no cups support. Also, is libusb required to be on the router to run the driver? Or is it only required for compiling? Should I compile with cups support (thus -with-cups-backend=/dir/to/cups/backend) to get usb support? Or is it a bug that ptal-init setup claims that there is no USB support even though there should be? And if I should compile with cups support, do I have to copy cups to the router or is cups only needed to compile and not to run the driver? Thanks a lot in advance, Pieter Agten |
From: Mark P. <ms...@de...> - 2005-10-27 17:53:11
|
On Thursday 27 October 2005 18:00, Pieter Agten wrote: > I want to compile HPOJ for a mipsel router so I can use this router to Have a look at the Debian mipsel build process here. http://buildd.debian.org/fetch.php?&pkg=hpoj&ver=0.91-9&arch=mipsel&stamp=1128148878&file=log&as=raw Works out of the tim. > share my HP Officejet G55 on my personal network. I have successfully cross > compiled hpoj after some major problems at first (configure script seems to > contain some major bugs, but I'll post on that at a later time). Now I Hmm, works for Debian mipsel.. > Also, is libusb required to be on the router to run the driver? Or is it > only required for compiling? Yes you will need libusb on the box, but not the development files. Mark |
From: Pieter A. <pi...@sc...> - 2005-10-27 18:47:04
|
Thanks for the reply Mark, I checked the Debian log, and this is the 'conclusion' of the configure script: SUBDIRS = lib/hpojip lib/ptal lib/sane mlcd apps/cmdline apps/xojpanel bindir_program = apps/cmdline/ptal-connect apps/cmdline/ptal-device apps/cmdline/ptal-devid apps/cmdline/ptal-pml apps/cmdline/ptal-hp apps/cmdline/hpojip-test apps/xojpanel/xojpanel sbindir_program = mlcd/ptal-mlcd apps/cmdline/ptal-printd apps/cmdline/ptal-photod scripts/ptal-init scripts/ptal-cups includedir_data = include/hpojip.h include/ptal.h VAR_RUN_PREFIX_CFLAGS = -DVAR_RUN_PREFIX="\"/var/run\"" PAR_PLATFORM = NONE USB_PLATFORM = LINUX MLCD_OBJS = MLCD_CFLAGS = -DHAVE_LIBUSB MLCD_LFLAGS = -lusb DEFINES_CMDLINE = -DHAVE_SNMP INCLUDE_CMDLINE = -I/build/buildd/hpoj-0.91/include -I/usr/include/ucd-snmp -I/usr/share/qt3/include LIBRARY_CMDLINE = -L/build/buildd/hpoj-0.91/lib/hpojip -L/build/buildd/hpoj-0.91/lib/ptal -L/build/buildd/hpoj-0.91/lib/sane -L/usr/share/qt3/lib LIBSNMP_CMDLINE = -lsnmp CUPS_BACKEND_DIR = SANE_BACKEND_DIR = /usr/lib/sane SANE_ETC_DIR = /etc/sane.d LIBQT_CMDLINE = -lqt-mt QT_MOC = /usr/share/qt3/bin/moc And this is my 'conclusion' of the configure script: SUBDIRS = lib/hpojip lib/ptal lib/sane mlcd apps/cmdline bindir_program = apps/cmdline/ptal-connect apps/cmdline/ptal-device apps/cmdline/ptal-devid apps/cmdline/ptal-pml apps/cmdline/ptal-hp apps/cmdline/hpojip-test sbindir_program = mlcd/ptal-mlcd apps/cmdline/ptal-printd apps/cmdline/ptal-photod scripts/ptal-init scripts/ptal-cups includedir_data = include/hpojip.h include/ptal.h VAR_RUN_PREFIX_CFLAGS = -DVAR_RUN_PREFIX="\"/var/run\"" PAR_PLATFORM = NONE USB_PLATFORM = LIBUSB MLCD_OBJS = MLCD_CFLAGS = -DHAVE_LIBUSB -I/libusbperl//include MLCD_LFLAGS = -L/libusbperl//lib -lusb DEFINES_CMDLINE = INCLUDE_CMDLINE = -I/mediacenter/hpojcross/hpoj-0.91/include LIBRARY_CMDLINE = -L/mediacenter/hpojcross/hpoj-0.91/lib/hpojip -L/mediacenter/hpojcross/hpoj-0.91/lib/ptal -L/mediacenter/hpojcross/hpoj-0.91/lib/sane LIBSNMP_CMDLINE = CUPS_BACKEND_DIR = SANE_BACKEND_DIR = SANE_ETC_DIR = LIBQT_CMDLINE = QT_MOC = So the only main difference I can see is that my USB_PLATFORM is LIBUSB and not LINUX. Could that be the problem? And if so, how do I fix it? Greets, Pieter Agten |