Stencyl 3.4.0 is now out. Get it now!

Installation on arch

innsmouthrain

  • Posts: 15
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):
Code: [Select]
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:
Code: [Select]
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:
Code: [Select]
#!/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:
Code: [Select]
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
Code: [Select]
whereis libpcre.so and then used the path returned as first argument in
Code: [Select]
sudo ln -s /usr/lib/libpcre.so.1 /usr/lib/libpcre.so.3 This solved the problem for me.

« Last Edit: May 15, 2014, 10:39:47 pm by innsmouthrain »

captaincomic

  • *
  • Posts: 6108
Thanks for writing that up. Jon linked this topic now in the installation instructions article. ;)

innsmouthrain

  • Posts: 15
Thanks :) Thanks, Jon!

I'll try to add more notes as I discover additional workarounds or possible problems.

ahtapot

  • Posts: 2
Hi thanks for your tutorial.

But somehow i am still getting invalid swf file name error when i try to  test the game. I followed step by step except i didnt manage to download to lib32-xfixes lib32-xcursor lib32-xtst lib32-xdmcp lib32-xi.  Instead of them I got lib32-libxfixes, lib32-libxcursor ...etc from multilib.

Appreciate any help

edit: I figured the for 64 bit I needed to downloaded  couple more libs.
Code: [Select]
yaourt -S lib32-gcc-libs lib32-gc lib32-libxext lib32-xtst lib32-xi 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-xcursor lib32-xdmcp lib32-xfixes lib32-libxinerama lib32-libxrandr lib32-libxrender lib32-zlib lib32-nss lib32-nspr lib32-curl lib32-alsa-lib

« Last Edit: May 15, 2014, 11:06:37 am by ahtapot »

innsmouthrain

  • Posts: 15
Thanks for the correction ahtapot! Must've mispasted.

What other libs did you need? I can't see any difference between your codeblock and mine.