discord / lilliput

Resize images and animated GIFs in Go
https://discord.com/blog/how-discord-resizes-150-million-images-every-day-with-go-and-c
Other
1.96k stars 123 forks source link

Runtime error: use of undeclared identifier 'jpeg_read_icc_profile' #189

Closed prettykingking closed 3 weeks ago

prettykingking commented 1 month ago

After updated the pkg to v1.3,when import the lilliput packge, the application exit with this error.

opencv.cpp:254:9: error: use of undeclared identifier 'jpeg_read_icc_profile'

OS: Mac OSX 12.3.1 Golang: 1.19.4

skidder commented 1 month ago

@prettykingking I suspect this is related to Lilliput supporting only Intel architecture dependencies on Mac OS X. This has been reported in a couple of Github issues:

I'd like to close this out as a duplicate, but please feel to re-open if you think it's something else. Thanks again for reporting!

prettykingking commented 1 month ago

@skidder I am sure of that my Mac is Intel CPU. Strange thing, I see all dependancies are static archive. But there is an undeclared call.

skidder commented 1 month ago

Thanks @prettykingking for checking, I'll reopen this and take a look from my Intel Mac

skidder commented 3 weeks ago

@prettykingking I'm closing this out since we've chosen to support only Apple Silicon on MacOS. I'm sorry for any inconvenience this might cause.