ondrej-zary / carps-cups

CUPS driver for Canon CARPS printers
GNU General Public License v3.0
68 stars 22 forks source link

Info on FreeBSD #16

Open kagalle opened 1 year ago

kagalle commented 1 year ago

I got this working in FreeBSD 13.1 but I needed to make two changes. I am sharing in case this would help anyone else.

  1. In the Makefile, I replaced the contents of "shell..." with its actual values:
    @@ -1,6 +1,6 @@
    CFLAGS=-Wall -Wextra --std=c99 -O2
    -CUPSDIR=$(shell cups-config --serverbin)
    -CUPSDATADIR=$(shell cups-config --datadir)
    +CUPSDIR=/usr/local/libexec/cups
    +CUPSDATADIR=/usr/local/share/cups
  2. In rastertocarps.c, I changed 'unsigned int' to 'int':
    
    @@ -149,7 +149,7 @@ void dict_add(u8 byte, u8 *dict) {
        dict[0] = byte;
    }

-int fls(unsigned int n) { +int fls(int n) {


Thanks.