From: Jinwoo L. <jin...@gm...> - 2005-03-29 05:57:52
|
Hi, I applied the patch files that Georg Martius posted before, and succeeded to build and install wxhaskell 0.9 using GHC 6.4. But when I try to compile using wx package or load wx package using GHCi, it fails to load wx package. The screen of loading GHCi is like following. C:\wxhaskell-0.9.src\samples\wx>ghci -package wx ___ ___ _ / _ \ /\ /\/ __(_) / /_\// /_/ / / | | GHC Interactive, version 6.4, for Haskell 98. / /_\\/ __ / /___| | http://www.haskell.org/ghc/ \____/\/ /_/\____/|_| Type :? for help. Loading package base-1.0 ... linking ... done. Loading package haskell98-1.0 ... linking ... done. Loading package mtl-1.0 ... linking ... done. Loading package lang-1.0 ... linking ... done. Loading package QuickCheck-1.0 ... linking ... done. Loading package util-1.0 ... linking ... done. Loading package data-1.0 ... linking ... done. Loading package concurrent-1.0 ... linking ... done. Loading package wxcore-0.9 ... linking ... ghc.exe: C:/msys/1.0/local/lib/wxcore2.o: unknown symbol `_wxcWakeUpIdle' ghc.exe: unable to load package `wxcore-0.9' Can someone tell me what I did wrong? Thanks, -- Jinwoo Lee Always remember that you are unique. Just like everyone else. jin...@gm... Patrick Scheibe wrote: >Hi, > >Hmm It looks like that the package isn't installed correctly. >It would be nice to see what the command > >ghc-pkg list > >brings on your machine. Did you install the package locally in your "home dir" >on windows or global? This line > > >>Using package config file: C:\Documents and Settings\Jeff >>Lasslett\Application Data\ghc/i386-mingw32-6.4/package.conf >> >> >seems a bit confusing to me because there is a change from backslash (window >separator style) to a normal slash. Could this be a kind of bug? > >Anyway, when the compilation of wxhaskell is done and you do a make install >then you should see that all the stuff is copied to a directory and after >that the package file of the ghc is updated succesfull. If everyting is >correct you should be able to make something like: > >mai99dnn@patrick:/data/software> ghci -package wx > ___ ___ _ > / _ \ /\ /\/ __(_) > / /_\// /_/ / / | | GHC Interactive, version 6.4.20050215, for Haskell >98. >/ /_\\/ __ / /___| | http://www.haskell.org/ghc/ >\____/\/ /_/\____/|_| Type :? for help. > >Loading package base-1.0 ... linking ... done. >Loading package haskell98-1.0 ... linking ... done. >Loading package mtl-1.0 ... linking ... done. >Loading package lang-1.0 ... linking ... done. >Loading package QuickCheck-1.0 ... linking ... done. >Loading package readline-1.0 ... linking ... done. >Loading package unix-1.0 ... linking ... done. >Loading package posix-1.0 ... linking ... done. >Loading package util-1.0 ... linking ... done. >Loading package data-1.0 ... linking ... done. >Loading package concurrent-1.0 ... linking ... done. >Loading package wxcore-0.9 ... linking ... done. >Loading package wx-0.9 ... linking ... done. >Prelude> :m +Graphics.UI.WX >Prelude Graphics.UI.WX> > >Then it is quite sure that you have a running wxhaskell. > >Cheers >Patrick > > >On Monday 28 March 2005 02:00, jeff lasslett wrote: > > >>Greetings, >> >>Firstly, my thanks to Patrick Scheibe for advising me of the diffs I >>needed to get wxhaskell-0.9 to compile and install. (See thread >>"Trouble creating wxhaskell 0.9"). >> >>I am now stuck trying to compile the HelloWorld.hs sample program. >>Here's a transcript of my attempt: >> >>D:\libraries\wxhaskell-0.9\samples\wx>ghc -v -package wx -o hw.exe >>HelloWorld.hs Glasgow Haskell Compiler, Version 6.4, for Haskell 98, >>compiled by GHC version 6.2.2 >>Using package config file: c:\ghc\ghc-6.4\package.conf >>Using package config file: C:\Documents and Settings\Jeff >>Lasslett\Application Data\ghc/i386-mingw32-6.4/package.conf >>Hsc static flags: -static >>*** Checking old interface for Main: >>*** Parser: >>*** Renamer/typechecker: >> >>HelloWorld.hs:4:0: >> Failed to load interface for `Graphics.UI.WX': >> Could not find module `Graphics.UI.WX': >> locations searched: >> Graphics/UI/WX.hi >> Graphics/UI/WX.hi-boot >>*** Deleting temp files >>Deleting: C:/DOCUME~1/JEFFLA~1/LOCALS~1/Temp/ghc1528.s >>Warning: deleting non-existent C:/DOCUME~1/JEFFLA~1/LOCALS~1/Temp/ghc1528.s >> >>What have I done wrong, or not done? >> >>Once again, any help would be appreciated. >> >>Cheers, >>Jeff >> >> >>------------------------------------------------------- >>SF email is sponsored by - The IT Product Guide >>Read honest & candid reviews on hundreds of IT Products from real users. >>Discover which products truly live up to the hype. Start reading now. >>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >>_______________________________________________ >>wxhaskell-users mailing list >>wxh...@li... >>https://lists.sourceforge.net/lists/listinfo/wxhaskell-users >> >> > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >wxhaskell-users mailing list >wxh...@li... >https://lists.sourceforge.net/lists/listinfo/wxhaskell-users > > > |