Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building with VS 2015 #205

Closed
walbourn opened this issue Sep 21, 2016 · 6 comments
Closed

Building with VS 2015 #205

walbourn opened this issue Sep 21, 2016 · 6 comments
Assignees

Comments

@walbourn
Copy link

walbourn commented Sep 21, 2016

I'm trying to build OpenEXR with Visual C++ and having no luck. I took the cmake route per the instructions here, but they don't work. These get me close, but I still cannot get it to build:

cd /d d:\
git clone https://github.com/openexr/openexr.git
cd openexr\IlmBase
md vsbuild
cd vsbuild
cmake -G"Visual Studio 14 Win64" ..

Build ilmbase.sln (works, but generates a ton of warnings)

cd ..\..\openexr
md vsbuild
cd vsbuild
cmake -DZLIB_ROOT=D:\zlib-1.2.8 -DZLIB_LIBRARY=D:\zlib-1.2.8\contrib\vstudio\vc11\x64\ZlibDllRelease\zlibwapi.lib -DILMBASE_PACKAGE_PREFIX=D:\openexr\ilmbase\vsbuild -G "Visual Studio 14 Win64" ..

Build openexr.sln, and I get numerous errors like:

D:\openexr\OpenEXR\IlmImf\b44ExpLogTable.cpp(52): fatal error C1083: Cannot open include file: 'half.h': No such file or directory

d:\openexr\openexr\ilmimf\ImfInt64.h(44): fatal error C1083: Cannot open include file: 'ImathInt64.h': No such file or directory

@walbourn
Copy link
Author

walbourn commented Sep 21, 2016

BTW, it would be super-helpful if you guys just published a NuGet package for Windows developers. zlib is already up there.

@caron
Copy link

caron commented Sep 21, 2016

@walbourn You might be interested in my appveyor support for OpenVDB (it includes building OpenEXR from source). I was actually interested in forking OpenEXR and adding support for appveyor also and maybe we can get NuGet package published too?

https://github.com/caron/openvdb/tree/v3.2.0-win-appveyor

particularly this part...
https://github.com/caron/openvdb/blob/v3.2.0-win-appveyor/appveyor.yml#L57

@meshula
Copy link
Contributor

meshula commented Sep 23, 2016

The vfxpro99 OpenEXR script for USD works a treat.

https://github.com/vfxpro99/usd-build-club/blob/master/prerequisites-vc140-x64/openexr.cmd

@walbourn
Copy link
Author

Thank you so much. That script rocks!

@ghost
Copy link

ghost commented Feb 22, 2017

@caron
The nuget request is complete: #218

For package installation:
Install-Package openexr-msvc14-x86
Install-Package openexr-msvc14-x64

thanks,
coast

@cary-ilm cary-ilm added this to the Needs Attention milestone Jun 29, 2019
@meshula
Copy link
Contributor

meshula commented Jul 4, 2019

I believe this was fully resolved in #218.

@meshula meshula closed this as completed Jul 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants