Skip to content

Instantly share code, notes, and snippets.

@Mahedi-61
Last active August 15, 2019 06:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mahedi-61/3207d740dc452d0d8d53b3d52b676816 to your computer and use it in GitHub Desktop.
Save Mahedi-61/3207d740dc452d0d8d53b3d52b676816 to your computer and use it in GitHub Desktop.
installing openpose at CentOS 7 server machine
#!/bin/bash
# Openpose required CMake version >= 3.12
# remove previous verison
sudo yum remove cmake
# set new version
version=3.14
build=6
# download and install
mkdir ~/temp
cd ~/temp
wget https://cmake.org/files/v$version/cmake-$version.$build.tar.gz
tar -xzvf cmake-$version.$build.tar.gz
cd cmake-$version.$build/
# install cmake
sudo ./bootstrap
sudo make -j4
sudo make install
# The first step is to clone the OpenPose repository.
git clone https://github.com/CMU-Perceptual-Computing-Lab/openpose
# CMake Command Line Configuration
cd openpose
mkdir build
cd build
# You need to install python, pip and other ML packages (see my other gist)
# You need to install opencv install from source (see my other gist)
# You need to install caffe install (see my other gist)
# cmake
cmake -DOpenCV_CONFIG_FILE=/usr/local/share/OpenCV/OpenCVConfig.cmake \
-DCaffe_INCLUDE_DIRS=/home/user1/software/caffe/distribute/include \
-DCaffe_LIBS=/home/user1/software/caffe/build/lib/libcaffe.so -DBUILD_CAFFE=OFF ..
# Finally, build the project by running the following commands.
make -j`nproc`
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment