I didn't get it to work, but maybe I made some progress.

I installed wxWidgets by installing wxPack, a binary distribution. I did
it that way just because I didn't know what else to do.

Like Lyle Kopnicky mentioned, wx-config(1) doesn't come with wxWidgets.
I attribute it to the fundamental theorem of Windows, that everything in
Windows has to be nasty. I just dropped it somewhere in PATH.

The first bad news you'll see if you do 'cabal configure' is that cabal
seems unable to find the Windows or wx libraries.

Actually, the problem seems to be that cabal checks for the existence of
the libraries by compiling a dummy main() {} type program, specifying
-lwhatever, but it also specifies -Wno-attributes, a parameter gcc 3.4.5
doesn't seem to understand. cabal interprets gcc's error exit code to
mean that the library isn't there, which is wrong. I created a ticket
about it: http://hackage.haskell.org/trac/hackage/ticket/580

Even though 'cabal configure' seems busted, you can still build.

The first error I got was that gcc couldn't find <string>. To fix that,
I added an include directory. The next error was an inability to find
c++config.h. I fixed it the same way. Is it reasonable for ghc to be
having this problem? It runs its own copy of gcc.

Then, for some reason, some wx includes (at least in wxPack), are off by
themselves in some contrib/. So, I added that include directory, too.

cabal configure
  --extra-include-dirs=/c/brian/tools/ghc-6.10.4/include/mingw/c++/3.4.5
  
--extra-include-dirs=/c/brian/tools/ghc-6.10.4/include/mingw/c++/3.4.5/mingw32/
  --extra-include-dirs=/c/SourceCode/Libraries/wxWidgets2.8/contrib/include
cabal build

There seem to be a lot of warnings, but the build seems to finish. After
that, though, 'cabal install' doesn't work because of the issue about
not being able to verify that the presence of the required libraries.
Hopefully the cabal devs will fix this soon.

I normally don't do anything in Windows. If you do, please take a few
minutes to try to improve this process. I'm probably not doing stuff
very well because it's unfamiliar territory. Thank you.

------------------------------------------------------------------------------
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

Reply via email to