an error in compilation of a new model

Asked by behzad

Hi there,

I got the following error message when compiling yade trunk.

I downloaded the last trunk version then, I pcopied the brand new constitutive law model in yade/trunk/pkg/dem folder and then I wrote:

make

I got this and the problem goes to the files I copied there! How do we compile a new model or any new feature?

[ 62%] Building CXX object CMakeFiles/yade.dir/pkg/dem/BurgersContactLawNew.cpp.o
In file included from /home/bemaj3/trunk-master/pkg/dem/BurgersContactLawNew.cpp:1:0:
/home/bemaj3/trunk-master/pkg/dem/BurgersContactLawNew.hpp:5:42: fatal error: yade/core/InteractionSolver.hpp: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/yade.dir/pkg/dem/BurgersContactLawNew.cpp.o] Error 1
make[1]: *** [CMakeFiles/yade.dir/all] Error 2

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jan Stránský
Solved:
Last query:
Last reply:
Revision history for this message
Best Jan Stránský (honzik) said :
#1

Hi Behzad,

the model is compiled in the way you do it.

> /home/bemaj3/trunk-master/pkg/dem/BurgersContactLawNew.hpp:5:42: fatal
> error: yade/core/InteractionSolver.hpp: No such file or directory
>
>
probably it comes from 5th line of BurgersContactLawNew.hpp file (as the
error message says). Do you have there this line?
#include <yade/core/InteractionSolver.hpp>

if so, why did you put it there? Indeed, again as the error message says,
there is no such file or directory yade/core/InteractionSolver.hpp

cheers
Jan

Revision history for this message
behzad (behzad-majidi) said :
#2

Thanks Jan Stránský, that solved my question.