Create Your Own Linux, Android and iOS Apps Using "LiveCode" in Linux

Channel: Open Source Linux
Abstract: first of all you need to download Livecode from the link provided below. Make sure you download LiveCode 6.6.2 stable version (i.e. LiveCodeCommunityI

Livecode is a programming language first appeared in 1993, it’s main goal is to allow everybody to code, it allows you to create large applications easily using a simple high level, English-like programming language that is dynamically typed.

Install Livecode in Linux

Using Livecode, You can write the same application for all available platforms like Windows, Mac, Linux, iOS, Android, BSD, Solaris and the code will work on all of those platforms without the need to change anything in the code, same code on all.

You can even create Web applications using Livecode, It’s developers call it 「The Revolution programming language」 since it allows everybody to code because of its high-level language, Livecode is also used a lot in schools to teach students how to code easily.

There are two versions of Livecode, one is commercial and closed-source, and one is open-source and free, the open-source version was introduced in 2013 after a successful Kickstarter campaign raised more than 350000£.

However, there are some core features that are only included in the closed version like building the applications for iOS (This is because Apple doesn’t allow GPL software to be uploaded to the App Store, and all programs that are made by Livecode runtime must be licensed under GPL), but most of the features are available in the free & open-source version, which we’ll be talking about in this post.

Livecode Features
  1. High level programming language.
  2. So easy to install and use.
  3. The installer works on any Linux distribution.
  4. You can develop the same applications for all platforms with the same code.
  5. Windows, Linux, Mac, Android are supported.
  6. Large documentation and tutorials and howto’s available for free.
  7. Free support from the LiveCode community.
  8. Many other features that you will see yourself.
Step 1: Installing Livecode in Linux

Today we’ll be talking about the open-source version and how to install it on all Linux distributions, first of all you need to download Livecode from the link provided below. Make sure you download LiveCode 6.6.2 stable version (i.e. LiveCodeCommunityInstaller-6_6_2-Linux.x86).

  1. http://livecode.com/download/

The installer will work on any Linux distribution that you use, no matter of it was based on Debian or RedHat or any other Linux distribution.

Download Livecode 6.2

Alternatively, you may also use ‘wget’ command to download LiveCode package directly in the terminal.

# wget http://downloads.livecode.com/livecode/6_6_2/LiveCodeCommunityInstaller-6_6_2-Linux.x86
Download Livecode Directly

Now take the downloaded file and put it in your home folder, apply execute permission and run it as shown.

$ chmod 755 LiveCodeCommunityInstaller-6_6_2-Linux.x86 
$ ./LiveCodeCommunityInstaller-6_6_2-Linux.x86

NOTE: Replace 「LiveCodeCommunityInstaller-6_6_2-Linux.x86」 with the name of the file if it was different, Open the file to start the installer.

Here are some screenshots of the installation process.

LiveCode Installer Select LiveCode Installation Type Install LiveCode to /opt Installation in Progress Launch LiveCode Create LiveCode Account

You can create an account if you want on Livecode runtime, creating an account will give you:

  1. Access to the community forums.
  2. Free trails for all the academies.
  3. Notification of latest releases of Livecode.
  4. Post comments throughout the community.
  5. Discounts on products/extensions.
  6. Use of the Livecode community simplest portal.

Simply, you can skip this step if you don’t want to create an account at Livecode community, but it won’t take time through and finally, your Livecode will be ready to go Live.

LiveCode Start Center Step 2: How to Use LiveCode

You can do many things now:

  1. View the User Samples that are created by another user, download them and study them to understand how to do specific things in Livecode.
  2. Open the LiveCode Lessions online learning site and start applying them, those lessons are written by development team and are really good to start.
  3. Open the Resources Center and start viewing the tutorials , there are a tons of those tutorials in the Resources Center which explain everything you may need in LiveCode.
  4. Open the Dictionary to view syntax.

To create a new program, open File menu and choose 「New Mainstack」, drag & drop a button to it like this.

Create New Program

Now select the button, and click on the 「Code」 button in the toolbar to open the code editor.

Open Code Editor

Once code editor opens, start writing code.

Start Creating Programs

Now replace the code that you see with this code.

on mouseUp
   answer "Hello, World!" 
end mouseUp

Next, click on the run button, and your first Hello World program is ready.

Run First Program

Now to save your program as a standalone program, open the File menu, choose 「Standalone Application Settings」, and choose the platforms that you want to build your app for, and then, again from the File menu, choose 「Save as Standalone Application」 and choose where to save the project, and you will be done.

You can now run you application easily by right-clicking it. We recommend that you view the tutorials and the howto’s, they are very useful to start with.

Reference Links:

  1. LiveCode Homepage
  2. LiveCode Tutorials

Ref From: tecmint
Channels: livecode

Related articles