From: Dmitri P. <mai...@da...> - 2005-01-12 15:54:25
|
Hello! I've downloaded wxHaskell, ran the wxhaskell-register.bat file and now try to build a minimal wxHaskell program. For this purpose, I tried to start GHCi using following command ghci -package wx GuiTest.hs GHCi crashed with following error messages: <error-messages> GHC Interactive, version 6.2.2, for Haskell 98. http://www.haskell.org/ghc/ Type :? for help. Loading package base ... linking ... done. Loading package haskell98 ... linking ... done. Loading package lang ... linking ... done. Loading package concurrent ... linking ... done. Loading package QuickCheck ... linking ... done. Loading package readline ... linking ... C:/ghc/ghc-6.2.2/HSreadline.o: unknown symbol `_rl_redisplay_function' ghc.exe: unable to load package `readline' </error-messages> What am I doing wrong? TIA Dmitri Pissarenko PS: Here is the code of the application module Main where import Graphics.UI.WXCore main :: IO () main = run gui gui :: IO () gui = do frame <- frameCreateTopFrame "Hello World" windowShow frame windowRaise frame return () -- Dmitri Pissarenko Software Engineer http://dapissarenko.com |
From: Sebastian S. <seb...@gm...> - 2005-01-12 16:25:20
|
On Wed, 12 Jan 2005 16:54:18 +0100, Dmitri Pissarenko <mai...@da...> wrote: > GHCi crashed with following error messages: > <snip> > PS: Here is the code of the application > > module Main where > > import Graphics.UI.WXCore > > main :: IO () > main > = run gui > > gui :: IO () > gui > = do frame <- frameCreateTopFrame "Hello World" > windowShow frame > windowRaise frame > return () > -- Although I'm not sure if it's related to your problem, you probably don't want to work with the low-level "core" wx functionality. Something like this might work (just off the top of my head, not tested): import Graphics.UI.WX main = start gui gui = do f <- frame [text := "Hello World", resizable := True] b <- button f [ text := "Quit", on command := close f] set f [layout := column 5 [label "A Button: ", widget b]] -- Sebastian Sylvan +46(0)736-818655 UIN: 44640862 |
From: Dmitri P. <mai...@da...> - 2005-01-12 18:44:18
|
Hello! Thanks for your answer! I've tried to launch GHCi with your program. I'm getting the same error message. What else could be the reason for the problem? TIA Dmitri Pissarenko -- Dmitri Pissarenko Software Engineer http://dapissarenko.com |
From: Dmitri P. <mai...@da...> - 2005-01-12 19:39:20
Attachments:
log.txt
|
Hello! When I try to compile the program with GHC, I also get an error: GuiTest2.hs:1: Failed to load interface for `Graphics.UI.WX': Could not find interface file for `Graphics.UI.WX' (use -v to see a list of the files searched for) Verbose list of packages searched is given in the attachment. Perhaps some library definition is wrong. I appreciate any hint concerning making the program compile. TIA Dmitri Pissarenko |
From: Daan L. <da...@cs...> - 2005-01-13 11:12:53
|
Hi Dmitri, First of all, read the documentation that comes with wxHaskell, in particular the "quick start" guide. > When I try to compile the program with GHC, I also get an error: > > GuiTest2.hs:1: > Failed to load interface for `Graphics.UI.WX': > Could not find interface file for `Graphics.UI.WX' > (use -v to see a list of the files searched for) As said in the guide, you need to give the "-package wx" option to ghc (and ghci too). The other problem: > Loading package readline ... linking ... > C:/ghc/ghc-6.2.2/HSreadline.o: unknown symbol `_rl_redisplay_function' > ghc.exe: unable to load package `readline' You use ghc 6.2.2, but the binary wxHaskell is for ghc 6.2.1. The new accidentally includes readline in the util package, but readline does not work on windows. So, you need to either: - easy: get ghc-6.2.1 and use wxHaskell with that - moderate: get the latest wxHaskell from cvs and build it yourself with ghc-6.2.2 (doable if you follow the build instructions *exactly*) I hope this helps, -- Daan. |
From: shelarcy <she...@ca...> - 2005-01-13 13:21:25
|
> > Loading package readline ... linking ... > > C:/ghc/ghc-6.2.2/HSreadline.o: unknown symbol `_rl_redisplay_function' > > ghc.exe: unable to load package `readline' > > You use ghc 6.2.2, but the binary wxHaskell is for ghc 6.2.1. The new > accidentally includes readline in the util package, but readline does > not work on windows. So, you need to either: > > - easy: get ghc-6.2.1 and use wxHaskell with that > - moderate: get the latest wxHaskell from cvs and build it yourself with > ghc-6.2.2 (doable if you follow the build instructions *exactly*) But cvs-version has many probrem that build on Visual Studio .NET 2003 (VC 7.1). On Fri, 03 Dec 2004 02:29:56 +0900, shelarcy <she...@ca...> wrote: > CVS version what using wxWidget that compiled by VisualStudio.Net 2003; > In wxWidget-2.5.3, program terminate as soon as program start. > In wxWidget-2.4.2, program notice error as soon as program start. (Visual Studio notice error !) Current Version developed on VC6, then CVS version doen't fix VC 7,1's problem. (VC 7.1 supplied for VC7 user by Microsoft (without Academic version user), so you don't care about VC7.) -- shelarcy <shelarcy capella.freemail.ne.jp> http://page.freett.com/shelarcy/ |
From: Daan L. <da...@cs...> - 2005-01-13 14:07:42
|
Hi Shelarcy, >> - moderate: get the latest wxHaskell from cvs and build it yourself with >> ghc-6.2.2 (doable if you follow the build instructions *exactly*) > > > But cvs-version has many probrem that build on Visual Studio .NET 2003 (VC > 7.1). Maybe, but you can always build with mingw32 or visual C 6.0. > Current Version developed on VC6, then CVS version doen't fix VC 7,1's > problem. (VC 7.1 supplied for VC7 user by Microsoft (without Academic > version user), so you don't care about VC7.) Uuh, I do not understand what you say here. However, you are right that I only use visual C 6.0 since I do not have visual C 7.0 -- I do care about it -- I have written parts of it :-) -- but I don't think it is currently worth the effort to see how it can work wxHaskell. One problem might be that you compile .NET code? -- Daan. |
From: shelarcy <she...@ca...> - 2005-01-13 14:43:34
|
> Maybe, but you can always build with mingw32 or visual C 6.0. > On Thu, 13 Jan 2005 15:07:28 +0100, Daan Leijen <da...@cs...> wrote: >> Current Version developed on VC6, then CVS version doen't fix VC 7,1's >> problem. (VC 7.1 supplied for VC7 user by Microsoft (without Academic >> version user), so you don't care about VC7.) > > Uuh, I do not understand what you say here. However, you are right that > I only use visual C 6.0 since I do not have visual C 7.0 -- I do care > about it -- I have written parts of it :-) -- but I don't think it is > currently worth the effort to see how it can work wxHaskell. One problem > might be that you compile .NET code? OK. I see. I hesitated saying that you must use VC 7.1, Because current version wxWidget made by VC6, and I don't jugde the problems in wxc code or wxWidget code. But you must (* notice *) that on wxHaskell website. Becase Microsoft campaign theSpoke Premium supply the VC7.1 low price for student, then perhaps newbie must use VC 7.1....and he see same problem. I usally use VC 7.1, because I compile C++ hard template code, for example, Boost library. But It has no relation with wxHaskell project. If I bind hard template C++ code to wxc, I will negociate improve that problem that time. Thank you. -- shelarcy <shelarcy capella.freemail.ne.jp> http://page.freett.com/shelarcy/ |
From: shelarcy <she...@ca...> - 2005-01-13 14:58:40
|
On Thu, 13 Jan 2005 23:43:46 +0900, shelarcy <she...@ca...> wrote: > I hesitated saying that you must use VC 7.1, Because current version > wxWidget > made by VC6, and I don't jugde the problems in wxc code or wxWidget code. > But you must (* notice *) that on wxHaskell website. Becase Microsoft > campaign > theSpoke Premium supply the VC7.1 low price for student, then perhaps > newbie must use VC 7.1....and he see same problem. I forgot tell that. This is GLCavas's problem. http://sourceforge.net/mailarchive/message.php?msg_id=10201165 -- shelarcy <shelarcy capella.freemail.ne.jp> http://page.freett.com/shelarcy/ |
From: Dmitri P. <mai...@da...> - 2005-01-13 17:06:29
|
Hello! Thanks for the advice! I installed GHC 6.2.1 and now it works. Best regards Dmitri Pissarenko -- Dmitri Pissarenko Software Engineer http://dapissarenko.com |