mattoverby / admm-elastic

ADMM ⊇ Projective Dynamics: Fast Simulation of Hyperelastic Models with Dynamic Constraints
Other
87 stars 20 forks source link

Error in running make -j ./samples/sca2016/beams #11

Closed dragonsan17 closed 3 years ago

dragonsan17 commented 3 years ago

Hi. I followed the instructions for compiling and running. I generated the build files with cmake and downloaded the dependences into deps folder. When I run the example, as given in the readme, I get the following error.

$ make -j ./samples/sca2016/beams g++ samples/sca2016/beams.cpp -o samples/sca2016/beams samples/sca2016/beams.cpp:22:10: fatal error: Application.hpp: No such file or directory 22 | #include "Application.hpp" | ^~~~~ compilation terminated. make: *** [: samples/sca2016/beams] Error 1

mattoverby commented 3 years ago

I think you skipped some steps

cd build cmake .. make -j ./samples/sca2016/beams

And also

make -j ./samples/sca2016/beams

Should be two commands executed from the build directory

I can reproduce your error if I just call "make -j ./samples/sca2016/beams" from the root directory, which is not the right way to build the code.