3 echo "SNARK14m Debian/Ubuntu build"
4 echo "Kevin Rosenberg <kevin@rosenberg.net>"
6 echo "Install required packages"
8 echo "Download and patch QT3"
9 wget https://download.qt.io/archive/qt/3/qt-x11-free-3.3.8b.tar.gz
10 tar xzf qt-x11-free-3.3.8b.tar.gz
13 # Add missing '#include <stddef.h>' to files using ptrdiff_h
15 for i in `grep -l ptrdiff_t *.h`; do
16 echo "#include <stddef.h>" > tmp
23 echo "yes" | ./configure && make
26 echo "Make shared libraries findable"
27 sudo mv qt-x11-free-3.3.8b /usr/local/qt3
28 echo "/usr/local/qt3/lib" > qt3.conf
29 sudo mv qt3.conf /etc/ld.so.conf.d/.