michaelrsweet / lprint

A Label Printer Application
https://www.msweet.org/lprint
Apache License 2.0
227 stars 31 forks source link

Compile issues under m1 mac ventura 13.5.2 #109

Closed Siedlerchr closed 10 months ago

Siedlerchr commented 10 months ago

I compiled libcups, pappl master/main and when now compiling lprint I get the following issues:

lprint-dymo.c:169:5: error: call to undeclared function 'papplCopyString'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    papplCopyString(data->media_ready[0].size_name, "oe_wide-2in-tape_1x2in", sizeof(data->media_ready[0].size_name));
    ^
lprint-dymo.c:169:5: note: did you mean 'cupsCopyString'?
/usr/local/include/libcups3/cups/cups.h:318:16: note: 'cupsCopyString' declared here
extern size_t           cupsCopyString(char *dst, const char *src, size_t dstsize) _CUPS_PUBLIC;
                        ^
lprint-dymo.c:203:7: error: call to undeclared function 'papplCopyString'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      papplCopyString(data->media_ready[0].size_name, "oe_address-label_1.125x3.5in", sizeof(data->media_ready[0].size_name));
      ^
lprint-dymo.c:211:7: error: call to undeclared function 'papplCopyString'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      papplCopyString(data->media_ready[0].size_name, "oe_address-label_1.125x3.5in", sizeof(data->media_ready[0].size_name));
      ^
lprint-dymo.c:232:5: error: call to undeclared function 'papplCopyString'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    papplCopyString(data->media_ready[i].source, data->source[i], sizeof(data->media_ready[i].source));
    ^
4 errors generated.
michaelrsweet commented 10 months ago

Lprint isn’t yet ready for PAPPL 2.0, which is what the master branch is tracking. Use the v1.4.x branch for now.