ipc-sim / IPC

Incremental Potential Contact (IPC) is for robust and accurate time stepping of nonlinear elastodynamics. IPC guarantees intersection- and inversion-free trajectories regardless of materials, time-step sizes, velocities, or deformation severity.
https://ipc-sim.github.io/
MIT License
572 stars 73 forks source link

compile issues in Ubuntu #10

Closed cheshmi closed 4 years ago

cheshmi commented 4 years ago

I tried to install IPC on Ubuntu 16.04 and I got couple of compile errors. I fixed them and sent a PR. I changed some lines in src/CollisionObject/CollisionObject.h and src/CollisionObject/HalfSpace.cpp. Here is what I did to install the modified code: Pre-requisites (in addition to what the repo says):

Then you can use the following: mkdir build cd build cmake -DCMAKE_CXX_COMPILER=g++-7 -DCMAKE_CC_COMPILER=gcc-7 -DCMAKE_PREFIX_PATH=/home/kazem/programs/SuiteSparse/ -DCMAKE_BUILD_TYPE=Release .. make -j4

I could run the first tutorial.

liminchen commented 4 years ago

Thank you Kazem! This is helpful. I've updated readme and merged your pull request.