Recompile Haustein Source code

Asked by Mithushan Soundaranathan on 2021-03-30

Hi,

I am trying recompile YADE from the trunk-master given in: "https://github.com/ElsevierSoftwareX/SOFTX-D-16-00098 ", which are from the paper Discrete element modeling of deformable particles in YADE.

I am getting error message saying:

-- The imported target "vtkHashSource" references the file
   "/usr/bin/vtkHashSource-6.3"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-6.3/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkParseOGLExt" references the file
   "/usr/bin/vtkParseOGLExt-6.3"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-6.3/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkEncodeString" references the file
   "/usr/bin/vtkEncodeString-6.3"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-6.3/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkGUISupportQt" references the file
   "/usr/lib/x86_64-linux-gnu/libvtkGUISupportQt-6.3.so.6.3.0"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-6.3/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkGUISupportQtOpenGL" references the file
   "/usr/lib/x86_64-linux-gnu/libvtkGUISupportQtOpenGL-6.3.so.6.3.0"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-6.3/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkGUISupportQtSQL" references the file
   "/usr/lib/x86_64-linux-gnu/libvtkGUISupportQtSQL-6.3.so.6.3.0"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-6.3/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkViewsQt" references the file
   "/usr/lib/x86_64-linux-gnu/libvtkViewsQt-6.3.so.6.3.0"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-6.3/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkGUISupportQtWebkit" references the file
   "/usr/lib/x86_64-linux-gnu/libvtkGUISupportQtWebkit-6.3.so.6.3.0"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-6.3/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkRenderingQt" references the file
   "/usr/lib/x86_64-linux-gnu/libvtkRenderingQt-6.3.so.6.3.0"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-6.3/VTKTargets.cmake"
but not all the files it references.

I have installed VTK on my computer, but not sure If I did properly. Have anyone experienced similar problems or know how to solve it, it would be really helpful for me.

best regards,
Mithushan

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
2021-03-30
Last reply:
2021-03-30

Hi,
Since the code you link is not maintained it is expected that the build procedure will fail with newer systems at some point in time ().
Did you check if the feature was/not in latest versions before compiling that one?
Bruno

Hi Bruno,

Thank you for your reply.

I tried it again, but only changed only modified files, which are given in: (https://github.com/ElsevierSoftwareX/SOFTX-D-16-00098/commit/2d1adf852b4933b3c804b2ea81c13f9d5cf862d7?branch=2d1adf852b4933b3c804b2ea81c13f9d5cf862d7&diff=unified )

I am getting new error message:

"Could not find a package configuration file provided by "Loki" with any of
  the following names:

    LokiConfig.cmake
    loki-config.cmake

  Add the installation prefix of "Loki" to CMAKE_PREFIX_PATH or set
  "Loki_DIR" to a directory containing one of the above files. If "Loki"
  provides a separate development package or SDK, be sure it has been
  installed.
"

Best regards,
MIthushan

Sorry forgot in the previous comment, I have installed Loki-lib on my computer

> Did you check if the feature was/not in latest versions before compiling that one?

Sorry, I did not understand your question. I simply copy and pasted in the modified files into the current trunk-master and compiled with copied in files.

I replaced CMakelist.txt, State.hpp, LOedeometric.py, Oedeometric.py, LudingPM.cpp, LudingPM.hpp, VTKRecorder.cpp, ViscoelasticPM.cpp, ViscoelasticPM.hpp in the current Trunk with one in https://github.com/ElsevierSoftwareX/SOFTX-D-16-00098/commit/2d1adf852b4933b3c804b2ea81c13f9d5cf862d7?branch=2d1adf852b4933b3c804b2ea81c13f9d5cf862d7&diff=unified

Chareyre (bruno-chareyre-9) said : #7

A living yade branch is here: https://gitlab.com/yade-dev/trunk
And the documentation is here: https://yade-dem.org/doc/installation.html

You did not explain the need to compile some unmaintained sources
available through that journal, so I'm guessing you better use a more
recent version of the software to avoid trouble.

Bruno

Hi Bruno,

I have already installed current version on my computer.

I want install the unmaintained sources, since the Luding contact model explained in that source includes a new particle deformation algorithm suitable for particle compaction, which is useful for my simulation

So you confirm that the SoftwareX version as a feature that yade/trunk doesn't have? I didn't expect.
In that case you should ultimately contact the authors of the paper.
With yade, best solution would be to insert the missing code in current sources, since what you are going through are installation issues which do not exist in the maintained branch.

Hi Bruno,

Thank you very much. Have do I insert missing code in current version. Is it like, for example for the LudingPM.cpp file in current version (trunk_master) I need to add missing code from the Software version into the current LudingPM.cpp code?

You could try and reproduce Haustein's changes as shown in their repository. See [1] (first one in the list).
What you want is to re-apply on current source code.
If you succeed please let us know and let's integrate Haustein et al. it in yade trunk. Else it leads to the kind of problems you face now.
Bruno

[1] https://github.com/ElsevierSoftwareX/SOFTX-D-16-00098/commits/master

Anton Gladky (gladky-anton) said : #12

As far as I remember we integrated the complete code into the Yade main branch [1].
Just try, by enabling YADE_DEFORM feature.

[1] https://gitlab.com/yade-dev/trunk/-/tree/master/examples/DeformEngine

Hi Bruno,

Thank you very much, that means that I don't need to modify the source code (Luding contact) to replicate the model and work from Haustein.

I guess you wanted to thank Anton. Let us know if current source trunk code is not working.
B

Can you help with this problem?

Provide an answer of your own, or ask Mithushan Soundaranathan for more information if necessary.

To post a message you must log in.