mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-13 16:14:38 +00:00
41 lines
1004 B
Bash
41 lines
1004 B
Bash
#!/bin/bash
|
|
# this is a script shell sets up a MacOS environment where
|
|
# MeshLab can be compiled.
|
|
#
|
|
# Run this script if you never installed any of the MeshLab dependencies.
|
|
#
|
|
# Requires: homebrew
|
|
|
|
DONT_INSTALL_QT=false
|
|
|
|
#checking for parameters
|
|
for i in "$@"
|
|
do
|
|
case $i in
|
|
--dont_install_qt)
|
|
DONT_INSTALL_QT=true
|
|
shift # past argument=value
|
|
;;
|
|
*)
|
|
# unknown option
|
|
;;
|
|
esac
|
|
done
|
|
|
|
brew install coreutils node cmake ninja libomp cgal xerces-c
|
|
npm install -g appdmg
|
|
|
|
if [ "$DONT_INSTALL_QT" = false ] ; then
|
|
echo "=== installing qt packages..."
|
|
|
|
brew install qt
|
|
|
|
echo "export QTDIR=/usr/local/opt/qt" >> ~/.bash_profile
|
|
echo "export PATH=$QTDIR/bin:$PATH" >> ~/.bash_profile
|
|
echo "export LD_LIBRARY_PATH=/usr/local/opt/qt/lib:$LD_LIBRARY_PATH" >> ~/.bash_profile
|
|
echo "export PKG_CONFIG_PATH=/usr/local/opt/qt/lib:$PKG_CONFIG_PATH" >> ~/.bash_profile
|
|
. ~/.bash_profile
|
|
else
|
|
echo "=== jumping installation of qt packages..."
|
|
fi
|