Thanks Nick. We'll make a try and see how is the situation, then update on the mailing list.

Thierry

Le 02/10/2013 11:51, Nick Ager a écrit :
Hi,

I managed to compile a StackVM on the raspberry Pi - a couple of months
ago - though I haven't tried with the latest StackVM source. I meant to
write it up, but life got in the way I'm afraid.

The procedure I took was:
* From a PC running Pharo install VMMaker packages (I found it was
easiest to run under a Linux (eg Ubuntu) to match the PIs OS.
* Export the StackVM source
* Install the build tools on the raspberry Pi
* Copy exported StackVM source (need to ensure it is copied to exactly
the same place, eg /home/nick/build)
* Build and test with Pharo2.0.image

I choose to build on the Raspberry Pi as in my experience setting up a
reliable cross-compiling environment can take days.

Here are some notes I made at the time:

On the raspberry PI:
# install build tools
sudo apt-get install gcc g++ cmake

# dependencies for vm plugins
sudo apt-get install libasound2-dev libssl-dev libfreetype6-dev
libgl1-mesa-dev

sudo apt-get install build-essential

# to fix:
# /usr/bin/ld: cannot find -lSM
#/usr/bin/ld: cannot find -lICE
# create the following links in: /usr/lib/arm-linux-gnueabihf/

sudo ln -s libSM.so.6 libSM.so
sudo ln -s libICE.so.6 libICE.so

Once the source is installed:

chmod +x platforms/unix/config/version
chmod +x platforms/unix/config/verstamp

At the time I had to patch a couple of files, but that might have
changed with later versions of the StackVM source. My notes say I
modified the following, though don't indicate what I changed:

platforms/Cross/vm/sqAtomicOps.h
platforms/unix/vm/sqUnixITimerHeartbeat.c
platforms/unix/vm/vmVersionInfo.h
src/vm/gcc3x-interp.c


Hope this helps

Nick


On 2 October 2013 10:31, Goubier Thierry <[email protected]
<mailto:[email protected]>> wrote:

    Ok, thanks for the info, Sven.

    Thierry

    Le 02/10/2013 11:06, Sven Van Caekenberghe a écrit :

        Thierry,

        On 02 Oct 2013, at 10:14, Goubier Thierry
        <[email protected] <mailto:[email protected]>> wrote:

            Hi all,

            I'm trying to know if it is possible to run a version of
            pharo, recent if possible, on the Raspberry Pi?

            I know that there is a squeak vm on Raspian (Debian for the
            RaspberryPi) but it doesn't load recent pharo images.


        Using the VM that comes with Raspbian, you can run Pharo 1.4.
        Pharo 2.0 requires additional VM support.

        Sven

            Thanks,

            Thierry
            --
            Thierry Goubier
            CEA list
            Laboratoire des Fondations des Systèmes Temps Réel Embarqués
            91191 Gif sur Yvette Cedex
            France
            Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95






    --
    Thierry Goubier
    CEA list
    Laboratoire des Fondations des Systèmes Temps Réel Embarqués
    91191 Gif sur Yvette Cedex
    France
    Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95



--
Thierry Goubier
CEA list
Laboratoire des Fondations des Systèmes Temps Réel Embarqués
91191 Gif sur Yvette Cedex
France
Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95

Reply via email to