Re: [wxhaskell-devel] Using a shared library for the C++ in wxhaskell

2012-01-25 Thread Frodo Kenny
I did some more tests and the 32-bit version is not compiling. The problem is that the 32-bit flags (-m32) are not passed to ld when linking. That in turn is caused by the following: > But on hitting that line the following error is spat out: > /usr/bin/ld: cannot open output file  dist/build/libw

Re: [wxhaskell-devel] Using a shared library for the C++ in wxhaskell

2012-01-23 Thread Frodo Kenny
>>> >> >>> >> However, keyboard input is not directed to the gui but to the ghci >>> >> terminal… >>> >> >>> >> There used to be an EnableGUI module to fix this >>> >> (http://www.haskell.org/haskellwiki/WxHaskell/MacOS_X), but that does >>> >> not >>> >> seem to work anymore. >>> >> >>> >> The win

Re: [wxhaskell-devel] Using a shared library for the C++ in wxhaskell

2012-01-13 Thread Dave Tapley
On 13 January 2012 16:28, Frodo Kenny wrote: > > On Thu, Jan 12, 2012 at 5:19 PM, Dave Tapley wrote: >> >> On 12 January 2012 15:09, Jeremy O'Donoghue >> wrote: >> > Thank you Kenneth, >> > >> > That's an extremely detailed and complete set of notes. It is very much >> > appreciated. >> >> I'd a

Re: [wxhaskell-devel] Using a shared library for the C++ in wxhaskell

2012-01-13 Thread Frodo Kenny
On Thu, Jan 12, 2012 at 5:19 PM, Dave Tapley wrote: > On 12 January 2012 15:09, Jeremy O'Donoghue > wrote: > > Thank you Kenneth, > > > > That's an extremely detailed and complete set of notes. It is very much > > appreciated. > > I'd also like to offer my thanks, this is extremely useful to us.

Re: [wxhaskell-devel] Using a shared library for the C++ in wxhaskell

2012-01-12 Thread Dave Tapley
On 12 January 2012 15:09, Jeremy O'Donoghue wrote: > Thank you Kenneth, > > That's an extremely detailed and complete set of notes. It is very much > appreciated. I'd also like to offer my thanks, this is extremely useful to us. > > Best regards > Jeremy > > On 12 January 2012 14:52, Frodo Kenny

Re: [wxhaskell-devel] Using a shared library for the C++ in wxhaskell

2012-01-12 Thread Jeremy O'Donoghue
Thank you Kenneth, That's an extremely detailed and complete set of notes. It is very much appreciated. Best regards Jeremy On 12 January 2012 14:52, Frodo Kenny wrote: > Nice work. I was still on GHC 6.10 to be able to use wxhaskell with ghci. > > Here are some notes and patches for OS X. I'm

Re: [wxhaskell-devel] Using a shared library for the C++ in wxhaskell

2012-01-12 Thread Frodo Kenny
Nice work. I was still on GHC 6.10 to be able to use wxhaskell with ghci. Here are some notes and patches for OS X. I'm running Lion (10.7.2) and getting wxwidgets running actually took the most time. 1) wxwidgets First of all, Haskell and wxwidgets must use the same architecture, i.e. both 32

Re: [wxhaskell-devel] Using a shared library for the C++ in wxhaskell

2012-01-03 Thread Dave Tapley
On 19 December 2011 22:02, Dave Tapley wrote: > On 14 December 2011 07:16, Dave Tapley wrote: > > The only major problem remaining (aside from the woeful lack of > > testing, and support for non-Linux platforms) is you have to pass an > > rpath to the linker when compiling; so you get something

Re: [wxhaskell-devel] Using a shared library for the C++ in wxhaskell

2011-12-19 Thread Dave Tapley
On 14 December 2011 07:16, Dave Tapley wrote: > Well, after a couple of days' frantic hacking I've made more progress, > and I'd invite anyone to comment on my decisions: > > The compilation of the C++ 'wrapper' code has now been moved to a > separate project which I've called wxc. > This will now

Re: [wxhaskell-devel] Using a shared library for the C++ in wxhaskell

2011-12-13 Thread Dave Tapley
Well, after a couple of days' frantic hacking I've made more progress, and I'd invite anyone to comment on my decisions: The compilation of the C++ 'wrapper' code has now been moved to a separate project which I've called wxc. This will now do the compilation and linking as per Jeremy's gist, and

Re: [wxhaskell-devel] Using a shared library for the C++ in wxhaskell

2011-12-12 Thread Dave Tapley
On 12 December 2011 17:18, Jeremy O'Donoghue wrote: > Hi Dave, all, > > This is fantastic news - especially the bit about GHCi. I have put a couple > of general comments inline, but it looks like you have found most of the > issues, at least on Linux. > > I think that at least some of the issues w

Re: [wxhaskell-devel] Using a shared library for the C++ in wxhaskell

2011-12-12 Thread Jeremy O'Donoghue
Hi Dave, all, This is fantastic news - especially the bit about GHCi. I have put a couple of general comments inline, but it looks like you have found most of the issues, at least on Linux. I think that at least some of the issues would go away if, as you say, *"we could have an entirely separat

Re: [wxhaskell-devel] Using a shared library for the C++ in wxhaskell

2011-12-09 Thread Dave Tapley
On 8 December 2011 22:34, Dave Tapley wrote: > Hello everyone, > > I wrote a story, and I invite you all to comment and help me make it better. > As an experiment I've decided to put it on hpaste instead of having > the mail thread get out of hand (I'm also cross posting it to the > cabal list and

[wxhaskell-devel] Using a shared library for the C++ in wxhaskell

2011-12-08 Thread Dave Tapley
Hello everyone, I wrote a story, and I invite you all to comment and help me make it better. As an experiment I've decided to put it on hpaste instead of having the mail thread get out of hand (I'm also cross posting it to the cabal list and have mentioned it in #haskell, and I want to keep all co