aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Skoland <davidskoland@gmail.com>2018-12-26 17:31:43 +0100
committerDavid Skoland <davidskoland@gmail.com>2018-12-26 17:31:43 +0100
commit1f754776b43d7ae8f317d480b6366d8b8f0ce2d0 (patch)
treece56276bf9690d7b773b4071826e74469796f2f5
parent45eae604451d2a05e13e9cdb163319c4a0dab7aa (diff)
finished ubuntu build script and made default plugin mode dynamic linking
-rwxr-xr-xscripts/configure_ubuntu.sh12
-rw-r--r--src/main.cpp1
2 files changed, 11 insertions, 2 deletions
diff --git a/scripts/configure_ubuntu.sh b/scripts/configure_ubuntu.sh
index a85f09bd..5e587ad5 100755
--- a/scripts/configure_ubuntu.sh
+++ b/scripts/configure_ubuntu.sh
@@ -22,6 +22,16 @@ unzip discord_rpc_linux.zip
cp discord-rpc/linux-dynamic/lib/libdiscord-rpc.so ../../lib/
+#get libqtapng plugin prebuilt
+curl -L https://github.com/Skycoder42/QtApng/releases/download/1.1.0-5/build_gcc_64_5.12.0.tar.xz -o apng.tar.xz
+
+tar -xvf apng.tar.xz
+
+cp gcc_64/plugins/imageformats/libqapng.so ../../lib
+
cd ..
-rm -rf tmp/
+rm -rf tmp
+
+#during runtime, the program expects the libraries to exist in the root folder
+cp ../lib/* ..
diff --git a/src/main.cpp b/src/main.cpp
index cf51b0af..80ea93bb 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -7,7 +7,6 @@
#include "courtroom.h"
#include <QPluginLoader>
#include <QDebug>
-Q_IMPORT_PLUGIN(ApngImagePlugin);
int main(int argc, char *argv[])
{
#if QT_VERSION > QT_VERSION_CHECK(5, 6, 0)