Hi!
I suggest this be added to installation instructions on the wiki. Took a couple of days to get it all right, so this could save a lot of people a lot of time.
Download the linux tar.gz for stencyl and unpack it with tar -xzf <pkgname>
Here is a collection of packages to install. I recommend using yaourt for it.
On a 64-bit system, install the 32-bit packages from multilb (and from AUR):
yaourt -S lib32-gcc-libs lib32-gc lib32-libxext lib32-libxtst lib32-libxi lib32-ncurses lib32-libxt lib32-libxpm lib32-libxmu lib32-libxp lib32-gtk2 lib32-atk lib32-glibc lib32-cairo lib32-expat lib32-fontconfig lib32-freetype2 lib32-glib2 lib32-libice lib32-pango lib32-libpng lib32-libsm lib32-libx11 lib32-libxau lib32-libxcursor lib32-libxdmcp lib32-libxfixes lib32-libxinerama lib32-libxrandr lib32-libxrender lib32-zlib lib32-nss lib32-nspr lib32-curl lib32-alsa-lib
On a 32-bit system, you don't need to add the lib32- part. So if you're on a 32-bit installation, do:
yaourt -S gcc-libs gc libxext libxtst libxi ncurses libxt libxpm libxmu libxp gtk2 atk glibc cairo expat fontconfig freetype2 glib2 libice pango libpng libsm libx11 libxau libxcursor libxdmcp libxfixes libxinerama libxrandr libxrender zlib nss nspr curl alsa-lib
Stencyl uses java 6 as of May 13th 2014. Arch does not officially support java 6, so you need to also get the jre6-compat pkg from AUR, this will get you a java6 environment in /opt/. To use it, have a script as such:
#!/bin/bash
export JAVA_HOME="/opt/java6/jre/"
PATH=${JAVA_HOME}/bin:$PATH
$*
Let's say you name it jre6wrap.sh. Don't forget to 'chmod +x jre6wrap.sh' after pasting it in. This script will be used to run stencyl like so:
jre6wrap.sh java -Xms64m -Xmx1024m -Djava.library.path=./lib -Djava.library.path=./lib -Dswing.defaultlaf=javax.swing.plaf.metal.MetalLookAndFeel -jar ./sw.jar
For me, libpcre.so.3 was not found. This could possibly happen with other libraries. The error message showed up when trying to run a game in native (linux) mode. I used whereis libpcre.so
and then used the path returned as first argument in sudo ln -s /usr/lib/libpcre.so.1 /usr/lib/libpcre.so.3
This solved the problem for me.