Hi Daniel,

On 27.02.2012, at 23:06, wagne...@seas.upenn.edu wrote:

> Quoting Axel Simon <axel.si...@in.tum.de>:
>
>> On 26.02.2012, at 05:57, wagne...@seas.upenn.edu wrote:
>>
>>> Quick update: got gtk2hs building on Windows, and with gtk's as  
>>> old as
>>> 2.18. I've pressed exactly enough buttons to see that earlier gtk's
>>> don't play well with gtk2hs, but not yet pressed enough buttons to
>>> know why.
>>
>> Ok, so what do you see? I suppose some c2hs problems?
>
> For GTK-2.14:
>
> Resolving dependencies...
> [1 of 2] Compiling SetupWrapper     ( SetupWrapper.hs,
> dist\setup\SetupWrapper.o )
> [2 of 2] Compiling Main             ( Setup.hs, dist\setup\Main.o )
> Linking .\dist\setup\setup.exe ...
> [1 of 2] Compiling Gtk2HsSetup      ( Gtk2HsSetup.hs,
> dist\setup-wrapper\Gtk2HsSetup.o )
> [2 of 2] Compiling Main             ( SetupMain.hs,
> dist\setup-wrapper\Main.o )
> Linking dist/setup-wrapper\setup.exe ...
> Configuring pango-0.12.2...
> Building pango-0.12.2...
> Preprocessing library pango-0.12.2...
> Graphics\Rendering\Pango\Structs.hsc:25:27: fatal error:
> glib-2.0/glib.h: No such file or directory

Uh? This is odd...
> compilation terminated.
> compiling dist\build\Graphics\Rendering\Pango\Structs_hsc_make.c
> failed (exit code 1)
> command was: C:\ghc\ghc-7.4.1\mingw\bin\gcc.exe -c
> dist\build\Graphics\Rendering\Pango\Structs_hsc_make.c -o
> dist\build\Graphics\Rendering\Pango\Structs_hsc_make.o
> -Wl,--hash-size=31 -Wl,--reduce-memory-overheads
> -D__GLASGOW_HASKELL__=704 -Dmingw32_BUILD_OS -Dmingw32_HOST_OS
> -Di386_BUILD_ARCH -Di386_HOST_ARCH -Idist\build\autogen -Idist\build
> -I. -Ic:/gtk/include/pango-1.0 -Ic:/gtk/include/glib-2.0

since the paths are there. Should we state "glib.h" only rather than  
"glib-2.0/glib.h"?
That's not quite the convention of Gtk+, though.

> -Ic:/gtk/lib/glib-2.0/include -Ic:/gtk/include/cairo
> -Ic:/gtk/include/libpng12 -mms-bitfields -DHAVE_NEW_CONTROL_EXCEPTION
> -IC:\ghc\ghc-7.4.1\lib\process-1.1.0.1\include -Idist\build\autogen
> -include dist\build\autogen\cabal_macros.h -Idist\build\autogen
> -include dist\build\autogen\cabal_macros.h -Ic:/gtk/include/glib-2.0
> -Ic:/gtk/lib/glib-2.0/include -Idist\build\autogen -include
> dist\build\autogen\cabal_macros.h
> -IC:\ghc\ghc-7.4.1\lib\directory-1.1.0.2\include -Idist\build\autogen
> -include dist\build\autogen\cabal_macros.h
> -IC:\ghc\ghc-7.4.1\lib\old-time-1.1.0.0\include -Idist\build\autogen
> -include dist\build\autogen\cabal_macros.h -Idist\build\autogen
> -include dist\build\autogen\cabal_macros.h -Idist\build\autogen
> -include dist\build\autogen\cabal_macros.h -Idist\build\autogen
> -include dist\build\autogen\cabal_macros.h -Idist\build\autogen
> -include dist\build\autogen\cabal_macros.h -Ic:/gtk/include/cairo
> -Ic:/gtk/include/libpng12 -Idist\build\autogen -include
> dist\build\autogen\cabal_macros.h -Idist\build\autogen -include
> dist\build\autogen\cabal_macros.h -Idist\build\autogen -include
> dist\build\autogen\cabal_macros.h -Idist\build\autogen -include
> dist\build\autogen\cabal_macros.h
> -IC:\ghc\ghc-7.4.1\lib\Win32-2.2.2.0\include -Idist\build\autogen
> -include dist\build\autogen\cabal_macros.h
> -IC:\ghc\ghc-7.4.1\lib\bytestring-0.9.2.1\include -Idist\build\autogen
> -include dist\build\autogen\cabal_macros.h
> -IC:\ghc\ghc-7.4.1\lib\base-4.5.0.0\include -Idist\build\autogen
> -include dist\build\autogen\cabal_macros.h -Idist\build\autogen
> -include dist\build\autogen\cabal_macros.h -Idist\build\autogen
> -include dist\build\autogen\cabal_macros.h
> -IC:\ghc\ghc-7.4.1\lib/include -Idist\build\autogen -include
> dist\build\autogen\cabal_macros.h -IC:/ghc/ghc-7.4.1/lib/include/
> cabal: Error: some packages failed to install:
> pango-0.12.2 failed during the building phase. The exception was:
> ExitFailure 1
>
> Hm, that -D__GLASGOW_HASKELL__=704 is a bit odd (though probably not
> the source of the problem).
>
> For GTK-2.12:
> <there are so many warnings here that the beginning of the output gets
> lost, but this is in building gio>
> [ 3 of 24] Compiling System.GIO.Enums (
> dist\build\System\GIO\Enums.hs, dist\build\System\GIO\Enums.o )
> [ 4 of 24] Compiling System.GIO.File.FileAttribute (
> dist\build\System\GIO\File\FileAttribute.hs,
> dist\build\System\GIO\File\FileAttribute.o )
> [ 5 of 24] Compiling System.GIO.Volumes.VolumeMonitor (
> dist\build\System\GIO\Volumes\VolumeMonitor.hs,
> dist\build\System\GIO\Volumes\VolumeMonitor.o )
> [ 6 of 24] Compiling System.GIO.Icons.ThemedIcon (
> dist\build\System\GIO\Icons\ThemedIcon.hs,
> dist\build\System\GIO\Icons\ThemedIcon.o )
>
> System\GIO\Icons\ThemedIcon.chs:42:5:
>     Not in scope: `themedIconPrependName'
>     Perhaps you meant `themedIconAppendName' (line 95)
> cabal: Error: some packages failed to install:
> gio-0.12.2 failed during the building phase. The exception was:
> ExitFailure 1
>

Ok so this might be one of those quirks where the Windows versions  
don't quite match the unix versions. An #ifdef should fix this.

Thanks for looking into this,
Axel

>> There have been some weird renamings on Windows which we fixed by
>> including a windows specific win.h file rather than gtk/gtk.h when
>> running c2hs. I think the messages somebody sent to the list are
>> similar.
>
> Thanks for the tip. I'll take a look.
> ~d
>
> ------------------------------------------------------------------------------
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft  
> developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3,  
> MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2
> _______________________________________________
> Gtk2hs-devel mailing list
> Gtk2hs-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Gtk2hs-devel mailing list
Gtk2hs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel

Reply via email to