Re: Gtk2Hs and wine
Paulo Tanimoto <tanimoto <at> u.arizona.edu>
2007-07-12 18:00:32 GMT
Axel,
Thanks for the help. I'm trying this on a fresh install of GHC and
Gtk2hs on wine, so I wonder if the issue is that something is not
getting registered. I confess I have little experience with wine.
This file does exist:
~/.wine/drive_c/Program Files/Gtk2Hs/libHSglib.a
Now here's something very interesting. I tried to load the program
from ghci and it worked. I do get some error messages, but the window
appears. One problem is that the font is huge, but let's focus on
priorities now.
$ wine ghci
Prelude> :l World.hs
Ok, modules loaded: Main.
Prelude Main> :main
Loading package mtl-1.0.1 ... linking ... done.
Loading package glib-0.9.11.3 ... linking ... done.
Loading package cairo-0.9.11.3 ... linking ... done.
Loading package gtk-0.9.11.3 ... linking ... done.
err:ole:CoGetClassObject class {4955dd33-b159-11d0-8fcf-00aa006bcc59}
not registered
err:ole:CoGetClassObject class {4955dd33-b159-11d0-8fcf-00aa006bcc59}
not registered
err:ole:create_server class {4955dd33-b159-11d0-8fcf-00aa006bcc59} not
registered
err:ole:CoGetClassObject no class object
{4955dd33-b159-11d0-8fcf-00aa006bcc59} could be created for context
0x7
fixme:font:ExtTextOutW flags ETO_NUMERICSLOCAL | ETO_NUMERICSLATIN |
ETO_PDY unimplemented
Below I'm presenting the output of ghc with the verbose flag, as you suggested.
Paulo
Here's the output when I run ghc with verbose mode (I'm not repeating
the last part, which is the same as before).
$ wine ghc -v --make World
Glasgow Haskell Compiler, Version 6.6.1, for Haskell 98, compiled by
GHC version 6.6.1
Using package config file: C:\ghc\ghc-6.6.1\package.conf
wired-in package base mapped to base-2.1.1
wired-in package rts mapped to rts-1.0
wired-in package haskell98 mapped to haskell98-1.0
wired-in package template-haskell mapped to template-haskell-2.1
Hsc static flags: -static
*** Chasing dependencies:
Chasing modules from: World.hs
Stable obj: []
Stable BCO: []
compile: input file World.hs
Created temporary directory: C:/windows/temp/ghc8_0
*** Checking old interface for main:Main:
[1 of 1] Skipping Main ( World.hs, World.o )
*** Deleting temp files:
Deleting: C:/windows/temp/ghc8_0/ghc8_0.s
Warning: deleting non-existent C:/windows/temp/ghc8_0/ghc8_0.s
Upsweep completely successful.
*** Deleting temp files:
Deleting:
link: linkables are ...
LinkableM (Wed Jul 4 21:48:39 2007) main:Main
[DotO World.o]
Linking World.exe ...
*** Linker:
C:\ghc\ghc-6.6.1\gcc -BC:\ghc\ghc-6.6.1\gcc-lib/ -v -o World.exe
-DDONT_WANT_WIN32_DLL_SUPPORT World.o -LC:\Program Files\Gtk2Hs
-LC:\Program Files\Gtk2Hs\lib -LC:/ghc/ghc-6.6.1
-LC:/ghc/ghc-6.6.1\gcc-lib -lHSgtk -lgtk-win32-2.0 -lgdk-win32-2.0
-latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lpangocairo-1.0
-lpango-1.0 -lcairo -lgmodule-2.0 -lgthread-2.0 -lHScairo -lcairo
-lHSglib -lgobject-2.0 -lglib-2.0 -lintl -liconv -lHSmtl -lHSbase
-lHSbase_cbits -lwsock32 -lmsvcrt -lkernel32 -luser32 -lshell32
-lHSrts -lm -lgmp -lwsock32 -u _base_GHCziBase_Izh_static_info -u
_base_GHCziBase_Czh_static_info -u _base_GHCziFloat_Fzh_static_info -u
_base_GHCziFloat_Dzh_static_info -u _base_GHCziPtr_Ptr_static_info -u
_base_GHCziWord_Wzh_static_info -u _base_GHCziInt_I8zh_static_info -u
_base_GHCziInt_I16zh_static_info -u _base_GHCziInt_I32zh_static_info
-u _base_GHCziInt_I64zh_static_info -u
_base_GHCziWord_W8zh_static_info -u _base_GHCziWord_W16zh_static_info
-u _base_GHCziWord_W32zh_static_info -u
_base_GHCziWord_W64zh_static_info -u
_base_GHCziStable_StablePtr_static_info -u
_base_GHCziBase_Izh_con_info -u _base_GHCziBase_Czh_con_info -u
_base_GHCziFloat_Fzh_con_info -u _base_GHCziFloat_Dzh_con_info -u
_base_GHCziPtr_Ptr_con_info -u _base_GHCziPtr_FunPtr_con_info -u
_base_GHCziStable_StablePtr_con_info -u _base_GHCziBase_False_closure
-u _base_GHCziBase_True_closure -u
_base_GHCziPack_unpackCString_closure -u
_base_GHCziIOBase_stackOverflow_closure -u
_base_GHCziIOBase_heapOverflow_closure -u
_base_GHCziIOBase_NonTermination_closure -u
_base_GHCziIOBase_BlockedOnDeadMVar_closure -u
_base_GHCziIOBase_BlockedIndefinitely_closure -u
_base_GHCziIOBase_Deadlock_closure -u
_base_GHCziIOBase_NestedAtomically_closure -u
_base_GHCziWeak_runFinalizzerBatch_closure -u
_base_GHCziConc_ensureIOManagerIsRunning_closure
Reading specs from C:/ghc/ghc-6.6.1/gcc-lib/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld
--with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw
--enable-threads --disable-nls
--enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry
--disable-shared --enable-sjlj-exceptions --enable-libgcj
--disable-java-awt --without-x --enable-java-gc=boehm
--disable-libgcj-debug --enable-interpreter
--enable-hash-synchronization --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.2 (mingw-special)
C:/ghc/ghc-6.6.1/gcc-lib/collect2.exe -Bdynamic -o World.exe -u
_base_GHCziBase_Izh_static_info -u _base_GHCziBase_Czh_static_info -u
_base_GHCziFloat_Fzh_static_info -u _base_GHCziFloat_Dzh_static_info
-u _base_GHCziPtr_Ptr_static_info -u _base_GHCziWord_Wzh_static_info
-u _base_GHCziInt_I8zh_static_info -u _base_GHCziInt_I16zh_static_info
-u _base_GHCziInt_I32zh_static_info -u
_base_GHCziInt_I64zh_static_info -u _base_GHCziWord_W8zh_static_info
-u _base_GHCziWord_W16zh_static_info -u
_base_GHCziWord_W32zh_static_info -u _base_GHCziWord_W64zh_static_info
-u _base_GHCziStable_StablePtr_static_info -u
_base_GHCziBase_Izh_con_info -u _base_GHCziBase_Czh_con_info -u
_base_GHCziFloat_Fzh_con_info -u _base_GHCziFloat_Dzh_con_info -u
_base_GHCziPtr_Ptr_con_info -u _base_GHCziPtr_FunPtr_con_info -u
_base_GHCziStable_StablePtr_con_info -u _base_GHCziBase_False_closure
-u _base_GHCziBase_True_closure -u
_base_GHCziPack_unpackCString_closure -u
_base_GHCziIOBase_stackOverflow_closure -u
_base_GHCziIOBase_heapOverflow_closure -u
_base_GHCziIOBase_NonTermination_closure -u
_base_GHCziIOBase_BlockedOnDeadMVar_closure -u
_base_GHCziIOBase_BlockedIndefinitely_closure -u
_base_GHCziIOBase_Deadlock_closure -u
_base_GHCziIOBase_NestedAtomically_closure -u
_base_GHCziWeak_runFinalizzerBatch_closure -u
_base_GHCziConc_ensureIOManagerIsRunning_closure
C:/ghc/ghc-6.6.1/gcc-lib/crt2.o C:/ghc/ghc-6.6.1/gcc-lib/crtbegin.o
-LC:\Program Files\Gtk2Hs -LC:\Program Files\Gtk2Hs\lib
-LC:/ghc/ghc-6.6.1 -LC:/ghc/ghc-6.6.1\gcc-lib
-LC:/ghc/ghc-6.6.1/gcc-lib World.o -lHSgtk -lgtk-win32-2.0
-lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0
-lpangocairo-1.0 -lpango-1.0 -lcairo -lgmodule-2.0 -lgthread-2.0
-lHScairo -lcairo -lHSglib -lgobject-2.0 -lglib-2.0 -lintl -liconv
-lHSmtl -lHSbase -lHSbase_cbits -lwsock32 -lmsvcrt -lkernel32 -luser32
-lshell32 -lHSrts -lm -lgmp -lwsock32 -lmingw32 -lgcc -lmoldname
-lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 -lmingw32
-lgcc -lmoldname -lmingwex -lmsvcrt C:/ghc/ghc-6.6.1/gcc-lib/crtend.o
C:\Program Files\Gtk2Hs/libHSgtk.a(Object__4.o)(.text+0x96):ghc292_0.hc:
undefined reference to `g_object_unref'
[...]
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/