Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation under ubuntu 18.04 or 20.04 #275

Closed
dubois34 opened this issue Nov 17, 2020 · 5 comments
Closed

compilation under ubuntu 18.04 or 20.04 #275

dubois34 opened this issue Nov 17, 2020 · 5 comments

Comments

@dubois34
Copy link

Hi there,
I'am trying to compile OpenStudioApplication and it doesn't work.

Here is my problem:

Building CXX object src/openstudio_lib/CMakeFiles/openstudio_lib.dir/PlanarSurfaceWidget.cpp.o
/home/dubois/WORK/CODES/OpenStudioApplication/OpenStudioApplication/src/openstudio_lib/OSDocument.cpp: In constructor ‘openstudio::OSDocument::OSDocument(const openstudio::model::Model&, const path&, openstudio::model::OptionalModel, QString, bool, int, int)’:
/home/dubois/WORK/CODES/OpenStudioApplication/OpenStudioApplication/src/openstudio_lib/OSDocument.cpp:153:26: error: variable ‘QTextStream styleIn’ has initializer but incomplete type
153 | QTextStream styleIn(&data);
| ^
make[2]: *** [src/openstudio_lib/CMakeFiles/openstudio_lib.dir/build.make:2710 : src/openstudio_lib/CMakeFiles/openstudio_lib.dir/OSDocument.cpp.o] Erreur 1
make[2]: *** Attente des tâches non terminées....
make[1]: *** [CMakeFiles/Makefile2:369 : src/openstudio_lib/CMakeFiles/openstudio_lib.dir/all] Erreur 2
make: *** [Makefile:152 : all] Erreur 2

I tried to compile either on Ubuntu 18.04 LTS or Ubuntu 20.04 LTS (my CmakeCache.txt is attached).
By the way I had to compile part of QT5 (qtbase, qtquickcontrols2 and qtwebengine) since I didn't succeed to cmake with ubuntu packages.

Can you tell me if it exists somewhere instructions to compile the code (like prerequisites, cmake options etc)

Regards

CMakeCache.txt

@macumber
Copy link
Collaborator

Hi @dubois34, our documentation on how to build the OpenStudioApplication is at:

https://github.com/openstudiocoalition/OpenStudioApplication/wiki/Configuring-OpenStudio-Application-Build-Environments

This might be slightly out of date. The code to build OpenStudioApplication by CI is at:

https://github.com/openstudiocoalition/OpenStudioApplication/blob/develop/.github/workflows/app_build.yml

This code configures the environment and builds OpenStudioApplication from a base image so it is a good guide if you can follow it. It appears that (aqtinstall)[https://github.com/miurahr/aqtinstall] is used to install Qt on Linux:

https://github.com/openstudiocoalition/OpenStudioApplication/blob/develop/.github/workflows/app_build.yml#L396

@dubois34
Copy link
Author

dubois34 commented Nov 19, 2020 via email

@macumber
Copy link
Collaborator

Yes, there are some additional steps which stage the binaries to run in the installer. As far as testing the Application, I would suggest working through some of the tutorials:

https://openstudiocoalition.org/getting_started/getting_started/
https://www.youtube.com/channel/UC8ZEW4PXKOsveko55XCJTUA

The fastest way to get a running model is to run one of the model articulation measures:

https://github.com/NREL/openstudio-model-articulation-gem/tree/develop/lib/measures/create_DOE_prototype_building

@macumber
Copy link
Collaborator

Ok to close this @dubois34 ?

@dubois34
Copy link
Author

dubois34 commented Nov 24, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants