_____________________________
From: Larry Gritz <
address@hidden>
Sent: Thursday, April 14, 2016 1:52 PM
Subject: Re: [Openexr-devel] Windows build of Ilmbase/IlmImf
To: Nick Porcino <
address@hidden>
Cc:
address@hidden
address@hidden <
address@hidden>
Thanks, Nick.
Well, I *think* I'm doing approximately the same things (minor differences, like I use 'cmake --build' instead of directly calling msbuild).
The Ilmbase build goes fine for me, but on OpenEXR it's hanging on "Generating b44ExpLogTable.h", it never gets past that step and after an hour Appveyor terminates my build process.
You can see this at the bottom of the log:
https://ci.appveyor.com/project/lgritz/oiio/build/lg-appveyor2-90/job/kbgswpnpq4t99ecu
Anybody encountered a hang while generating this header, or have any tips on how to proceed?
> On Apr 14, 2016, at 10:10 AM, Nick Porcino <
address@hidden> wrote:
>
> Not exactly what you are asking for but here is a script that works, distilled out of my mkvfx script. The fact that it is this complex suggests that the official cmake script could use a little love and attention.
>
> First fetch zlib from git://github.com/madler/zlib.git
>
> MKVFX_ROOT points to where I want to install, eg C:\local,
> MKVFX_SRC_ROOT points to where the folder containing the OpenEXR sources, and the zlib sources as a sibling.
>
> mkdir zBuild
> cd zBuild
> cmake -G \"Visual Studio 14 2015 Win64\" -DCMAKE_INSTALL_PREFIX=\"$(MKVFX_ROOT)\" \"$(MKVFX_SRC_ROOT)\\zlib\"
> msbuild zlib.sln /t:Build /p:Configuration=Release /p:Platform=x64
> xcopy *.h \"$(MKVFX_ROOT)\\include\\\" /s /y
> xcopy \"$(MKVFX_SRC_ROOT)\\zlib\\zlib.h\" \"$(MKVFX_ROOT)\\include\\\" /s /y
> xcopy Release\\zlib.lib\" \"$(MKVFX_ROOT)\\lib\\\" /s /y
> xcopy Release\\zlibstatic.lib\" \"$(MKVFX_ROOT)\\lib\\\" /s /y
> xcopy Release\\zlib.dll\" \"$(MKVFX_ROOT)\\bin\\\" /s /y
> cd ..
> mkdir IlmBaseBuild
> cd IlmBaseBuild
> cmake -G \"Visual Studio 14 2015 Win64\" -DCMAKE_INSTALL_PREFIX=\"$(MKVFX_ROOT)\" \"$(MKVFX_SRC_ROOT)/OpenEXR/IlmBase\"
> msbuild \"$(MKVFX_BUILD_ROOT)\\IlmBase\\IlmBase.sln\" /t:Build /p:Configuration=Release /p:Platform=x64
> powershell New-Item -ItemType Directory -Force -Path '\"$(MKVFX_ROOT)\\include\\OpenEXR'\"
> xcopy IlmBase\\config\\*\" \"$(MKVFX_ROOT)\\include\\OpenEXR\\\" /s /y
> xcopy IlmBase\\Half\\*.h\" \"$(MKVFX_ROOT)\\include\\OpenEXR\\\" /s /y
> xcopy \"$(MKVFX_SRC_ROOT)\\OpenEXR\\IlmBase\\Half\\*.h\" \"$(MKVFX_ROOT)\\include\\OpenEXR\\\" /s /y
> xcopy \"$(MKVFX_SRC_ROOT)\\OpenEXR\\IlmBase\\Iex\\*.h\" \"$(MKVFX_ROOT)\\include\\OpenEXR\\\" /s /y
> xcopy \"$(MKVFX_SRC_ROOT)\\OpenEXR\\IlmBase\\IexMath\\*.h\" \"$(MKVFX_ROOT)\\include\\OpenEXR\\\" /s /y
> xcopy \"$(MKVFX_SRC_ROOT)\\OpenEXR\\IlmBase\\IlmThread\\*.h\" \"$(MKVFX_ROOT)\\include\\OpenEXR\\\" /s /y
> xcopy \"$(MKVFX_SRC_ROOT)\\OpenEXR\\IlmBase\\Imath\\*.h\" \"$(MKVFX_ROOT)\\include\\OpenEXR\\\" /s /y
> xcopy IlmBase\\Half\\Release\\Half.lib\" \"$(MKVFX_ROOT)\\lib\\\" /s /y
> xcopy IlmBase\\Half\\Release\\Half.dll\" \"$(MKVFX_ROOT)\\bin\\\" /s /y
> xcopy IlmBase\\Iex\\Release\\Iex-2_2.lib\" \"$(MKVFX_ROOT)\\lib\\\" /s /y
> xcopy IlmBase\\Iex\\Release\\Iex-2_2.dll\" \"$(MKVFX_ROOT)\\bin\\\" /s /y
> xcopy IlmBase\\IexMath\\Release\\IexMath-2_2.lib\" \"$(MKVFX_ROOT)\\lib\\\" /s /y
> xcopy IlmBase\\IexMath\\Release\\IexMath-2_2.dll\" \"$(MKVFX_ROOT)\\bin\\\" /s /y
> xcopy IlmBase\\Imath\\Release\\Imath-2_2.lib\" \"$(MKVFX_ROOT)\\lib\\\" /s /y
> xcopy IlmBase\\Imath\\Release\\Imath-2_2.dll\" \"$(MKVFX_ROOT)\\bin\\\" /s /y
> xcopy IlmBase\\IlmThread\\Release\\IlmThread-2_2.lib\" \"$(MKVFX_ROOT)\\lib\\\" /s /y
> xcopy IlmBase\\IlmThread\\Release\\IlmThread-2_2.dll\" \"$(MKVFX_ROOT)\\bin\\\" /s /
> cd ..
> mkdir OpenEXRBuild
> cd OpenEXRBuild
> cmake -G \"Visual Studio 14 2015 Win64\" -DILMBASE_PACKAGE_PREFIX=\"$(MKVFX_ROOT)\" -DZLIB_LIBRARY=\"$(MKVFX_ROOT)\\lib\\zlibstatic.lib\" -DZLIB_INCLUDE_DIR=\"$(MKVFX_ROOT)\\include\" -DCMAKE_INSTALL_PREFIX=\"$(MKVFX_ROOT)\" \"$(MKVFX_SRC_ROOT)/OpenEXR/OpenEXR\"
>
> powershell New-Item -ItemType Directory -Force -Path '\"$(MKVFX_BUILD_ROOT)\\OpenEXR\\IlmImf\\Release'\"
> xcopy \"$(MKVFX_BUILD_ROOT)\\IlmBase\\Half\\Release\\Half.dll\" \"$(MKVFX_BUILD_ROOT)\\OpenEXR\\IlmImf\\Release\" /s /y
> xcopy \"$(MKVFX_BUILD_ROOT)\\IlmBase\\Iex\\Release\\*.dll\" \"$(MKVFX_BUILD_ROOT)\\OpenEXR\\IlmImf\\Release\" /s /y
> xcopy \"$(MKVFX_BUILD_ROOT)\\IlmBase\\IlmThread\\Release\\*.dll\" \"$(MKVFX_BUILD_ROOT)\\OpenEXR\\IlmImf\\Release\" /s /y
> msbuild \"$(MKVFX_BUILD_ROOT)\\OpenEXR\\openexr.sln\" /t:Build /p:Configuration=Release /p:Platform=x64
> cd ..
> mkdir PyIlmBase
> cd PyIlmBase
> cmake -DILMBASE_PACKAGE_PREFIX=$(MKVFX_ROOT) -G \"Visual Studio 14 2015 Win64\" -DCMAKE_INSTALL_PREFIX=\"$(MKVFX_ROOT)\" \"$(MKVFX_SRC_ROOT)/OpenEXR/PyIlmBase\"
>
> msbuild pyilmbase.sln\" /t:Build /p:Configuration=Release /p:Platform=x64
>
>
>
>
> ok I ran out of steam and don't have an installation step for PyIlmBase or the rest of the Python bits.
>
>
> ________________________________________
> From: Openexr-devel <
openexr-devel-bounces+address@hidden>
on behalf of Larry Gritz <
address@hidden>
> Sent: Monday, April 11, 2016 1:10 PM
> To:
address@hidden
address@hidden
> Subject: [Openexr-devel] Windows build of Ilmbase/IlmImf
>
> Anybody have a pointer to pre-built windows libraries for version 2.2?
>
>
> --
> Larry Gritz
>
address@hidden
>
>
>
> _______________________________________________
> Openexr-devel mailing list
>
address@hidden
>
https://lists.nongnu.org/mailman/listinfo/openexr-devel
--
Larry Gritz
address@hidden