Install LC 6.5.1 and 7.0.4 on Raspberry Pi 2

Moderators: heatherlaine, Klaus, FourthWorld, robinmiller, kevinmiller

Post Reply
[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1694
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Install LC 6.5.1 and 7.0.4 on Raspberry Pi 2

Post by [-hh] » Sat Mar 12, 2016 12:59 am

I was asked to summarize a guide, as it worked for me, for the Raspi 2.
Some days ago I intended to build an image 'Raspi-OS (Raspbian wheezy or Ubuntu MATE) + LC' for download but this wasn't very welcome (see here).


So here is the
Installation guide for LiveCode on a Raspi 2
(On Raspi B+ you need only one line more, see footnote **)

If you have a running Raspi-OS then type in LX-Terminal

Code: Select all

cat /etc/os-release
If you get "Raspbian GNU/Linux 7 (wheezy)", then you are ready to follow this guide. If not you may install (on a new/separate SD card) an OS following [Part I] below.

[Part II] "5-minutes guide" (without time needed for downloads)

A. Prepare (use LX-terminal).

Code: Select all

# 1. adjust for using LC's 32bit-color
sudo apt-get update
sudo apt-get dist-upgrade
sudo nano /boot/config.txt
# insert at bottom the line**
framebuffer_depth=32
ctrl-O # the "O" is "Oh", not zero!
ctrl-X
# 2. adjust for LC's transparency/windowshape
sudo apt-get install xcompmgr
cd /etc/xdg/autostart/
sudo nano Xcompmgr.desktop
#Copy and paste the following
[Desktop Entry]
Encoding=UTF-8
Name=XCompmgr
Comment=XCompmgr--our compositor
Exec=xcompmgr
Terminal=false
Type=Application
OnlyShowIn=XFCE;LXDE;MATE
# Save and exit to terminal
ctrl-O
ctrl-X
# 3. [optional] Install the Firefox variant for Raspi:
sudo apt-get install iceweasel
# 4. Preparation done
sudo reboot
B. Download and run installer.

For LC 6.5.1 scroll to bottom of page for the link
and for LC 7.0.4 use "RPI" from the 7.0.4 links:
http://downloads.livecode.com/livecode/
• RightClick the installer to make them executable
• DoubleClick to start.
The installation should run without problems.
Remark. I prefer the installation option "for this user/for you only"

C. Adjustment of launchers
(in menu: Applications/development):
  • Use view: show hidden items in file manager.
  • Go to /home/pi/.local/share/applications
  • Open the LC 6.5.1 file with the text editor (rightClick)
    Look at the line "Exec= ..."
  • Replace ".x86" by ".arm" and surround the whole path right of "=" with quotes. Save.
Now you can launch LC 6.5.1 and LC 7.0.4 from the menu Applications/development, the icons are correct after next boot.

D. Test transparency.

Download one of the stacks from here
http://forums.livecode.com/viewtopic.php?f=76&t=26397
for example the "splash-stack"
http://forums.livecode.com/viewtopic.ph ... 02#p137302.
Unarchive the stack and open it from your running LC-IDE.

E. Remarks.
  • I prefer to open stacks from the LC-menu "File". Double-clicking stack files doesn't work reliably.
  • LC 6.5.1 is much faster than LC 7.0.4. But LC 7.0.4 uses Unicode and allows to build standalones [you can create these 11 MByte-standalones also on Mac/Win/Linux desktop, you don't need to have a running IDE on Raspi for that].
_______footnote
** some use moreover (needed for Raspi B at any rate):
framebuffer_ignore_alpha=1
which is said to help with 32bit colors.
# The other lines at bottom of /boot/config.txt
# display your settings/localisations from using
sudo raspi-config
_______end footnote

[Part II] Install the base OS on a SD card

The current available versions of LC do NOT run on the newer Raspbian OS "jessie". You have to use "Ubuntu 15.10 MATE" or "Raspbian wheezy".
For installing Ubuntu MATE see the instructions in the thread for Raspberry Pi 3.

You'll find detailled installation instructions here:
https://www.raspberrypi.org/documentati ... /README.md

I describe the MacOS X instructions in short also here as they worked for me.

You need a desktop Mac, a cardReader and a 8-16 GByte SD card (class 10 is good).
Of course you can use a separate one for use of LC development only.
  • Download the latest wheezy image from here
    http://downloads.raspberrypi.org/raspbi ... wheezy.zip
  • Use Unarchiver to unzip the image
  • Use terminal:

    Code: Select all

    cd Downloads # or wherever your file is
  • Insert the new card into your card reader.
    This has, if not specialised the format FAT32, else format it to FAT with 'Disk Utility'.
    Eject all other SD cards from your machine.
  • In terminal use

    Code: Select all

    df -h
    This shows you the path of your current volumes. Identify your card (from the size).
    Usually this is /dev/disk3s1.
    Record the name (without s1, replace disk by rdisk): /dev/rdisk3

    Code: Select all

    sudo dd bs=1m if=2015-05-05-raspbian-wheezy.img of=/dev/rdisk3
    This will need some time, depending on the SD card's size

    Code: Select all

    sudo diskutil eject /dev/rdisk3
  • power off your Raspi, insert the SD card, power on your Raspi.
  • Do your localisations and adjustments.
    Especially "Expand filesystem".
    If you missed it at the very beginning then type at any time in terminal

    Code: Select all

    sudo raspi-config
  • After first boot connect to your WLAN (icon at topRight).
Then Install LC, following [Part II] above.
If it doesn't work, come back here and we will exercise trouble-shooting ;-)
shiftLock happens

Post Reply

Return to “Raspberry Pi”