From: Matt B. <wal...@ma...> - 2024-08-12 17:01:44
|
> On Aug 10, 2024, at 9:31 AM, Matt Broughton <wal...@ma...> wrote: > > > >> On Aug 9, 2024, at 11:10 PM, Matt Broughton <wal...@ma...> wrote: >> >> >> >>> On Aug 9, 2024, at 8:42 PM, Michael Sweet <ms...@ms...> wrote: >>> >>> Matt, >>> >>>> On Aug 9, 2024, at 9:21 PM, Matt Broughton <wal...@ma...> wrote: >>>> ... >>>> Thank you for your help Michael. Unfortunately, I still can't get it to build all the way. >>>> >>>> I did as you said for building libusb and installed -- >>> >>> Hmm, maybe edit the installed libusb-1.0.pc to include the Libs.private on the end of the regular Libs, like this: >>> >>> Libs: -L${libdir} -lusb-1.0 -lobjc -Wl,-framework,IOKit -Wl,-framework,CoreFoundation >> >> Almost. You also need to add -Wl,-framework,Security which then matches Libs private. >> >> Libs: -L${libdir} -lusb-1.0 -lobjc -Wl,-framework,IOKit -Wl,-framework,CoreFoundation -Wl,-framework,Security >> Libs.private: -lobjc -Wl,-framework,IOKit -Wl,-framework,CoreFoundation -Wl,-framework,Security >> Cflags: -I${includedir}/libusb-1.0 >> >> Now it builds. I haven't tested the build yet, but this is a big step. Thank you Michael. You can also edit the libusb-1.0.pc.in file before you build. Add @LIBS@ to the end of the line for Libs: so it reads: Libs: -L${libdir} -lusb-1.0 @LIBS@ Matt |