Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
3

How to compile Energyplus in Ubuntu 14.04 after souce code modifying?

asked 2017-03-02 10:03:23 -0500

building_performance's avatar

updated 2017-04-20 13:44:00 -0500

i modified some part of the source code of EnergyPlus, and i need to recompile them. i am using Ubuntu 14.04. How to recompile them? what environment/libraries will be needed for recompiling? Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
4

answered 2017-03-02 10:32:58 -0500

The best place to find information on how to compile EnergyPlus is probably on the GitHub wiki for EnergyPlus on the page for BuildingEnergyPlus. There is also a link to this page on the bottom of the main EnergyPlus GitHub page.

edit flag offensive delete link more

Comments

thanks. what does this paragraph mean as below for compiling?

Navigate in the terminal to the root of the build tree. You will launch the cmake GUI from this location. The program must be passed an argument that specifies the location of the root of the source tree. For example, if the build directory is directly next to the source directory, the command could be called for the default build environment by calling the GUI as such: ccmake ../EnergyPlusTeam

I did not find a executable named: EnergyPlusTeam

building_performance's avatar building_performance  ( 2017-03-02 20:53:47 -0500 )edit

I think that is just the name of the directory that holds the source.

JasonGlazer's avatar JasonGlazer  ( 2017-03-03 08:29:13 -0500 )edit

Yes, it is the source directory. I've been doing Linux builds lately, so I'll try to clarify that paragraph a little.

Jason DeGraw's avatar Jason DeGraw  ( 2017-03-03 09:09:15 -0500 )edit

Thanks a lot. what does the mean of EnergyPlusTeam as in the sentence: "ccmake ../EnergyPlusTeam"? I did not find file name of EnergyPlusTeam.

building_performance's avatar building_performance  ( 2017-03-03 10:46:30 -0500 )edit

You should use the directory that contains your source. So use what ever name that you are using after the "ccmake". The "../EnergyPlusTeam" is just an example that uses an old name for the source code repository.

JasonGlazer's avatar JasonGlazer  ( 2017-03-03 11:29:04 -0500 )edit

I just updated those instructions to make it clear that, as Jason says, that is just an example of possible naming of the source tree. CMake needs to know where the source is and where you want to build, that's why this is necessary.

Jason DeGraw's avatar Jason DeGraw  ( 2017-03-03 11:56:15 -0500 )edit

@Jason DeGraw, thanks alot. I got some error during the ccmake . The error said: No GITHUB_TOKEN found in environment; package won't be complete. Call Stack(most recent call first): CMakeLists.txt:190(include). Do i need to use my own github account? or what else?

building_performance's avatar building_performance  ( 2017-03-03 12:28:58 -0500 )edit

@os_coder You're building the package, right? I know that happens when building the package, and I believe it only determines whether the changelog is included in the package. So I believe you can safely ignore it, and the packages I have built with that warning work fine. I'm going to see if we can make that message more accurate and less ominous sounding.

Jason DeGraw's avatar Jason DeGraw  ( 2017-03-03 13:06:53 -0500 )edit

@Jason DeGraw. Thanks. I am still one step close to success, when i do "make -j N package", i got several similar errors. How to fixs them? A snapshot is as below:

Run CPack packaging tool... ... ...... ...... +++ AutoDocs: completed processing example file links summary: processed 513 files. install_remote failed, trying again: https://raw.github.com/NREL/EnergyPlu... error CMake Error at ....../cmake_install.cmake:334 (message): install_remote failed, trying again: https://raw.github.com/NREL/EnergyPlu... error

building_performance's avatar building_performance  ( 2017-03-04 21:23:41 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Careers

Question Tools

1 follower

Stats

Asked: 2017-03-02 10:03:23 -0500

Seen: 288 times

Last updated: Mar 02 '17