You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default the package links against libjpeg on my ubuntu 16.04. However, libjpeg-turbo8 is also available. I was hoping that the turbo library would be selected at compile time, but it seems go-libjpeg favours libjpeg, at least on my system. In the cgo header somwhere I noticed there is a "-ljpeg" presumably this will therefore only link against libjpeg. Could you advice how I would select libjpeg-turbo instead?
Cheers,
Hrob.
The text was updated successfully, but these errors were encountered:
You probably solved that issue by now. But everybody else who's looking for an answer: CGO_LDFLAGS="-L/tmp/libjpeg-turbo/lib64" CGO_CPPFLAGS="-I/tmp/libjpeg-turbo/include" LD_LIBRARY_PATH="/tmp/libjpeg-turbo/lib64" go run main.go
would work fine. But of course you have to find the appropriate folders for libjpeg-turbo on your system first and replace them in the string above.
Thanks for pointing me in the right direction EAX/N3o
By default the package links against libjpeg on my ubuntu 16.04. However, libjpeg-turbo8 is also available. I was hoping that the turbo library would be selected at compile time, but it seems go-libjpeg favours libjpeg, at least on my system. In the cgo header somwhere I noticed there is a "-ljpeg" presumably this will therefore only link against libjpeg. Could you advice how I would select libjpeg-turbo instead?
Cheers,
Hrob.
The text was updated successfully, but these errors were encountered: