From: Daniel K. <d.k...@go...> - 2008-07-29 08:58:57
|
Hello, I try to build the current wxhaskell version from the darcs repository. Therefor I started shell session configured like described on the documentation site. The sh.exe I use is provided by msys, I also installed mingw32 (`uname -a' : MINGW32_NT-5.1 ... 1.0.11(0.46/3/2) 2007-01-12 12:05 i686 Msys) The make process runs fine until it fails with the message `wx/graphics.h' isn't found (for the wxwidgets version 2.6.4) and with the messages `wxc/src/graphicscontext.cpp:417: error: expected `,' or `...' before '*' token wxc/src/graphicscontext.cpp:418: error: ISO C++ forbids declaration of `wxPoint2DDouble' with no type' make: *** [dist/wxc/graphicscontext.o] Error 1 in both cases - trying to compile against wxwidgets versions 2.6.4 and 2.8.8. The tool call which sets the wxversion variable (`wx-config --version') is executed and returns the built and installed version of wxwidgets (tried with both separatly). The searched hosted graphics.h as I could determine seems available as part of the 2.8.x version of wxwidgets at first. Did I forget to build something on the wxwidgets side? Thank you so far Daniel. |
From: Eric K. <eri...@gm...> - 2008-07-29 09:53:44
|
Hi, 2008/7/29 Daniel Kahlenberg <d.k...@go...>: > The make process runs fine until it fails with > the message > `wx/graphics.h' isn't found (for the wxwidgets version 2.6.4) Well, I notice you have tried both 2.6.4 and 2.8.8 below. For what it's worth, only 2.8.x is supported (in case this helps to narrow) > and with the messages > `wxc/src/graphicscontext.cpp:417: error: expected `,' or `...' > before '*' token > wxc/src/graphicscontext.cpp:418: error: ISO C++ forbids > declaration of `wxPoint2DDouble' with no type' > make: *** [dist/wxc/graphicscontext.o] Error 1 > in both cases - trying to compile against wxwidgets versions 2.6.4 and 2.8.8. I'm not sure what to suggest. Shelarcy, any ideas? I would appreciate it if you could post any findings on the troubleshooting section of http://www.haskell.org/haskellwiki/WxHaskell/Install -- Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow> PGP Key ID: 08AC04F9 |
From: shelarcy <she...@gm...> - 2008-07-29 11:58:43
|
Hi, On Tue, 29 Jul 2008 18:53:42 +0900, Eric Kow <eri...@gm...> wrote: > 2008/7/29 Daniel Kahlenberg <d.k...@go...>: >> and with the messages >> `wxc/src/graphicscontext.cpp:417: error: expected `,' or `...' >> before '*' token >> wxc/src/graphicscontext.cpp:418: error: ISO C++ forbids >> declaration of `wxPoint2DDouble' with no type' >> make: *** [dist/wxc/graphicscontext.o] Error 1 >> in both cases - trying to compile against wxwidgets versions 2.6.4 and 2.8.8. > > I'm not sure what to suggest. Shelarcy, any ideas? This problem come from wxGraphicsContext support. wx/graphics.h includes wx/geometory.h, but wrapper.h does not. So, I think we can fix this problem easily. Daniel, if you want to just build wxHaskell, you should rebuild wxWidgets with --enable-graphics_ctx option. And I made and send patch for this problem, too. If you don't want to build wxWidgets again, please wait a moment until applying my new patch to darcs repository. I think that patch also fixes below problem. >> The make process runs fine until it fails with >> the message >> `wx/graphics.h' isn't found (for the wxwidgets version 2.6.4) > > Well, I notice you have tried both 2.6.4 and 2.8.8 below. For what > it's worth, only 2.8.x is supported (in case this helps to narrow) Best Regards, -- shelarcy <shelarcy hotmail.co.jp> http://page.freett.com/shelarcy/ |
From: Eric K. <eri...@gm...> - 2008-07-29 12:32:20
|
Hi Daniel, > And I made and send patch for this problem, too. If you don't want to build > wxWidgets again, please wait a moment until applying my new patch to darcs > repository. You could also apply the patch to your own repository and see how it works out :-) [darcs apply the_patchfile] -- Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow> PGP Key ID: 08AC04F9 |
From: Daniel K. <d.k...@go...> - 2008-07-29 14:31:17
Attachments:
errors
|
Hello, Thanks very much for your help, but had no luck again, trying to rebuild wxwidgets (darcs pull found nothing new yet). Will I have to install the Platform SDK then or something similar ?? The make process now complains about this error: ../../src/msw/graphics.cpp:92:21: gdiplus.h: No such file or directory ../../src/msw/graphics.cpp:93: error: `Gdiplus' is not a namespace-name ../../src/msw/graphics.cpp:93: error: expected namespace-name before ';' token * Please look at the attachement for follow up errors My configure arguments were: ../../configure --with-msw --enable-unicode --with-odbc --with-opengl --enable-sound --enable-mediactrl --disable-shared --enable-optimize --enable-graphics_ctx 2008/7/29 Eric Kow <eri...@gm...>: > Hi Daniel, > >> And I made and send patch for this problem, too. If you don't want to build >> wxWidgets again, please wait a moment until applying my new patch to darcs >> repository. > > You could also apply the patch to your own repository and see how it > works out :-) > [darcs apply the_patchfile] > > -- > Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow> > PGP Key ID: 08AC04F9 > |
From: shelarcy <she...@gm...> - 2008-07-29 15:09:45
|
On Tue, 29 Jul 2008 23:31:12 +0900, Daniel Kahlenberg <d.k...@go...> wrote: > The make process now complains about this error: > > ../../src/msw/graphics.cpp:92:21: gdiplus.h: No such file or directory > ../../src/msw/graphics.cpp:93: error: `Gdiplus' is not a namespace-name > ../../src/msw/graphics.cpp:93: error: expected namespace-name before ';' token > * Please look at the attachement for follow up errors Hmm ... it seems that MinGW'a w32api doesn't have gdiplus library yet. > Will I have to install the Platform SDK then or something similar ?? I think PlatformSDK's header and library files are incompatible with w32api. Because Aaron is working for to modernize Windows platform support in Google Summer of Code project now. http://gcc.gnu.org/wiki/WindowsGCCImprovementsGSoC2008#head-5effb1d3f01b0db6e4f7d14b0ce1beed8469de4e So, we can't enable wxGraphicsContext support when using MinGW now.... Best Regards, -- shelarcy <shelarcy hotmail.co.jp> http://page.freett.com/shelarcy/ |
From: Eric K. <eri...@gm...> - 2008-07-29 14:38:53
|
2008/7/29 Daniel Kahlenberg <d.k...@go...>: > Thanks very much for your help, but had no luck again, trying to > rebuild wxwidgets (darcs pull found nothing new yet). Well, I can't push Shelarcy's patch in until later this evening (not for 5 hours or so), but you could save his email attachment (the patch) and run darcs apply on the saved file... oh wait, that was on the wxhaskell-devel list, which is why you never saw it! http://cache.gmane.org//gmane/comp/lang/haskell/wxhaskell/devel/236-001.bin I'll leave the other questions to Shelarcy... -- Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow> PGP Key ID: 08AC04F9 |
From: Daniel K. <d.k...@go...> - 2008-07-30 14:25:16
|
Hi again, I was able to run the make process on wxhaskell with wxwidgets-2.8.8 built against mingw now without errors. At first I made a darcs pull in my wxhaskell repo to get the patches from 29/07/2008. Then I used the wxwidgets build, configured without the `--enable-graphics_ctx' flag, but with the other recommended flags. I also built the contrib/src folders contents for the stc stuff, otherwise the wxhaskell build may break. That part ran fine. Now I changed into the source folder of wxhaskell and configured it as usual (with `--with-contrib' flag and all that). make then ran with no errors. At the moment I have no time to take the whole of it done (make wx ...), but I'm shure that is more straight forward. Keep up the good work. Daniel 2008/7/29 Eric Kow <eri...@gm...>: > 2008/7/29 Daniel Kahlenberg <d.k...@go...>: >> Thanks very much for your help, but had no luck again, trying to >> rebuild wxwidgets (darcs pull found nothing new yet). > > Well, I can't push Shelarcy's patch in until later this evening (not > for 5 hours or so), but you could save his email attachment (the > patch) and run darcs apply on the saved file... > > oh wait, that was on the wxhaskell-devel list, which is why you never saw it! > http://cache.gmane.org//gmane/comp/lang/haskell/wxhaskell/devel/236-001.bin > > I'll leave the other questions to Shelarcy... > > -- > Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow> > PGP Key ID: 08AC04F9 > |