michaelrsweet / lprint

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

Code signature problems: dyld: Library not loaded: /usr/local/lib/libpappl.1.dylib #43

Closed erikwahlstrom1 closed 2 years ago

erikwahlstrom1 commented 2 years ago

Hi Michael!

I'm getting this error running lprint:

dyld: Library not loaded: /usr/local/lib/libpappl.1.dylib Referenced from: /usr/local/bin/lprint Reason: no suitable image found. Did find: /usr/local/lib/libpappl.1.dylib: code signature in (/usr/local/lib/libpappl.1.dylib) not valid for use in process using Library Validation: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?) zsh: abort lprint

OSX: 11.6

Latest github-rep for lprint is used - no problems running .configure, and make is with no errors.

pappl-1.0.3 is used, no problems with .configure and make is with no errors.

Any clue?

Best wishes, Erik

erikwahlstrom1 commented 2 years ago

Update:

I force-updated the signing and now it seems to work:

codesign --force -v -s - ./lprint

erikwahlstrom1 commented 2 years ago

Update 2 / problem: I can list printers and add them, but running "lprint drivers" returns:

(base) erikwahlstrom@eriksimac ~ % lprint drivers lprint: No system callback specified.

Missmatch between using the stable pappl and latest rep for lprint - don't really know.

michaelrsweet commented 2 years ago

@erikwahlstrom1 I've been testing against PAPPL 1.1 which has some API changes/fixes.

michaelrsweet commented 2 years ago

@erikwahlstrom1 Please try the PAPPL 1.1.0 release with current Github sources. I will also be doing a release soon with binaries for macOS...