From: Eric K. <eri...@gm...> - 2008-02-14 17:56:48
|
Any comments or complaints, Jeremy? Otherwise I'm pushing this tomorrow. If it actually works, we ought to put wxhaskell on hackage. Thu Feb 14 17:50:50 GMT 2008 Eric Kow <eri...@gm...> * Add a Cabal file for wxcore. This uses the Make build-type, so we still need our configure file and the makefile. Thu Feb 14 17:53:29 GMT 2008 Eric Kow <eri...@gm...> * Add cabal file for high level directory. Thu Feb 14 17:55:21 GMT 2008 Eric Kow <eri...@gm...> * Update online build instructions for Cabal. |
From: shelarcy <she...@gm...> - 2008-02-15 09:15:55
|
Hi Eric, On Fri, 15 Feb 2008 02:56:37 +0900, Eric Kow <eri...@gm...> wrote: > Any comments or complaints, Jeremy? > > Otherwise I'm pushing this tomorrow. > If it actually works, we ought to put wxhaskell on hackage. > > Thu Feb 14 17:50:50 GMT 2008 Eric Kow <eri...@gm...> > * Add a Cabal file for wxcore. This doesn't work on Windows. $ runhaskell Setup.lhs configure --with-msc -=-= Cabal executing: ./configure --with-hc=ghc --with-msc=-=- operable program or batch file. Configure failed. $ runhaskell Setup.lhs configure -=-= Cabal executing: ./configure --with-hc=ghc=-=- '.' is not recognized as an internal or external command, operable program or batch file. Configure failed. Is this Distribution.Make module's problem? Distribution.Simple's defaultMainWithHooks defaultUserHooks can run "./configure" command on Windows environment. But It seems that Distribution.Make's defaultMain can't run "./configure" commnad on Windows. But I think this patch is useful. Your patch doesn't break traditional way. So we can build wxHaskell with traditional way on Windows. And I think we should care about at least one more point. wxcore's makefile uses wxdirect. And wxdirect depends on parsec and time package. So, I think we must add this dependency for wxcore.cabal file. Best Regards, -- shelarcy <shelarcy hotmail.co.jp> http://page.freett.com/shelarcy/ |
From: Eric Y. K. <eri...@gm...> - 2008-02-15 09:25:34
|
> $ runhaskell Setup.lhs configure --with-msc > -=-= Cabal executing: ./configure --with-hc=ghc --with-msc=-=- > operable program or batch file. > Configure failed. Hmm, I didn't realise you could pass in command line arguments like that. (I thought you had to go through --configure-opt) > Is this Distribution.Make module's problem? > Distribution.Simple's defaultMainWithHooks defaultUserHooks can run "./configure" > command on Windows environment. But It seems that Distribution.Make's defaultMain > can't run "./configure" commnad on Windows. Maybe we could make our own custom Setup.lhs, or check with the cabal people on #haskell > And I think we should care about at least one more point. > wxcore's makefile uses wxdirect. And wxdirect depends on parsec and time package. > So, I think we must add this dependency for wxcore.cabal file. Good call. [BTW: do you know any way to help out Gwern and the other people with build trouble?] -- Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow> PGP Key ID: 08AC04F9 |
From: shelarcy <she...@gm...> - 2008-02-16 07:32:30
|
Hi Eric, On Fri, 15 Feb 2008 18:25:23 +0900, Eric Y. Kow <eri...@gm...> wrote: >> $ runhaskell Setup.lhs configure --with-msc >> -=-= Cabal executing: ./configure --with-hc=ghc --with-msc=-=- >> operable program or batch file. >> Configure failed. I'm sorry about this error message is incorrect. I missed copy and pasted error message. Because my environment notice Japanese error message, so I had to convert error message in English. Below error message is correct one. $ runhaskell Setup.lhs configure --with-msc -=-= Cabal executing: ./configure --with-hc=ghc --with-msc=-=- '.' is not recognized as an internal or external command, operable program or batch file. Configure failed. > Hmm, I didn't realise you could pass in command line arguments like > that. (I thought you had to go through --configure-opt) You're right. But --with-msc, --with-opengl and --with-stc also work with Distribution.Make by unknown reason. >> Distribution.Simple's defaultMainWithHooks defaultUserHooks can run "./configure" >> command on Windows environment. But It seems that Distribution.Make's defaultMain >> can't run "./configure" commnad on Windows. > > Maybe we could make our own custom Setup.lhs, or check with the cabal > people on #haskell I checked Cabal source code. I found that Distribution.Simple's defaultUserHooks calls "sh configure", but Distribution.Make calls "./configure" directory. http://darcs.haskell.org/ghc-6.8/libraries/Cabal/Distribution/Simple.hs http://darcs.haskell.org/ghc-6.8/libraries/Cabal/Distribution/Make.hs http://darcs.haskell.org/cabal/Distribution/Simple.hs http://darcs.haskell.org/cabal/Distribution/Make.hs Windows doesn't have Unix shell in default, so "./configure" command causes above error. I made patch for this problem and sent to cabal-devel list. I hope cabal people will apply this patch and release new version soonly. http://www.haskell.org/pipermail/cabal-devel/2008-February/thread.html#2112 > [BTW: do you know any way to help out Gwern and the other people with > build trouble?] I don't know about wxGTK issues. I usually use Windows, and I don't have Linux environment. Best Regards, -- shelarcy <shelarcy hotmail.co.jp> http://page.freett.com/shelarcy/ |