I have finally successfully built the OpenImageIO library. It is basically based on steps here: https://urldefense.proofpoint.com/v2/url?u=http-3A__jesnault.fr_website_how-2Dto-2Dbuild-2Dwindows-2Dimages-2D&d=DwIFaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=yN_mtgnvh2k3WD8QIZam9tbZUPHJMoZc_18KfiSrxx0&m=-sYBhftfQMUMbpt7hlKRLfHeaEfmR9o5Sc5Ogd7Twmc&s=n9EV4o4LVxM95j2xr1SE7D0Vdnqhv0toAIVsZgUFrFo&e= libraries/, but a lot changes are needed on Windows 7 64bit + VS2015. Specifically,
1, When compiling OpenEXR, use -DZLIB_ROOT instead of ZLIB_LIBRARY and ZLIB_INCLUDE_DIR 2. When compiling libtiff, use call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64 before calling nmake to generate x64 binaries. 3. Add elseif (NOT Boost_VERSION VERSION_LESS 106400 AND Boost_VERSION VERSION_LESS 106500) … at line 760 of C:\Program Files\CMake\share\cmake-3.7\Modules\FindBoost.cmake to support latest v1.64 Boost. 4. We need to specify FREETYPE_INCLUDE_DIRS, FREETYPE_LIBRARIES and FREETYPE_PATH properly to remove errors in cmake-gui about FreeType because its include structure is as unusual as libRaw. 5. Since libRaw has an unusual include structure as mentioned above, I have to delete the "libraw/" prefix in two #include's in ...\oiio\src\raw.imageio\rawinput.cpp to pass compile. 6. Visual Studio 2015 does not support constexpr very well, so change it at line 152 of ...\oiio\src\include\OpenImageIO\array_view.h to const to pass compile. It's not easy but I made it. I'm glad to share my copy of OpenImageIO binaries if anyone needs it on Windows 7 64bit + Visual Studio 2015. I didn't include Qt because it seems that OpenImageIO insists on Qt4 while today Qt is v5.9.0. I didn't include OpenGL because the headers used are too old. I'm using freeglut 3 and even it is getting out of date -- newest edition of redbook is using GLFW. I hope OpenImageIO can catch up. Thank you for reading. On Wed, Jun 7, 2017 at 7:00 PM, Heng Zhou <[email protected]> wrote: > I would be greatly appreciated if anyone happens to be using OpenImageIO > on Windows 7 64bit + Visual Studio 2015, and is willing to share his/her > binaries. I can build it but ImageOutput::create always crashes and I can't > go into the sources to locate the issue although I have specified "Debug" > configuration while compiling OpenImageIO. I'm really at my wit's end about > building OpenImageIO. It would be so nice of you if you can share your > (correct) binaries. >
_______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
