haskell - How to build gi-gtk package on Windows 10 with stack -
i unable build test haskell 2010 program depends on package gi-gtk stack on windows 10. guidance on how appreciated.
specifically, stack build fails at/after dependency gi-gdk-3.0.3: configure message:
[1 of 1] compiling main ( c:\users\mikepi~1\appdata\local\temp\stack2692\gi-gdk-3.0.3\setup.hs, c:\users\mikepi~1\appdata\local\temp\stack2692\gi-gdk-3.0.3\.stack-work\dist\b7fec021\setup\main.o ) linking c:\users\mikepi~1\appdata\local\temp\stack2692\gi-gdk-3.0.3\.stack-work\dist\b7fec021\setup\setup.exe ... gi\gdk\structs\eventproximity.hs: commitandreleasebuffer: invalid argument (invalid character) the context stack version 1.2.0, resolver: lts-7.8 (ghc 8.0.1) , windows 10 version 10.0.14393 - using command prompt active code page: 65001 , font dejavu sans mono. mention latter because i've read elsewhere 'invalid argument (invalid character)' can unicode. code page 65001, localeencoding utf-8.
the following environmental variables have been set:
pkg_config_path=c:\msys64\mingw64\lib\pkgconfig xdg_data_dirs=c:\msys64\mingw64\share in light of wiki page: using haskell gi in windows
revised update: experimenting local copy of package, appears giving rise problem 'smart' single or double quotation mark characters in *.gir files @ (on system) c:\msys64\mingw64\share\gir-1.0. example, 'right single quotation mark' (u+2019) character. files affected in case gdk-3.0.gir , gtk-3.0.gir. translation of '*.gir' files *.hs files appears abort @ point first 'smart' quotation character encountered.
with haskell-gi-0.20 etc provided under resolver: nightly-2016-12-08 no longer issue requiring work around.
my original work around specific error identified in question edit *.gir files. found 'smart' quotation characters , replaced them corresponding ascii characters.
Comments
Post a Comment