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

Instructions to build DICE #2

Open
fbob opened this issue Apr 20, 2015 · 5 comments
Open

Instructions to build DICE #2

fbob opened this issue Apr 20, 2015 · 5 comments
Assignees

Comments

@fbob
Copy link

fbob commented Apr 20, 2015

First of all thanks for sharing DICE source code !

I'm having issues to build DICE, I may be wrong but I found no instruction that explain how to build it.
How can I start ?

Thanks a lot and best wishes for your project :)

@rostikL rostikL self-assigned this Apr 20, 2015
@rostikL
Copy link
Member

rostikL commented Apr 21, 2015

Thanks!

Instructions can now be found in INSTALL.md.
It is also possible to download the current release and use the included thirdparty folder before executing qmake and make. This way there is no need to build qt, python and vtk from source. (only tested on ubuntu 14.10)

This issue should stay open until we are sure that everything works out.

@vehsakul
Copy link

vehsakul commented Oct 1, 2015

Hello!
Build fails because it definitly requires MPI. I tried to remove -DVTK_Group_MPI=ON from build_vtk.sh but then dice build fails with link errors. Can I build dice without MPI?

@rostikL
Copy link
Member

rostikL commented Oct 1, 2015

Hi @vehsakul,

It seems to be an issue with VTK compilation. I am pretty sure that removing "-DVTK_Group_MPI=ON" will not work, because camake needs this parameter. So you can just try: "-DVTK_Group_MPI=OFF".

Anyway, It would be great if you could give some information about your system. What distribution do you use? Have you already installed OpenFOAM (which already has mpi) and what exactly is the error message?

Thanks

@vehsakul
Copy link

vehsakul commented Oct 1, 2015

-DVTK_Group_MPI=OFF is probably the default, so VTK compiles.
The errors are:
/usr/bin/ld: cannot find -lvtkParallelMPI-6.2
/usr/bin/ld: cannot find -lvtkFiltersParallelGeometry-6.2
/usr/bin/ld: cannot find -lvtkFiltersParallelMPI-6.2
/usr/bin/ld: cannot find -lvtkIOMPIImage-6.2
/usr/bin/ld: cannot find -lvtkIOMPIParallel-6.2
/usr/bin/ld: cannot find -lvtkIOParallelNetCDF-6.2
The system is Ubuntu 14.04

Well, I have not installed OpenFOAM since it's not explicitly mentioned, besides pyfoam.
Maybe it then worth to add it to the dependency list?
I just wanted to build dice as quickly as possible to see what it's like. The compilation even without OpenFOAM takes quite long. It doesn't seem that VTK cannot work without MPI.

@rostikL
Copy link
Member

rostikL commented Oct 2, 2015

It's really difficult to say because it should look for the vtk-lib-files in your dice/thirdparty folder and not in /usr/bin. Have you created the thirdparty folder? Did you try to use the one from the latest release?

OpenFOAM is not needed, but some of the applications are only working if you have OpenFOAM installed. So it's only a dependency for some applications.

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

3 participants