On Tue, Aug 11, 2009 at 15:08:53 -0500, Brian Lewis wrote: > On Tuesday, 11.08.09 at 02:05, Eric Y. Kow wrote: > > setup: Missing dependency on a foreign library: > > * Missing C library: wx_macud-2.8 > > > > I guess the Setup.hs file needs to call wx-config > > Hmm. But it does. Does 'wx-config --cppflags --libs' show the stuff it > should? Where is the build failing for you?
Yeah, sorry for the noise there. The error (at first) was due to using the wrong version of wx-config (the one that came with my Mac). Running PATH=/usr/local/wxhaskell/bin/wx-config cabal install Then got me a similar failure, which was due to not parsing the -framework flags (hence my attempt at making up for my noise by submitting a patch) Anyway, I'm pretty excited about this! I was so fixated on splitting wxc off from wxcore that it never occurred to me to try the other way by just building the darned wxc code within Cabal. Somehow I imagined that wxc being C++ would be a problem. In the long run, wxc is going to have to go away anyway and be replaced by some autogenerated wrapper so I think you've got exactly the right idea: just make it work first. > > PS: it might simplify matters for the wxHaskell team if you just used > > the darcs repository > > I'll definitely do whatever's most convenient for them if this stuff > turns out to be useful at all. Nod. Hopefully somebody from the team will notice :-) They seem a bit busy right now. > Right now the build fails for me with errors like > > src/cpp/eljfl.cpp:1277:0: > error: conversion from ‘char*’ to ‘const wxString’ is ambiguous Perhaps your wxWidgets is not Unicode enabled? I think you have to pass that in as a flag to configure. It may be good to also make sure that you're --unicode=yes to wx-config as well, although I'm not sure what it does. Finally, this is a good chance to get a configure-time check for a Unicode-enabled wxWidgets > src/cpp/eljfl.cpp:1317:0: > error: no matching function for call to > ‘wxNewBitmapButton::RenderLabelImage(wxBitmap*, wxBitmap*, bool, bool)’ Not sure what's going on there :-( Here are my last three errors: src/cpp/eljdialup.cpp:97:0: error: ‘wxDialUpEvent’ was not declared in this scope src/cpp/eljdialup.cpp:97:0: error: ‘self’ was not declared in this scope src/cpp/eljdialup.cpp:98:0: error: expected ‘,’ or ‘;’ before ‘{’ token -- Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow> PGP Key ID: 08AC04F9
pgprGiZf8pPdT.pgp
Description: PGP signature
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________ wxhaskell-users mailing list wxhaskell-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxhaskell-users