Websites Navigation: Airbit | Shop | m-shell.net
Languages: EN | DE

Compiling m Scripts

An m script and the modules it requires can be compiled into a single "executable" file. These files have the extension .mex and are ideal to quickly distribute m applications in a single file among m users.

A .mex file is marked in the script list by a icon. It can be executed directly from the m script list by clicking on it.

Creating a .mex file is also the first step in creating an installable application.

As an example, open the SmsService script from the script list, then choose Process→Compile. A dialog will appear asking you for the name of the executable file (without .mex extension).

   
Series 60 sample screen
UIQ sample screen

After successful compilation, a new item SmsService with icon will appear once you switch back to the script list. This will contain everything that's needed to run SmsService from within m.

Producing Standalone Applications

Standalone applications for Symbian OS can easily be produced from applications written in m. These can be installed on other devices, without requiring previous installation of m. Simply upload your .mex file to a web application located on www.m-shell.net/Makemsis.aspx, select the platform you want the .sis created for (S60 2nd, 3rd or 5th edition, UIQ2 or UIQ3), and have the web application create a .sis file you can download and install on other devices.

Your .mex file will be combined with the m runtime environment mEnvironment.sis for the selected platform.

Here are the essential steps to create an SmsService.sis from SmsService.mex:

  1. Copy SmsService.mex to a PC with internet connection, for instance by using mShell→Send As.
  2. On the PC, go to www.m-shell.net/Makemsis.aspx, and upload SmsService.mex as .mex File, clicking on Add Files.
  3. In Settings, select the appropriate platform, e.g. "S60 3rd", then click on Create SIS.
  4. In Your Files, you will find SmsService.sis to download. This can now be installed on other devices.

   Installed SmsService application

The web application has several options, for instance to change the application title or caption, to supply another icon, or to install additional files. These are explained in chapter * (Reference).


© 2004-2011 airbit AG, CH-8008 Zürich
Document AB-M-TUT-887
mShell Home  > Documentation  > Manuals