Developers » xphelloworld

This is a cross-platform "Hello, World" graphical application written in OCaml. This example shows how to write a graphical (Gtk-based) program which runs on Windows or Unix. Moreover on Windows it comes with an installer, uninstaller, menu item, desktop icon, and the native Windows look and feel. On Unix it has the standard Gtk look and feel.

Windows application running Linux application running

Download

Source code: xphelloworld-1.0.1-source.tgz

The source code is public domain, meaning that it can be used for any purpose, and relicensed under any license, including proprietary licenses.

Windows binary installer (an example of what the built application looks like): xphelloworld-1.0.1.exe

Screenshots (Windows)

(Click thumbnails to see full-sized images)

The installer program on the desktop

Windows installer icon on the desktop

During installation

Windows installer license terms page Windows installer setup options Windows installer choosing install path Windows installer completed

Menu items, showing program, and uninstaller

Windows menu items

The application running, with native Windows look and feel

Windows application running

The uninstaller

Windows uninstaller completed

Screenshots (Linux)

(Click thumbnails to see full-sized images)

Program running on Linux

Linux application running

Developer notes (Windows)

Required packages

You need to install:

Usage

After installing the required packages and setting up your path, you should be able to build the "Hello, World" program just by typing:

make clean all

and build the binary package by typing:

make release

Developer notes (Linux)

Almost everything comes installed on a standard Linux distribution. All you may need to add is the OCaml development environment, and lablgtk2 developer libraries.

See getting started with OCaml for more information.

Merjis

effective marketing for the web

Merjis specialises in innovative marketing,
accessibility, search engine optimisation (SEO),
and development for the web.