Last active
November 25, 2022 23:12
-
-
Save machinekoder/e4b9137710e23723ab7a to your computer and use it in GitHub Desktop.
Install QtQuickVcp on fresh Debian Wheezy
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
#!/bin/bash | |
sudo sh -c \ | |
"echo 'deb http://deb.dovetail-automata.com wheezy 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 dovetail-automata-keyring python-protobuf libprotobuf-dev protobuf-compiler libnotify-bin libczmq-dev python-zmq libzmq4-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/online_installers/ | grep "\<http:.*$HOST.*online.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