From 35151807385e32f4b21a21a642fca362e8a89f49 Mon Sep 17 00:00:00 2001 From: Jaquee Date: Tue, 20 Dec 2016 16:44:01 +0100 Subject: [PATCH 1/2] linux deploy scripts --- linuxdeploy_helper.sh | 28 ++++++++++++++++++++++++++++ monero-wallet-gui.pro | 4 ++++ 2 files changed, 32 insertions(+) create mode 100755 linuxdeploy_helper.sh diff --git a/linuxdeploy_helper.sh b/linuxdeploy_helper.sh new file mode 100755 index 00000000..21bc5b8a --- /dev/null +++ b/linuxdeploy_helper.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +source $ROOT_DIR/utils.sh + +TARGET=$1 + +GUI_EXEC=$2 + +platform=$(get_platform) + +# Copy dependencies +EXCLUDE='libstdc++|libgcc_s.so|libc.so|libpthread' +cp -rv /usr/lib/x86_64-linux-gnu/qt5/qml $TARGET +cp -rv /usr/lib/x86_64-linux-gnu/qt5/plugins $TARGET +mkdir -p $TARGET/libs +ldd $TARGET/$GUI_EXEC | grep "=> /" | awk '{print $3}' | grep -Ev $EXCLUDE | xargs -I '{}' cp -v '{}' $TARGET/libs +ldd $TARGET/plugins/platforms/libqxcb.so| grep "=> /" | awk '{print $3}' | grep -Ev $EXCLUDE | xargs -I '{}' cp -v '{}' $TARGET/libs +cp -v /usr/lib/x86_64-linux-gnu/libQt5XmlPatterns.so.5 $TARGET/libs + +# Create start script +cat > $TARGET/start-gui.sh < Date: Tue, 20 Dec 2016 18:04:15 +0100 Subject: [PATCH 2/2] linux: build with static boost --- monero-wallet-gui.pro | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/monero-wallet-gui.pro b/monero-wallet-gui.pro index d37ed528..4baf1716 100644 --- a/monero-wallet-gui.pro +++ b/monero-wallet-gui.pro @@ -129,9 +129,7 @@ win32 { } linux { - CONFIG(static) { - LIBS+= -Wl,-Bstatic - } + LIBS+= -Wl,-Bstatic LIBS+= \ -lboost_serialization \ -lboost_thread \