Questions about setting up a testing environment. #73
-
Hello, I am working on updating some code to support libcups3. I am at the point that I would like to test against the actual libcups3 library. How would one go about doing this? Can libcups3 co-exist with an existing CUPS 2.x install? Or do I have to start fresh with a new Linux VM without any CUPS packages installed and build libcups3? Also, is the cups-local server needed to print? If so, I'll have to build/install it as well. My existing code calls libcups to submit a job (ultimately a PDF) via cupsCreateDestJob() and cupsStartDestDocument(). |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi, the default build of libcups 3.x will install so that it can co-exist with CUPS 2.x. Use "pkg-config --something cups" to build against CUPS 2.x and "pkg-config --something cups3" to build against libcups 3.x. WRT cups-local, it isn't needed for printing with libcups, but (eventually) if cups-local is running then libcups will default to using it instead of cupsd. |
Beta Was this translation helpful? Give feedback.
-
No problems compiling and installing. Right now I'm trying to figure out why I get a segfault when running the simple example program (definitely linking to libcups3) which only calls cupsEnumDests(). System is running CUPS 2.3.3op2. EDIT: Switched from master to 3.0b2. No more segfault, but program hangs after listing printers. |
Beta Was this translation helpful? Give feedback.
Hi, the default build of libcups 3.x will install so that it can co-exist with CUPS 2.x. Use "pkg-config --something cups" to build against CUPS 2.x and "pkg-config --something cups3" to build against libcups 3.x.
WRT cups-local, it isn't needed for printing with libcups, but (eventually) if cups-local is running then libcups will default to using it instead of cupsd.