From: Kevin M. Rosenberg Date: Mon, 12 Feb 2018 18:05:53 +0000 (-0700) Subject: Rename build command X-Git-Url: http://git.kpe.io/?p=snark14.git;a=commitdiff_plain;h=29c94e17ba096d9064f8783c41ace5d7005e5e85;ds=sidebyside Rename build command --- diff --git a/build-debian.sh b/build-debian.sh new file mode 100755 index 0000000..0b6950e --- /dev/null +++ b/build-debian.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +echo "SNARK14m Debian/Ubuntu build" +echo "Kevin Rosenberg " + +echo "Install required packages" +sudo apt install build-essential libxerces-c-dev wget + +echo "Download and patch QT3" +wget https://download.qt.io/archive/qt/3/qt-x11-free-3.3.8b.tar.gz +tar xzf qt-x11-free-3.3.8b.tar.gz +cd qt-x11-free-3.3.8b + +# Add missing '#include ' to files using ptrdiff_h +cd include +for i in `grep -l ptrdiff_t *.h`; do + echo "#include " > tmp + cat $i >> tmp + mv tmp $i +done +cd .. + +echo "Build QT3" +echo "yes" | ./configure && make +cd .. + +echo "Make shared libraries findable" +sudo mv qt-x11-free-3.3.8b /usr/local/qt3 +echo "/usr/local/qt3/lib" > qt3.conf +sudo mv qt3.conf /etc/ld.so.conf.d/. +sudo ldconfig + + diff --git a/install-debian.sh b/install-debian.sh deleted file mode 100755 index 0b6950e..0000000 --- a/install-debian.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash - -echo "SNARK14m Debian/Ubuntu build" -echo "Kevin Rosenberg " - -echo "Install required packages" -sudo apt install build-essential libxerces-c-dev wget - -echo "Download and patch QT3" -wget https://download.qt.io/archive/qt/3/qt-x11-free-3.3.8b.tar.gz -tar xzf qt-x11-free-3.3.8b.tar.gz -cd qt-x11-free-3.3.8b - -# Add missing '#include ' to files using ptrdiff_h -cd include -for i in `grep -l ptrdiff_t *.h`; do - echo "#include " > tmp - cat $i >> tmp - mv tmp $i -done -cd .. - -echo "Build QT3" -echo "yes" | ./configure && make -cd .. - -echo "Make shared libraries findable" -sudo mv qt-x11-free-3.3.8b /usr/local/qt3 -echo "/usr/local/qt3/lib" > qt3.conf -sudo mv qt3.conf /etc/ld.so.conf.d/. -sudo ldconfig - -