-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #172 from ethz-adrl/fix/use_cmake_to_install_hpipm
Forward to hpipm version 0.1.3, use cmake to install blasfeo and hpipm.
- Loading branch information
Showing
2 changed files
with
49 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,30 @@ | ||
#!/bin/bash | ||
set -x #echo on | ||
|
||
## remove existing installation of blasfeo/hpipm | ||
rm -rf /opt/blasfeo | ||
rm -rf /opt/hpipm | ||
|
||
## get blasfeo | ||
echo "Now installing blasfeo, using a specific commit/tag (!)" | ||
cd /tmp | ||
rm -rf blasfeo/ | ||
git clone https://github.com/giaf/blasfeo.git | ||
cd /tmp/blasfeo | ||
git checkout cc90e14 # we currently are on this commit. | ||
make static_library | ||
sudo make install_static | ||
git checkout 0.1.2 | ||
mkdir -p build && cd build | ||
cmake .. | ||
make | ||
sudo make install | ||
|
||
## get hpipm | ||
echo "Now installing hpipm, using a specific commit/tag (!)" | ||
cd /tmp | ||
rm -rf hpipm/ | ||
git clone https://github.com/giaf/hpipm.git | ||
cd /tmp/hpipm | ||
git checkout 5d9909f # we currently are on this commit. | ||
make static_library | ||
make examples | ||
sudo make install_static | ||
git checkout 0.1.3 | ||
mkdir -p build && cd build | ||
cmake .. | ||
make | ||
sudo make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters