initial linux launch script

This commit is contained in:
Dagen Brock 2017-01-15 20:11:06 -06:00
parent 7c01952bd6
commit ca7d8269a9
3 changed files with 23 additions and 3 deletions

9
doc/README.LINUX Normal file
View File

@ -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

View File

@ -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

12
platform/linux/buckshot.sh Executable file
View File

@ -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 "$@"