Scratch runs on pcDuino

Sratch is a programming language for everyone. Create interactive stories, games, music and art – and share them online.  We got scratch running on pcDuino!

 

scratch1

 

We can install squeak-vm by doing “sudo apt-get install squeak”. However, if we do that, we end up with squeak-vm 4.7, which doesn’t support Scratch. So we need to download squeak-vm 4.0 source file ball, and compile it for pcDuino.

The following are the installation steps:

1. Install the necessary packages to compile squeak-vm 4.0.

$sudo apt-get update    
$sudo apt-get install cmake libglu1-mesa-dev libasound2-dev libpulse-dev  uuid-dev libffi-dev libogg-dev libvorbis-dev libspeex-dev         libfreetype6-dev libpango1.0-dev libxml2-dev libgstreamer0.10-dev 
$sudo apt-get install build-essential pkg-config
$sudo apt-get install libglib2.0-dev libpango1.0-dev libcairo2-dev libv4l-dev
$ sudo apt-get install libgtk2.0-bin

$sudo apt-get cmake

2. Download squeak-vm 4.0 source files ball.

$ sudo wget http://s3.amazonaws.com/pcduino/packages/Squeak-4.0.2.2181-src.tar.gz
$ tar -xzvf Squeak-4.0.2.2181-src.tar.gz

3. To build Squeak-vm, we can enter into the directory, and create a bld directory, configure squeak, build squeak and install squeak.

$ cd Squeak-4.0.2.2181-src
$ mkdir bld
$ cd bld
$ ../unix/cmake/configure
$ sudo make
$ sudo make install
$ sudo cp -f -r /usr/local/lib/squeak /usr/lib/squeak

4. Get the scratch source file ball, and compile it:

$ sudo wget https://s3.amazonaws.com/pcduino/packages/scratch-1.4.0.1.tar.gz
$ tar -zxvf scratch-1.4.0.1.tar.gz
$ make -C scratch/
$ sudo wget http://s3.amazonaws.com/pcduino/packages/scrtch_install.sh
$ sudo bash scrtch_install.sh scratch/

5. After the scatch installation is done, we can run scratch by navigating Menu=>Programming->Scratch.

 

scratch

 

Posted in News, Scratch, Tutorials, ubuntu
Loading Facebook Comments ...
One comment on “Scratch runs on pcDuino
  1. Tom says:

    There is an easier way to get Scratch. Just add backposts to the respoitory list and Scratch shows up on the manager list. Then just install it.

Leave a Reply