Skip to content

Commit

Permalink
Fix mraa-install.sh issue with pkgconfig.
Browse files Browse the repository at this point in the history
intel-iot-devkit#72

Signed-off-by: Flavian Manea <[email protected]>
  • Loading branch information
Flavian Manea committed Jun 29, 2017
1 parent 751f4fc commit 94e377a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions mraa-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,17 @@ if [ "$checkCmake" = "0" ]; then #Have to install Cmake
fi
echo "CMake already installed, preparing to build Mraa."
sleep 1
#Remove previous version of Mraa
rm /usr/lib/libmraa.so*
rm /usr/lib/pkgconfig/mraa.pc
#Add new mraa version
git clone https://github.com/intel-iot-devkit/mraa.git
cd mraa
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr
cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_LIBDIR=lib
make
make install #Should install Mraa in /usr/lib64/
rm /usr/lib/libmraa.so* #Remove previous version of Mraa
mv /usr/lib64/libmraa.so* /usr/lib #Move NEW Mraa files to lib
mv /usr/lib64/pkgconfig/* /usr/lib/pkgconfig #Move package configuration info
rm -r /usr/lib64/

make install #Should install Mraa in /usr/lib/
#Cleanup
cd ../../../
rm -r buildMraa
Expand Down

0 comments on commit 94e377a

Please sign in to comment.