Re: [HTCondor-devel] Problems building htcondor on Windows


Date: Tue, 22 Dec 2015 14:23:03 -0600
From: Todd Tannenbaum <tannenba@xxxxxxxxxxx>
Subject: Re: [HTCondor-devel] Problems building htcondor on Windows
On 12/22/2015 9:29 AM, Rowe, Thomas wrote:

Can anyone report building HtCondor from scratch on Windows with
CMake and Visual Studio without error? Is there something obvious I'm
missing? How exactly is the build system that produces the Windows
installer set up?

I build HTCondor on my Windows laptop all the time. FWIW, my laptop is Windows 7 and I have Visual Studio 2008 Professional installed (yes, I need to upgrade soon).

I pretty much followed the VS2008 build instructions here:

https://htcondor-wiki.cs.wisc.edu/index.cgi/wiki?p=BuildingHtcondorOnWindowsVsNine

I use CMake 2.8.6. You will note that the wiki says to NOT use cmake 3.x, since cmake 3.x broke compatibility with cmake 2.x. I think some of the problems you are encountering could be because you are using an incompatible CMake version.

I almost always just do the "default" cmake build on Windows, i.e. I do not bother with customizing the cmake options. I think the default is to not build the regression test programs.

I definitely did the "optional" step #5 on the above wiki page of setting the CONDOR_BLD_EXTERNAL_STAGE environment variable, which prevents having to rebuild things like boost and over and over. Set this environment variable and re-run CMake, then do a build. All the downloaded source and compiled object files should then live inside auto-generated subdirectories in your CONDOR_BLD_EXTERNAL_STAGE folder. Now re-run CMake again so it notices everything is pre-staged (and precompiled), and you should be able to build quickly while offline (iirc I have built HTCondor on Windows while on an airplane).

Note for VS2012 you prolly wanna follow the instructions here:
https://htcondor-wiki.cs.wisc.edu/index.cgi/wiki?p=BuildingHtcondorOnWindows

Hope the above helps
Todd
[← Prev in Thread] Current Thread [Next in Thread→]