Hi

I wanted to try StyledTextControl (stc) on wxHaskell. It didn't work  
right out of the box for me (test applications would die with obscure  
messages) and I couldn't find online help on what I was doing wrong.

Eventually, I managed to make it work (or at least now simple test  
applications don't die (tested on os x only)) and although it took me  
a while to figure it out, all you have to do is:

i) ensure you enable support for stc when building wxwidgets (passing  
--with-stc to configure)
ii) use flag --ghc-options=-DwxUSE_STC=1 when installing wxcore  
(apparently, it is not being defined anymore in wx/setup.h)
iii) use $(wx-config --libs std,stc) when linking

Now, I really don't know if this was a known issue, if I stumbled with  
a documentation problem, or a configuration bug in the cabalized  
wxhaskell, all/none of the above or what. My impression is that it is  
mostly a configuration problem and I thought I might send a patch for  
wxcore/Setup.hs, but I'm not sure if this is the case or even what the  
status of stc is wrt wxhaskell (I think I saw a mail from November  
where it was suggested that stc would be moved to a separate package).

So, the question is, is there something I can do to help other people  
having a merrier experience trying stc next time? :)

Thanks,
Daniel

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
wxhaskell-devel mailing list
wxhaskell-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-devel

Reply via email to