[vc_row][vc_column width=”1/1″][vc_column_text]Sratch (http://scratch.mit.edu/) is a programming language for everyone. Create interactive stories, games, music and art – and share them online.
Install scratch on pcDuino
Scratch depends on squeak-vm. 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.[/vc_column_text][/vc_column][/vc_row][vc_row][vc_column width=”1/1″][vc_tour][vc_tab title=”Installation method” tab_id=”1389251558-1-3″][vc_column_text]The following are installation steps:
- 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
- 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
- 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
- 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/
- After the scatch installation is done, we can run scratch by navigating Menu=>Programming->Scratch.
The plugin complied above has some language support issue. We can reinstall according to the following steps:
$ sudo mv /usr/lib/scratch/plugins /usr/lib/scratch/plugins_old
$ sudo apt-get install squeak-plugins-scratch
[/vc_column_text][/vc_tab][/vc_tour][/vc_column][/vc_row]
Leave a Reply
You must be logged in to post a comment.