-
Notifications
You must be signed in to change notification settings - Fork 2
Compiling EnergyPlus
Steps for compiling EnergyPlus (a text description of the build demo video):
1. Checkout NREL/EnergyPlusTeam via github
2. Install CMake 2.8.12.2+ (http://cmake.org/cmake/resources/software.html, usually Win32 installer)
3. Put directory location of source code
4. Put directory location of binaries (often source code directory + “/build”)
5. Configure button
6. Yes
7. Select compiler you’re using from dropdown (e.g. use default Visual Studio 12 if using Visual Studio Express 2013)
8. Finish button
9. Turn “Grouped” and “Advanced” options off if not already (to the right of search box on top panel)
a. BUILD_PACKAGE and BUILD_TESTING should not be selected usually (TESTING has other things for unit tests, integration tests, and nightly builds if you are working on those; Building RUN_TESTS will run all tests on the system)
b. Advanced allows you to see and change the CPP flags, but recommend not messing with these
10. Configure button (hopefully no red now)
11. Generate button
12. Go to build directory and you now have a project (Visual Studio solution) that you can open and make changes to code
a. ALL_BUILD is same as Build=>Build Solution (in MS Visual Studio)
b. ZERO_CHECK is a build rule that looks at cmake.lst to see if things have been modified, which will run cmake behind the scenes and regenerate the solution (EnergyPlus depends on this, but will be remade as a dependency)
13. Right-click EnergyPlus and select Build (builds all dependencies for everything that you need just for EnergyPlus)
a. IDE will run cmake behind the scenes and remake visual studio project anytime any source file has been change
b. Always select “Reload ALL” when that message comes up