From 8df790d26e48fced582219d1ebdefbc33f0087b6 Mon Sep 17 00:00:00 2001 From: daan Date: Tue, 7 Jan 2025 17:05:22 +0100 Subject: [PATCH] Add helpful xcode libjpeg linker instructions in readme. --- Readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Readme.md b/Readme.md index b2f0644..1026093 100644 --- a/Readme.md +++ b/Readme.md @@ -2,6 +2,7 @@ Rough OF addon that uses turbo-jpeg lib to read and write jpegs. 2-4 times faster than OF's freeImge based jpeg en/decoder. You will need to install libjpeg-turbo (http://sourceforge.net/projects/libjpeg-turbo/) and its dylibs or freemImage's internal version of libjpeg will conflict with the one required by libjpeg-turbo, throwing a "Wrong JPEG library version: library is 80, caller expects 62" error. Alternatively you can just place the "libturbojpeg.dylib" by the binary and it should work. Only tested on OSX Lion. +On Xcode you might need to change the `other linker flags` arguments' order to force linking against the ofxTurboJPEG ones first; instead of the `ImageIO.framework` ones. (simply move them up) ofxTurboJpeg turbo;