Cross-GUI development in OCaml with a natural look

I would like to create a GUI for the OCaml application that I am writing. My first idea was to use GTK + . I would like my application to run on Mac, Linux, Windows with a natural look. I know that although GTK + uses X11 on Mac by default (which looks awful), there is one that uses quartz and looks natural and that I just installed using macports.

I have three questions:

(1) Can it be used gtk-osx-application +quartz+no_x11with OCaml? (My GODI installation, which previously (with gtk2 based on x11) installed lablgtk2 without problems, now (with the gtk-osx-application +quartz+no_x11previous remote gtk2 on x11) complains that it did not find /opt/local/lib/libgtk-x11-2.0.0.dylibwhat is connected with x11. But, as far as I know, there is no way select quartz over x11 when installing lablgtk2 via GODI.)

(2) If I develop my code on my Mac using the gtk-osx application, can I use the code as is to compile on other platforms that use different GTKs, or can it cause problems?

(3) If this brings problems, do you know of any other OCaml GUI development environment that could potentially be good both in appearance and still be easy to cross-use? (I know labltk, but I would prefer something with a lot of features, for example, the ability to use laptops, aka tabbed panels and the ability to use Glade for a quick graphical interface.)

Thanks for any help!

Cheers, Surikator

+5
source share
1 answer

Assuming you can get lablgtk to work, this is probably your best bet right now.

: lablgtk X11 GTK Quartz GTK? LablGTK, X11 GTK, , Quartz GTK, , . , LablGTK , X11 , , , , , LablGTK Windows.

GTK Mac, . , , . , GTK .

, - OCaml wxWidgets, , , , wx . , Qt, , , .

, ++ Qt , , UI OCaml , . , , , .

: GTK - .

+3

All Articles