在Windows上安装wxHaskell [英] wxHaskell installation on windows

查看:137
本文介绍了在Windows上安装wxHaskell的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我坚持在windows xp sp3上安装wxHaskell安装MinGW,MSYS和wx-config

> MinGW和带安装程序的MSYS

wx-config将目录添加到环境变量WXWIN
$ b 和wxWigets中安装程序



当我键入时

  cabal install wx 

它说

 生成:src / haskell / Graphics / UI / WXCore / WxcClassTypes.hs 
读取类定义:
解析:src / include / wxc.h
解析:src / include / wxc_types.h
解析:src / include / wxc_glue.h
解析:src / include / db.h
解析:src / include / dragimage.h
解析:src / include / graphicscontext .h
解析:src / include / sound.h
解析:src / include / managed.h
解析:src / include / mediactrl.h
解析:src / include /previewframe.h
解析:src / include / printout.h
解析:src / include / textstream.h
解析:src / include / stc.h
解析:src / include / stc_gen.h
生成了539个类定义。
好​​的。
生成:src / haskell / Graphics / UI / WXCore / WxcClassInfo.hs
读取类定义:
解析:src / include / wxc.h
解析:src / include / wxc_types.h
解析:src / include / wxc_glue.h
解析:src / include / db.h
解析:src / include / dragimage.h
解析:src / include / graphicscontext.h
解析:src / include / sound.h
解析:src / include / managed.h
解析:src / include / mediactrl.h
解析: src / include / previewframe.h
解析:src / include / printout.h
解析:src / include / textstream.h
解析:src / include / stc.h
解析:src / include / stc_gen.h
生成381个类信息定义
ok。
解析:src / include / wxc.h
解析:src / include / wxc_types.h
解析:src / include / wxc_glue.h
解析:src / include / db .h
解析:src / include / dragimage.h
解析:src / include / graphicscontext.h
解析:src / include / sound.h
解析:src / include /managed.h
解析:src / include / mediactrl.h
解析:src / include / previewframe.h
解析:src / include / printout.h
解析:src /include/textstream.h
解析:src / include / stc.h
解析:src / include / stc_gen.h
ignore:解析错误:// WXCOLORREF wxColour_GetPixel(TSelf(wxColour) _obj);
生成:src / haskell / Graphics / UI / WXCore / WxcClassAL.hs
读取类定义:
解析:src / include / wxc.h
解析:src / include / wxc_types.h
解析:src / include / wxc_glue.h
解析:src / include / db.h
解析:src / include / dragimage.h
解析:src / include / graphicscontext.h
解析:src / include / sound.h
解析:src / include / managed.h
解析:src / include / mediactrl.h
解析: src / include / previewframe.h
解析:src / include / printout.h
解析:src / include / textstream.h
解析:src / include / stc.h
解析:src / include / stc_gen.h
为120个类生成了1560个方法。
生成:src / haskell / Graphics / UI / WXCore / WxcClassesMZ.hs
为123个类生成了2184个方法。
生成:src / haskell / Graphics / UI / WXCore / WxcClasses.hs
为243个总类生成了3744个总方法。
好​​的。
解析:src / eiffel / wxc_defs.e
解析:src / eiffel / wx_defs.e
解析:src / eiffel / stc.e
生成:src / haskell / Graphics /UI/WXCore/WxcDefs.hs
生成2454个常量定义
ok。

请使用--prefix标志(如wx-config --prefix = C:\ wxWidgets)
或设置环境变量WXWIN(如WXWIN = C:\ wxWidgets)
来指定你的wxWidgets的安装位置。
setup.exe:失败
cabal:错误:某些软件包安装失败:
wx-0.12.1.6取决于安装失败的wxcore-0.12.1.6。
wxcore-0.12.1.6在配置步骤失败。例外情况是:
ExitFailure 1

帮助〜



感谢!

解决方案

你有没有在你的PATH环境变量中的wx-config.exe,所以那么cabal可以找到它?



另外,您可以尝试定义环境变量WXCFG = gcc_dll \mswu。



<作为最后一次尝试:你是否用正确的设置编译了wxWidgets(例如: mingw32-make -f makefile.gcc BUILD = release MONOLITHIC = 1 SHARED = 1 UNICODE = 1 )?



这就是我得到的。我有类似的问题,但我完全没有按照安装指南,所以也许你错过了什么。


I stuck at installing wxHaskell on windows xp sp3

I installed MinGW, MSYS and wx-config

MinGW and MSYS with installer

wx-config with adding the directory to environment variable WXWIN

and wxWigets with installer

when I type

cabal install wx 

it says

generating: src/haskell/Graphics/UI/WXCore/WxcClassTypes.hs
reading class definitions:
parsing: src/include/wxc.h
parsing: src/include/wxc_types.h
parsing: src/include/wxc_glue.h
parsing: src/include/db.h
parsing: src/include/dragimage.h
parsing: src/include/graphicscontext.h
parsing: src/include/sound.h
parsing: src/include/managed.h
parsing: src/include/mediactrl.h
parsing: src/include/previewframe.h
parsing: src/include/printout.h
parsing: src/include/textstream.h
parsing: src/include/stc.h
parsing: src/include/stc_gen.h
generated 539 class definitions.
ok.
generating: src/haskell/Graphics/UI/WXCore/WxcClassInfo.hs
reading class definitions:
parsing: src/include/wxc.h
parsing: src/include/wxc_types.h
parsing: src/include/wxc_glue.h
parsing: src/include/db.h
parsing: src/include/dragimage.h
parsing: src/include/graphicscontext.h
parsing: src/include/sound.h
parsing: src/include/managed.h
parsing: src/include/mediactrl.h
parsing: src/include/previewframe.h
parsing: src/include/printout.h
parsing: src/include/textstream.h
parsing: src/include/stc.h
parsing: src/include/stc_gen.h
generated 381 class info definitions
ok.
parsing: src/include/wxc.h
parsing: src/include/wxc_types.h
parsing: src/include/wxc_glue.h
parsing: src/include/db.h
parsing: src/include/dragimage.h
parsing: src/include/graphicscontext.h
parsing: src/include/sound.h
parsing: src/include/managed.h
parsing: src/include/mediactrl.h
parsing: src/include/previewframe.h
parsing: src/include/printout.h
parsing: src/include/textstream.h
parsing: src/include/stc.h
parsing: src/include/stc_gen.h
ignore: parse error : //WXCOLORREF wxColour_GetPixel( TSelf(wxColour) _obj );
generating: src/haskell/Graphics/UI/WXCore/WxcClassesAL.hs
reading class definitions:
parsing: src/include/wxc.h
parsing: src/include/wxc_types.h
parsing: src/include/wxc_glue.h
parsing: src/include/db.h
parsing: src/include/dragimage.h
parsing: src/include/graphicscontext.h
parsing: src/include/sound.h
parsing: src/include/managed.h
parsing: src/include/mediactrl.h
parsing: src/include/previewframe.h
parsing: src/include/printout.h
parsing: src/include/textstream.h
parsing: src/include/stc.h
parsing: src/include/stc_gen.h
generated 1560 methods for 120 classes.
generating: src/haskell/Graphics/UI/WXCore/WxcClassesMZ.hs
generated 2184 methods for 123 classes.
generating: src/haskell/Graphics/UI/WXCore/WxcClasses.hs
generated 3744 total methods for 243 total classes.
ok.
parsing: src/eiffel/wxc_defs.e
parsing: src/eiffel/wx_defs.e
parsing: src/eiffel/stc.e
generating: src/haskell/Graphics/UI/WXCore/WxcDefs.hs
generated 2454 constant definitions
ok.

Please use the --prefix flag (as in wx-config --prefix=C:\wxWidgets)
or set the environment variable WXWIN (as in WXWIN=C:\wxWidgets)
to specify where is your installation of wxWidgets.
setup.exe: failed
cabal: Error: some packages failed to install:
wx-0.12.1.6 depends on wxcore-0.12.1.6 which failed to install.
wxcore-0.12.1.6 failed during the configure step. The exception was:
ExitFailure 1

help~

thanks!

解决方案

Do you have the wx-config.exe somewhere in your PATH environmnet variable, so that cabal can find it?

Additionally you might try to define the environment variable WXCFG=gcc_dll\mswu.

And as a last try: Did you compile wxWidgets with the correct settings (like so: mingw32-make -f makefile.gcc BUILD=release MONOLITHIC=1 SHARED=1 UNICODE=1)?

That's all I got. I had similar issues, but I simply didn't follow the installation guide exactly, so maybe you missed something.

这篇关于在Windows上安装wxHaskell的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆