From ca7d8269a9477009237e6a0daa287f88f1400dc2 Mon Sep 17 00:00:00 2001 From: Dagen Brock Date: Sun, 15 Jan 2017 20:11:06 -0600 Subject: [PATCH] initial linux launch script --- doc/README.LINUX | 9 +++++++++ make_dist_linux.sh | 5 ++--- platform/linux/buckshot.sh | 12 ++++++++++++ 3 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 doc/README.LINUX create mode 100755 platform/linux/buckshot.sh diff --git a/doc/README.LINUX b/doc/README.LINUX new file mode 100644 index 0000000..634859e --- /dev/null +++ b/doc/README.LINUX @@ -0,0 +1,9 @@ +The conversion tool requires 32 bit libraries for b2d to function. + +If you can load images, but can't see any preview, your system probably doesn't have these installed, but it's easy to remedy. + +Just install libc6-i386 with the following command (Ubuntu): + + sudo apt-get install libc6-i386 + + diff --git a/make_dist_linux.sh b/make_dist_linux.sh index 1d15ef2..4f39d1f 100755 --- a/make_dist_linux.sh +++ b/make_dist_linux.sh @@ -2,19 +2,18 @@ BUILDDIR=~/buckshot-dist-linux LIBDIR=$BUILDDIR/lib -PLUGINDIR=$BUILDDIR/plugins PLATFORMDIR=$BUILDDIR/platforms rm -rf $BUILDDIR mkdir -p $BUILDDIR mkdir -p $LIBDIR -mkdir -p $PLUGINDIR mkdir -p $PLATFORMDIR cp build-buckshot-Desktop_Qt_5_7_0_GCC_64bit-Release/buckshot $BUILDDIR cp build-buckshot-Desktop_Qt_5_7_0_GCC_64bit-Release/b2d $BUILDDIR cp platform/linux/buckshot.sh $BUILDDIR +cp doc/README.LINUX $BUILDDIR # As reported by ldd cp /home/builder/Qt/5.7/gcc_64/lib/libicudata.so.56 $LIBDIR @@ -26,5 +25,5 @@ cp /home/builder/Qt/5.7/gcc_64/lib/libQt5Gui.so.5 $LIBDIR cp /home/builder/Qt/5.7/gcc_64/lib/libQt5Widgets.so.5 $LIBDIR cp /home/builder/Qt/5.7/gcc_64/lib/libQt5XcbQpa.so.5 $LIBDIR cp /home/builder/Qt/5.7/gcc_64/plugins/platforms/libqxcb.so $PLATFORMDIR -cp -r /home/builder/Qt/5.7/gcc_64/plugins/imageformats $PLUGINDIR +cp -r /home/builder/Qt/5.7/gcc_64/plugins/imageformats $BUILDDIR diff --git a/platform/linux/buckshot.sh b/platform/linux/buckshot.sh new file mode 100755 index 0000000..6c51ad2 --- /dev/null +++ b/platform/linux/buckshot.sh @@ -0,0 +1,12 @@ +#!/bin/sh +appname=`basename $0 | sed s,\.sh$,,` + +dirname=`dirname $0` +tmp="${dirname#?}" + +if [ "${dirname%$tmp}" != "/" ]; then +dirname=$PWD/$dirname +fi +LD_LIBRARY_PATH=$dirname/lib +export LD_LIBRARY_PATH +$dirname/$appname "$@"