Skip to content

Commit 9e80224

Browse files
Update Readme.md
1 parent da9fdd0 commit 9e80224

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Readme.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#About
12
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.
23

34
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.
@@ -12,3 +13,15 @@ You will need to install libjpeg-turbo (http://sourceforge.net/projects/libjpeg-
1213

1314
![ofxTurboJpeg screenshot](http://farm8.staticflickr.com/7243/6999702551_fc8812d210_z.jpg)
1415

16+
#Compiling
17+
18+
* Visual studio 2015 (instructions by [tgfrerer](https://github.com/tgfrerer))
19+
* turboJPEG libraries for vs2015 compiled straight off the sources using the following recipe:
20+
* download turbojpeg release:
21+
http://sourceforge.net/projects/libjpeg-turbo/files/1.4.1/libjpeg-turbo-1.4.1-vc.exe/download
22+
* download nasm (net assembler): http://www.nasm.us/pub/nasm/releasebuilds/2.11.08/win32/nasm-2.11.08-installer.exe
23+
* copy nasm.exe into the cmake/bin directory so it ends up in the PATH for the cmd prompt.
24+
* use cmake-gui and cmake to build visual studio project files, compile turbojpeg
25+
* find turbojpeg-static.lib and it's debug counterpart.
26+
* rename the debug .lib to turbojpeg-staticd.lib (note the 'd' for last character)
27+
* copy both lib files into the lib folder in the ofxTurboJpeg addon.

0 commit comments

Comments
 (0)