summarylogtreecommitdiffstats
path: root/wxgtk_fix.sh
diff options
context:
space:
mode:
Diffstat (limited to 'wxgtk_fix.sh')
-rwxr-xr-xwxgtk_fix.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/wxgtk_fix.sh b/wxgtk_fix.sh
new file mode 100755
index 000000000000..d4bbc448d9ed
--- /dev/null
+++ b/wxgtk_fix.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+# Is root running this script?
+if [ "`id -u`" -ne 0 ]
+then
+ echo -e "\n\nRun this script as root!\n\n"
+ exit -1
+fi
+
+# reinstall wxgtk and extract libwx*3.1.so* files from wxgtk-dev packages into /usr/lib/
+pacman -S wxgtk-common wxgtk2 wxgtk3
+tar -xf /var/cache/pacman/pkg/wxgtk-common-dev* -C / --wildcards --no-anchored 'libwx*.so*'
+tar -xf /var/cache/pacman/pkg/wxgtk2-dev* -C / --wildcards --no-anchored 'libwx*.so*'
+tar -xf /var/cache/pacman/pkg/wxgtk3-dev* -C / --wildcards --no-anchored 'libwx*.so*' \ No newline at end of file