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.
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
(Click thumbnails to see full-sized images)
(Click thumbnails to see full-sized images)
You need to install:
C:\Program Files\Objective Caml\etc\gtk-2.0\gtkrc and C:\Program Files\Objective Caml\lib\gtk-2.0\2.4.0\engines\libwimp.dll respectively.cmd.exe shell)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
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 specialises in finding interested visitors and helping them to convert into leads or purchases. We use PPC, SEO, Social Media, Analytics, Usability, Design, etc.