[Haskell-cafe] Batteries included (Was: GHC is a monopoly compiler)
Theodore Lief Gannon
tanuki at gmail.com
Fri Sep 30 21:23:27 UTC 2016
D'oh, pkg-config of course. And I took an initial 'pacman -Syu' for granted
but I suppose that's not documented anywhere specific to Stack... probably
Interesting that you had to invoke through stack exec, tho... do you have
dynamic linking in your global config? AFAIK static is default on Windows,
so the DLLs don't matter after linking.
On Fri, Sep 30, 2016 at 7:36 AM, Tillmann Rendel <
rendel at informatik.uni-tuebingen.de> wrote:
> Theodore Lief Gannon wrote:
>> GTK on Windows is trivial at this point, with stack and LTS 7+. Try it
>> stack exec -- pacman -S mingw-w64-x86_64-gtk3
>> stack install gtk2hs-buildtools
>> stack install gtk3 --flag gtk3:build-demos
>> (I didn't start 100% clean but I don't *think* there are any other
>> pacman packages required...)
> I had to first work around a pacman issue:
> stack exec -- pacman -Sy
> stack exec -- pacman -S pacman-mirrors
> And then I had to install pkg-config:
> stack exec -- pacman -S mingw-w64-x86_64-pkg-config
> Then the installation commands you provided worked for me.
> However, I could not just run gtk2hs-demo-carsim but had to run the
> following to expose the GTK DLLs to the executable:
> stack exec -- gtk2hs-demo-carsim
> Not trivial, but certainly much better than it used to be.
> (Still too hard for beginners in some setups. For example, in Tübingen, we
> have an introductionary programming lecture with 500 students. We cannot
> provide installation support that scales to that number of students, so our
> programming environment has to install flawlessly on stock Windows laptops,
> preferably without having to use the command line at all. We want to spend
> the first lab session programming, not setting up.)
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> Only members subscribed via the mailman list are allowed to post.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe