Hi Ben
If you can help me with this, I would appreciate it greatly. I am trying to
port this project to FreeBSD:
https://github.com/endlessm/epson-inkjet-printer
After I grab those files then I run autoreconf -fi;
I am not sure how to get autoreconf to not put INCLUDES, which autoreconf
complains about.
After running autoreconf -fi I make the edits, that you can see with the
attached patch updated.path file. [is there's a way to make autoreconf -fi
not write INCLUDES but instead use the AM_CPPFLAGS?]
After I edit the files I run ./configure --prefix=/tmp
this seems to go well, no errors
Then I run make, this seems to go okay as well, it generates 3 warnings but
seems to run to completion, pastebin of the warnings:
https://pastebin.com/k5hs6011
after that I run make install and it installs some files in the tmp
directory:
.
├── doc
│ ├── AUTHORS
│ ├── COPYING
│ ├── COPYING.EPSON
│ ├── COPYING.LIB
│ ├── NEWS
│ └── README
├── etc
│ └── ld.so.conf.d
│ └── 99-epson-inkjet-printer.conf
└── lib
└── cups
└── filter
└── epson_inkjet_printer_filter
6 directories, 8 files
This might seem a bit silly but I am stuck here. These are the drivers for
the printer that I have but I noticed a few things wrong.
1) The PPD files didn't get copied over
2) The filter file is some type shared library and I am not sure how to use
it.
I know that I will need to move these files to /usr/local/libexec/cups
folder in their proper locations but why didn't the PPD files get installed?
Can I get some help sorting this out?
/usr/local/libexec/cups % tree .
.
├── backend
│ ├── beh
│ ├── dnssd
│ ├── driverless -> /usr/local/libexec/cups/driver/driverless
│ ├── http -> ipp
│ ├── https -> ipp
│ ├── implicitclass
│ ├── ipp
│ ├── ipps -> ipp
│ ├── lpd
│ ├── parallel
│ ├── serial
│ ├── snmp
│ ├── socket
│ └── usb
├── cgi-bin
│ ├── admin.cgi
│ ├── classes.cgi
│ ├── help.cgi
│ ├── jobs.cgi
│ └── printers.cgi
├── daemon
│ ├── cups-deviced
│ ├── cups-driverd
│ ├── cups-exec
│ └── cups-lpd
├── driver
│ └── driverless
├── filter
│ ├── bannertopdf
│ ├── commandtoescpx
│ ├── commandtopclx
│ ├── commandtops
│ ├── foomatic-rip
│ ├── gstopdf
│ ├── gstopxl
│ ├── gstoraster
│ ├── gziptoany
│ ├── imagetopdf
│ ├── imagetops
│ ├── imagetoraster
│ ├── pdftoijs
│ ├── pdftoopvp
│ ├── pdftopdf
│ ├── pdftops
│ ├── pdftoraster
│ ├── pstops
│ ├── rastertodymo -> rastertolabel
│ ├── rastertoepson
│ ├── rastertoescpx
│ ├── rastertohp
│ ├── rastertolabel
│ ├── rastertopclx
│ ├── rastertopdf
│ ├── rastertops
│ ├── rastertopwg
│ ├── sys5ippprinter
│ ├── texttopdf
│ ├── texttops
│ └── texttotext
├── monitor
│ ├── bcp
│ └── tbcp
└── notifier
├── dbus
├── mailto
└── rss
On Thu, Jul 6, 2017 at 9:52 PM, Benjamin Kaduk wrote:
> On Thu, Jul 06, 2017 at 09:55:35AM +0800, blubee blubeeme wrote:
> >
> > those are sprinkled all over the place, how do I avoid that and use libc
> > instead?
>
> The software you are building needs to update their configure process
> to cope with dlopen being somewhere other than libdl, from what information
> you've provided. Without looking at their source tree it's hard to
> say exactly what this would entail.
>
> -Ben
>
diff -ruN epson-inkjet-printer/Makefile.am --ep/Makefile.am
--- epson-inkjet-printer/Makefile.am 2017-07-06 10:33:43.822281000 +0800
+++ --ep/Makefile.am 2017-07-06 23:04:13.137811000 +0800
@@ -12,5 +12,6 @@
ldsohooksdir = $(sysconfdir)/ld.so.conf.d
ldsohooks_DATA = ld.so.conf.d/99-epson-inkjet-printer.conf
+ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = $(doc_DATA) $(ldsohooks_DATA)
diff -ruN epson-inkjet-printer/configure.ac --ep/configure.ac
--- epson-inkjet-printer/configure.ac 2017-07-06 10:33:43.82248 +0800
+++ --ep/configure.ac 2017-07-06 23:04:13.138123000 +0800
@@ -7,6 +7,7 @@
AC_CONFIG_SRCDIR([src/raster_to_epson.h])
AC_CONFIG_HEADER([config.h])
+AC_CONFIG_MACRO_DIRS([m4])
# Checks for programs.
AC_PROG_CC
@@ -14,9 +15,6 @@
AC_PROG_LN_S
AC_PROG_LIBTOOL
-# Checks for libraries.
-AC_CHECK_LIB([dl], [dlopen])
-
# Define flags
AC_ARG_ENABLE(debug,
AC_HELP_STRING([--enable-debug],[enable debug]),
@@ -50,7 +48,6 @@
CUPS_SERVER_DIR=${prefix}/lib/cups
CUPS_LIBS='-lcups -lm'
CUPS_IMAGE_LIBS='-lcupsimage -lcups -ljpeg -lm'
- DL_LIBS='-ldl'
STDCPP_LIBS='-lstdc++'
fi
diff -ruN epson-inkjet-printer/src/Makefile.am --ep/src/Makefile.am
--- epson-inkjet-printer/src/Makefile.am 2017-07-06 10:33:43.847522000 +0800
+++ --ep/src/Makefile.am 2017-07-06 23:04:13.235545000 +0800
@@ -2,7 +2,7 @@
SUBDIRS = memory raster pagemanager filteropt
-INCLUDES = \
+AM_CPPFLAGS = \
-I../include \
-I./raster \
-I./memory \
diff -ruN epson-inkjet-printer/src/filteropt/Makefile.am --ep/src/filteropt/Makefile.am
--- epson-inkjet-printer/src/filteropt/Makefile.am 2017-07-06 10:33:43.847946000 +0800
+++ --ep/src/filteropt/Makefile.