I have a vague memory that the .h generation took forever without optimization turned on.
But, it's been a while since I've built under windows, so this could just be senility.. On Thu, Apr 14, 2016 at 2:48 PM, Larry Gritz <[email protected]> wrote: > As a hack solution, I am not averse to taking the already-generated .h > file from my builds on another platform, and just surreptitiously put it in > the right place before kicking off the build. > > But I was not sure if the Openexr build would notice that the file was > already there and skip the problematic build step for it. > > This is something I've been working on as an extreme background task and > had put it aside entirely for several days, so I haven't tried that yet. > > > On Apr 14, 2016, at 2:38 PM, Piotr Stanczyk <[email protected]> > wrote: > > We should be able to get rid of this step (and move it to the unit tests > if need be) from what I can remember. > > On 14 April 2016 at 13:51, Larry Gritz <[email protected]> wrote: > >> 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 <[email protected]> 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+meshula= >> [email protected]> on behalf of Larry Gritz <[email protected]> >> > Sent: Monday, April 11, 2016 1:10 PM >> > To: [email protected] [email protected] >> > Subject: [Openexr-devel] Windows build of Ilmbase/IlmImf >> > >> > Anybody have a pointer to pre-built windows libraries for version 2.2? >> > >> > >> > -- >> > Larry Gritz >> > [email protected] >> > >> > >> > >> > _______________________________________________ >> > Openexr-devel mailing list >> > [email protected] >> > https://lists.nongnu.org/mailman/listinfo/openexr-devel >> >> -- >> Larry Gritz >> [email protected] >> >> >> >> _______________________________________________ >> Openexr-devel mailing list >> [email protected] >> https://lists.nongnu.org/mailman/listinfo/openexr-devel >> > > > -- > Larry Gritz > [email protected] > > > > _______________________________________________ > Openexr-devel mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/openexr-devel > >
_______________________________________________ Openexr-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/openexr-devel
