Skip to content

Commit baeea35

Browse files
Merge pull request #2 from mattfelsen/0.9.0-vs2015-x64
VS2015 x64 Compatibility
2 parents 9e80224 + ba8cb1e commit baeea35

File tree

11 files changed

+279
-164
lines changed

11 files changed

+279
-164
lines changed

Readme.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ You will need to install libjpeg-turbo (http://sourceforge.net/projects/libjpeg-
1515

1616
#Compiling
1717

18-
* Visual studio 2015 (instructions by [tgfrerer](https://github.com/tgfrerer))
18+
* Visual studio 2015 (instructions by [tgfrerer](https://github.com/tgfrerer) and [mattfelsen](https://github.com/mattfelsen))
1919
* 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.
20+
* download [turbojpeg source v1.4.1](http://sourceforge.net/projects/libjpeg-turbo/files/1.4.1/libjpeg-turbo-1.4.1.tar.gz/download)
21+
* download [nasm (net assembler)](http://www.nasm.us/pub/nasm/releasebuilds/2.11.08/win32/nasm-2.11.08-installer.exe)
22+
* add `nasm.exe` to your `%PATH%` environment variable
23+
* this depends on where you installed nasm, but should be something like `C:\Users\YOUR_USERNAME\AppData\Local\nasm`
24+
* edit in `Control Panel > System > Advanced system settings > Environment variables > Path`
25+
* use `cmake-gui.exe` to build visual studio project files
26+
* open and compile `libjpeg-turbo.sln` in `Debug` and `Release` modes
27+
* find `turbojpeg-static.lib` in `build\[Debug|Release]` and copy into the proper locations in the ofxTurboJpeg addon

addon_config.mk

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ common:
4040

4141
# some addons need resources to be copied to the bin/data folder of the project
4242
# specify here any files that need to be copied, you can use wildcards like * and ?
43-
ADDON_DATA = libs/turbo-jpeg/lib/osx/libturbojpeg.dylib
43+
ADDON_DATA =
4444

4545
# when parsing the file system looking for libraries exclude this for all or
4646
# a specific platform
@@ -73,7 +73,17 @@ vs:
7373
# when parsing the file system looking for include paths exclude this for all or
7474
# a specific platform
7575
ADDON_INCLUDES_EXCLUDE
76-
ADDON_LIBS = libs/turbo-jpeg/lib/win32/turbojpeg-static.lib
76+
77+
# These should get automatically set up by the projectGenerator. If you're adding
78+
# to a project manually, use the following pattern:
79+
# Win32/Debug
80+
# ADDON_LIBS = libs/libwebsockets/lib/vs/Win32/Debug/turbojpeg-static.lib
81+
# Win32/Release
82+
# ADDON_LIBS = libs/libwebsockets/lib/vs/Win32/Release/turbojpeg-static.lib
83+
# x64/Debug
84+
# ADDON_LIBS = libs/libwebsockets/lib/vs/x64/Debug/turbojpeg-static.lib
85+
# x64/Release
86+
# ADDON_LIBS = libs/libwebsockets/lib/vs/x64/Release/turbojpeg-static.lib
7787

7888
linuxarmv6l:
7989
ADDON_LDFLAGS =
@@ -88,4 +98,5 @@ android/armeabi-v7a:
8898
#nothing yet
8999

90100
osx:
101+
ADDON_DATA = libs/turbo-jpeg/lib/osx/libturbojpeg.dylib
91102
ADDON_LDFLAGS = ../../../addons/ofxTurboJpeg/libs/turbo-jpeg/lib/osx/libturbojpeg.dylib

example/example.sln

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,33 @@
11
Microsoft Visual Studio Solution File, Format Version 12.00
2-
# Visual Studio 2012
2+
# Visual Studio 14
33
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "example", "example.vcxproj", "{7FD42DF7-442E-479A-BA76-D0022F99702A}"
44
EndProject
55
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "openframeworksLib", "..\..\..\libs\openFrameworksCompiled\project\vs\openframeworksLib.vcxproj", "{5837595D-ACA9-485C-8E76-729040CE4B0B}"
66
EndProject
77
Global
88
GlobalSection(SolutionConfigurationPlatforms) = preSolution
99
Debug|Win32 = Debug|Win32
10+
Debug|x64 = Debug|x64
1011
Release|Win32 = Release|Win32
12+
Release|x64 = Release|x64
1113
EndGlobalSection
1214
GlobalSection(ProjectConfigurationPlatforms) = postSolution
1315
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Debug|Win32.ActiveCfg = Debug|Win32
1416
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Debug|Win32.Build.0 = Debug|Win32
17+
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Debug|x64.ActiveCfg = Debug|x64
18+
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Debug|x64.Build.0 = Debug|x64
1519
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Release|Win32.ActiveCfg = Release|Win32
1620
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Release|Win32.Build.0 = Release|Win32
21+
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Release|x64.ActiveCfg = Release|x64
22+
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Release|x64.Build.0 = Release|x64
1723
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Debug|Win32.ActiveCfg = Debug|Win32
1824
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Debug|Win32.Build.0 = Debug|Win32
25+
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Debug|x64.ActiveCfg = Debug|x64
26+
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Debug|x64.Build.0 = Debug|x64
1927
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Release|Win32.ActiveCfg = Release|Win32
2028
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Release|Win32.Build.0 = Release|Win32
29+
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Release|x64.ActiveCfg = Release|x64
30+
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Release|x64.Build.0 = Release|x64
2131
EndGlobalSection
2232
GlobalSection(SolutionProperties) = preSolution
2333
HideSolutionNode = FALSE

0 commit comments

Comments
 (0)