Closed pgnd closed 1 week ago
So those values are part of the config.h header, which is generated by the configure script.
It would be useful to see the complete build log - configure output plus the full output from make.
pebkac. self-inflicted by installing system gs as prereq for {hplip,ghostscript}-printer-app's prereqs.
iiuc, gs, cups, libcusfilters, cups-filters, libppd aren't "libcups3-ified" yet. having system-installs of any of those wreaks some havoc.
that said, this bit does indeed work fine
cd ~
_TOP="/builddir/build/BUILD"
_WI="${_TOP}/work"
_WO="${_TOP}/work.out"
rm -rf ${_WI}
mkdir -p ${_WI}
cd ${_WI}
git clone --recurse-submodules https://github.com/OpenPrinting/libcups/
git clone https://github.com/michaelrsweet/pappl
rm -rf ${_WO}
mkdir -p ${_WO}
cd ${_WI}
_addl_ld_flags=""
_addl_ld_flags+=" -L${_WO}/lib64"
_addl_ld_flags+=" -L/usr/local/lib64"
_addl_ld_flags+=" -L/usr/lib64"
_addl_ld_flags+=" -lcrypto"
_addl_ld_flags+=" -lssl"
_addl_inc_flags=""
_addl_inc_flags+=" -I."
_addl_inc_flags+=" -I${_WO}/include/libcups3/cups"
_addl_inc_flags+=" -I${_WO}/include/pappl2"
_addl_inc_flags+=" -I${_WO}/include"
_addl_inc_flags+=" -I/usr/local/include"
_addl_inc_flags+=" -I/usr/include"
export CFLAGS=" ${_addl_inc_flags}"
export CXXFLAGS="${_addl_inc_flags}"
export CPPFLAGS="${_addl_inc_flags}"
export LDFLAGS="${_addl_ld_flags}"
export PKG_CONFIG_PATH=".:${_WO}/lib64/pkgconfig:/usr/local/lib64/pkgconfig:/usr/lib64/pkgconfig"
export PATH="${_WO}/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin"
pushd ./libcups
./configure \
--prefix=${_WO} \
--libdir=${_WO}/lib64 \
--with-pkgconfpath=${_WO}/lib64/pkgconfig/
make --quiet -j$(nproc)
make --quiet install
popd
pushd ./pappl
./configure \
--prefix=${_WO} \
--libdir=${_WO}/lib64 \
--enable-libpappl2-prefix
make --quiet -j$(nproc)
make --quiet install
popd
tree ${_WO}
/builddir/build/BUILD/work.out
├── bin
│ ├── ippevepcl -> ipptransform
│ ├── ippeveprinter
│ ├── ippeveps -> ipptransform
│ ├── ippfind
│ ├── ipptool
│ ├── ipptransform
│ └── pappl2-makeresheader
├── include
│ ├── libcups3
│ │ └── cups
│ │ ├── array.h
│ │ ├── base.h
│ │ ├── cups.h
│ │ ├── dir.h
│ │ ├── dnssd.h
│ │ ├── file.h
│ │ ├── form.h
│ │ ├── http.h
│ │ ├── ipp.h
│ │ ├── json.h
│ │ ├── jwt.h
│ │ ├── language.h
│ │ ├── ppd.h
│ │ ├── pwg.h
│ │ ├── raster.h
│ │ ├── thread.h
│ │ └── transcode.h
│ └── pappl2
│ └── pappl
│ ├── base.h
│ ├── client.h
│ ├── device.h
│ ├── job.h
│ ├── loc.h
│ ├── log.h
│ ├── mainloop.h
│ ├── pappl.h
│ ├── printer.h
│ ├── subscription.h
│ └── system.h
├── lib64
│ ├── libcups3.a
│ ├── libcups3.so -> libcups3.so.3
│ ├── libcups3.so.3
│ ├── libpappl2.a
│ ├── libpappl2.so -> libpappl2.so.2
│ ├── libpappl2.so.2
│ └── pkgconfig
│ ├── cups3.pc
│ └── pappl2.pc
└── share
├── doc
│ ├── libcups3
│ │ ├── cups.png
│ │ ├── cups.svg
│ │ ├── cupspm.epub
│ │ ├── cupspm.html
│ │ ├── index.html
│ │ ├── ippeveprinter.html
│ │ ├── ippfind.html
│ │ ├── ipptool.html
│ │ ├── ipptoolfile.html
│ │ ├── ipptransform.html
│ │ ├── libcups.css
│ │ ├── raster-organization.png
│ │ ├── raster.png
│ │ ├── sample-image.png
│ │ ├── spec-ipp.html
│ │ └── spec-raster.html
│ └── pappl2
│ ├── pappl-512.png
│ ├── pappl-block.png
│ └── pappl.html
├── libcups3
│ ├── fonts
│ │ ├── NotoSansMono-License.txt
│ │ └── NotoSansMono-Regular.ttf
│ └── ipptool
│ ├── cancel-current-job.test
│ ├── color.jpg
│ ├── create-job-sheets.test
│ ├── create-job-timeout.test
│ ├── create-job.test
│ ├── create-printer-subscription.test
│ ├── cups-create-local-printer.test
│ ├── document-a4.pdf
│ ├── document-a4.ps
│ ├── document-letter.pdf
│ ├── document-letter.ps
│ ├── fax-job.test
│ ├── get-completed-jobs.test
│ ├── get-job-attributes.test
│ ├── get-job-template-attributes.test
│ ├── get-jobs.test
│ ├── get-notifications.test
│ ├── get-printer-attributes-suite.test
│ ├── get-printer-attributes.test
│ ├── get-printers.test
│ ├── get-subscriptions.test
│ ├── gray.jpg
│ ├── identify-printer-display.test
│ ├── identify-printer.test
│ ├── ipp-1.1.test
│ ├── ipp-2.0.test
│ ├── onepage-a4-300-black-1.pwg
│ ├── onepage-a4.pdf
│ ├── onepage-a4.ps
│ ├── onepage-letter-300-black-1.pwg
│ ├── onepage-letter.pdf
│ ├── onepage-letter.ps
│ ├── print-job-and-wait.test
│ ├── print-job-deflate.test
│ ├── print-job-gzip.test
│ ├── print-job-hold.test
│ ├── print-job-letter.test
│ ├── print-job-manual.test
│ ├── print-job-media-col.test
│ ├── print-job-media-needed.test
│ ├── print-job-password.test
│ ├── print-job-raster.test
│ ├── print-job.test
│ ├── print-uri.test
│ ├── set-attrs-hold.test
│ ├── testfile.jpg
│ ├── testfile.pcl
│ ├── testfile.pdf
│ ├── testfile.ps
│ ├── testfile.txt
│ └── validate-job.test
└── man
├── man1
│ ├── ippevepcl.1 -> ipptransform.1
│ ├── ippeveprinter.1
│ ├── ippeveps.1 -> ipptransform.1
│ ├── ippfind.1
│ ├── ipptool.1
│ ├── ipptransform.1
│ ├── pappl2-makeresheader.1
│ └── pappl2.1
├── man3
│ ├── pappl2-client.3
│ ├── pappl2-device.3
│ ├── pappl2-job.3
│ ├── pappl2-log.3
│ ├── pappl2-mainloop.3
│ ├── pappl2-printer.3
│ ├── pappl2-resource.3
│ └── pappl2-system.3
└── man5
└── ipptoolfile.5
20 directories, 132 files
i'm working on a snap-less pkg build of hplip-printer-app.
the
pappl
prereq hits some build failsfor src
there are a number of undefs,
adding
kludges around the undefs,
, which is a different issue, as
not clear to me, yet, why lib's not found