-
-
Save the-snowwhite/1b9132a71770af20d382 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
# mod for Debian ( (Jessie) | |
#sudo sh -c \ | |
# "echo 'deb http://deb.dovetail-automata.com jessie main' > \ | |
# /etc/apt/sources.list.d/machinekit.list; \ | |
# apt-get update ; \ | |
# apt-get install dovetail-automata-keyring" | |
sudo apt-get update | |
sudo apt-get install -y build-essential gdb subversion dh-autoreconf libgl1-mesa-dev lynx pkg-config python-protobuf libprotobuf-dev protobuf-compiler libnotify-bin libczmq-dev python-zmq libzmq3-dev | |
mkdir -p ~/bin/Qt | |
CORES=`nproc` | |
# Install Qt SDK to ~/bin/Qt | |
ARCH=`uname -m` | |
if [ "$ARCH" == "x86_64" ]; then | |
HOST=linux-x64 | |
elif [ "$ARCH" == "i686" ]; then | |
HOST=linux-x86 | |
else | |
echo "unsupported CPU architecture" | |
exit 1 | |
fi | |
lynx -dump -listonly http://download.qt.io/official_releases/qt/5.4/5.4.1/ | grep "\<http:.*$HOST.android.*1.run\>" -oh | tail -n 1 | xargs wget | |
chmod +x qt*$HOST*run | |
notify-send "Install Qt SDK to ~/bin/Qt" | |
./qt*$HOST*run | |
rm qt*$HOST*run | |
#mkdir tmp | |
#cd tmp | |
#svn checkout http://protobuf.googlecode.com/svn/tags/2.5.0/ protobuf-read-only | |
#cd protobuf-read-only | |
#./autogen.sh | |
#./configure | |
#make | |
#sudo make install | |
#cd .. | |
#git clone https://github.com/zeromq/zeromq4-x.git | |
#cd zeromq4-x | |
#git checkout v4.0.5 | |
#./autogen.sh | |
#./configure --prefix=/usr # add other options here | |
#make | |
#make check | |
#sudo make install | |
# set QMAKE | |
QMAKE=~/bin/Qt/5.*/gcc*/bin/qmake | |
QT_INSTALL_PREFIX=~/bin/Qt/5.*/gcc* | |
cd ~/bin | |
# download and install QtQuickVcp | |
git clone https://github.com/strahlex/QtQuickVcp | |
mkdir -p build/QtQuickVcp | |
cd build/QtQuickVcp | |
$QMAKE ../../QtQuickVcp | |
make -j $CORES | |
make docs | |
make install | |
make install_docs | |
cd ~/bin | |
# download Qt Creator source | |
QTC=~/bin/Qt/Tools/QtCreator/bin/qtcreator | |
QTCVERSION=`$QTC -version 2>&1 >/dev/null | grep 'Qt Creator' | grep 'based on' | head -c 16 | tail -c 5` | |
QTCVERSION2=`echo $QTCVERSION | head -c 3` | |
wget https://download.qt.io/official_releases/qtcreator/$QTCVERSION2/$QTCVERSION/qt-creator-opensource-src-$QTCVERSION.tar.gz | |
tar xfz qt-creator*.tar.gz | |
rm qt-creator*.tar.gz | |
mv qt-creator*src* qt-creator | |
# download and build MachinekitSDK | |
git clone https://github.com/strahlex/MachinekitSDK | |
mkdir -p build/MachinekitSDK | |
cd build/MachinekitSDK | |
$QMAKE ../../MachinekitSDK | |
make -j $CORES | |
make install | |
notify-send "Enable Qbs and BBIOConfig plugins in Qt Creator and set up Machinekit target" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This script now runs successfully unmodified on a Debian 8 pc