Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Caml-list] compiling wxocaml (and wxhaskell)

7 views
Skip to first unread message

Quôc Peyrot

unread,
Dec 28, 2006, 5:22:24 PM12/28/06
to ocaml_b...@yahoogroups.com
Hello,

I was trying to find a good portable GUI library for my ocaml projects.
A natural choice seemed to be wxwindows/wxWidgets since I wanted
to have a native look'n feel and QT doesn't have any bindings in OCaml
(to my despair... anyone working on QT bindings?)

Unfortunately wxocaml depends on wxc (found in wxhaskell) which seems
to be outdated. I was wondering if anyone had any luck making it work
with wxWidgets 2.8.

I already fixed a couple of compilation warnings/errors, but it seems
to be
a never ending process and I'm not familiar at all with these
libraries, so
I'm pretty much fixing the compilation errors randomly.

I guess I could use wxWidgets 2.5.4 as advised on wxhaskell's website
for
Mac OS, but this version is almost 2 years old.

Any help appreciated,

--
Best Regards,
Quôc

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Erik de Castro Lopo

unread,
Dec 28, 2006, 5:56:04 PM12/28/06
to Quôc Peyrot
Quôc Peyrot wrote:

> Hello,
>
> I was trying to find a good portable GUI library for my ocaml projects.
> A natural choice seemed to be wxwindows/wxWidgets since I wanted
> to have a native look'n feel and QT doesn't have any bindings in OCaml
> (to my despair... anyone working on QT bindings?)

Have you looked at lablgtk? I find it up to date and easy to use.

Erik
--
+-----------------------------------------------------------+
Erik de Castro Lopo
+-----------------------------------------------------------+
"I'd crawl over an acre of 'Visual This++' and 'Integrated
Development That' to get to gcc, Emacs, and gdb. Thank you."
-- Vance Petree

Quôc Peyrot

unread,
Dec 28, 2006, 6:52:45 PM12/28/06
to ocaml_b...@yahoogroups.com, caml...@inria.fr

On Dec 28, 2006, at 2:52 PM, Erik de Castro Lopo wrote:

> Quôc Peyrot wrote:
>
>> Hello,
>>
>> I was trying to find a good portable GUI library for my ocaml
>> projects.
>> A natural choice seemed to be wxwindows/wxWidgets since I wanted
>> to have a native look'n feel and QT doesn't have any bindings in
>> OCaml
>> (to my despair... anyone working on QT bindings?)
>
> Have you looked at lablgtk? I find it up to date and easy to use.

Yes I have and it was ok, but it doesn't use native platform's controls.

--
Best Regards,
Quôc

Robert Roessler

unread,
Dec 28, 2006, 9:20:09 PM12/28/06
to caml...@inria.fr
Quôc Peyrot wrote:
> On Dec 28, 2006, at 2:52 PM, Erik de Castro Lopo wrote:
>
>> Quôc Peyrot wrote:
>>
>>> Hello,
>>>
>>> I was trying to find a good portable GUI library for my ocaml projects.
>>> A natural choice seemed to be wxwindows/wxWidgets since I wanted
>>> to have a native look'n feel and QT doesn't have any bindings in OCaml
>>> (to my despair... anyone working on QT bindings?)
>>
>> Have you looked at lablgtk? I find it up to date and easy to use.
>
> Yes I have and it was ok, but it doesn't use native platform's controls.

Things are not quite that bleak - if you use the GTK installer from

http://gimp-win.sourceforge.net/

it includes a theme engine which comes close[r] to emulating the look
and feel of Windows native controls (well, relative to the drab GTK
default look and feel). :)

Robert Roessler
roes...@rftp.com
http://www.rftp.com

Richard Jones

unread,
Dec 29, 2006, 4:48:58 AM12/29/06
to Quôc Peyrot
On Thu, Dec 28, 2006 at 03:48:46PM -0800, Quôc Peyrot wrote:
> On Dec 28, 2006, at 2:52 PM, Erik de Castro Lopo wrote:
> >Quôc Peyrot wrote:
> >
> >>Hello,
> >>
> >>I was trying to find a good portable GUI library for my ocaml
> >>projects.
> >>A natural choice seemed to be wxwindows/wxWidgets since I wanted
> >>to have a native look'n feel and QT doesn't have any bindings in
> >>OCaml
> >>(to my despair... anyone working on QT bindings?)
> >
> >Have you looked at lablgtk? I find it up to date and easy to use.
>
> Yes I have and it was ok, but it doesn't use native platform's controls.

I haven't really looked at this in a long time, but perhaps take a
look at our cross-platform experiments here:

http://merjis.com/developers/xphelloworld

The basic controls look native (although they are not), but things
like file & print dialogs will of course be completely different.
However complete disregard for consistency never seemed to prevent
Microsoft from releasing Office with custom controls, so ...

Rich.

--
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Internet Marketing and AdWords courses - http://merjis.com/courses - NEW!
Merjis blog - http://blog.merjis.com - NEW!

Dom. Orchard

unread,
Jan 12, 2007, 10:23:51 PM1/12/07
to caml...@yquem.inria.fr

I have been trying to do this too and have finally managed to get wxHaskell
0.9.4 working with wxWidgets 2.8.0.

My guide + code to do it can be found here:
http://riftor.g615.co.uk/content.php?view=53&type=2

I hope that it works for you too, it should do! Let me know if you have any
problems,

Dominic Orchard

--
View this message in context: http://www.nabble.com/compiling-wxocaml-%28and-wxhaskell%29-tf2892471.html#a8310839
Sent from the Caml Discuss2 mailing list archive at Nabble.com.

0 new messages