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

compile issues in Ubuntu #10

Closed
cheshmi opened this issue Oct 18, 2020 · 1 comment
Closed

compile issues in Ubuntu #10

cheshmi opened this issue Oct 18, 2020 · 1 comment

Comments

@cheshmi
Copy link
Contributor

cheshmi commented Oct 18, 2020

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):

  • GMP LIB: sudo apt install libgmp-dev
  • Also, you will need gcc 7 or later. I installed it like (sudo add-apt-repository ppa:jonathonf/gcc-7.1
    sudo apt-get update
    sudo apt-get install gcc-7 g++-7)

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
Copy link
Collaborator

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

@cheshmi cheshmi closed this as completed Oct 18, 2020
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

2 participants