如何使用MinGW / MSYS在Windows上安装wxHaskell
我试图将wx
Haskell安装到运行
Windows XP64的机器上,使用gcc从源代码构建MinGW / MSYS和wxWidget 3.0.我做了:
cabal install wx 并得到一个错误: ... Configuring wxc-0.90.0.4... setup.exe: wx-config: does not exist Failed to install wxc-0.90.0.4 cabal.exe: Error: some packages failed to install: wx-0.90.0.1 depends on wxc-0.90.0.4 which failed to install. wxc-0.90.0.4 failed during the configure step. The exception was: ExitFailure 1 wxcore-0.90.0.3 depends on wxc-0.90.0.4 which failed to install. 我已成功使用wxWidgets在C(gcc)中编写示例应用程序.所以我确实有一个工作的wxWidget安装.我有wx-config: $which wx-config /usr/local/bin/wx-config 问题是wx-config是一个unix shell脚本,并且cabal(从MSYS调用)以某种方式拒绝识别它,即使它在系统路径上.如果我在MSYS中运行wx-config,我得到类似的东西: $wx-config --cxxflags -I/usr/local/lib/wx/include/msw-unicode-3.0 -I/usr/local/include/wx-3.0 -D_LARGE FILE_SOURCE=unknown -DWXUSINGDLL -D__WXMSW__ -mthreads 我问了一个问题https://stackoverflow.com/questions/21998763/how-to-convert-msys-shell-scripts-to-windows-exe-files,看看是否可以将脚本转换为exe,但没有人回复任何解决方案. 这里还有一个相关的问题,wxHaskell installation on windows,另一个是wx 0.90.0.1 fails to install on Haskell Platform 2012.2.0.0 (WinXP).事实上,我找不到一个确认可行的答案.此外,这里的错误/设置似乎不同,或其中的答案似乎没有解决我的问题.特别是,我从https://sourceforge.net/projects/wxhaskell/files/wx-config-win/每https://sourceforge.net/projects/wxhaskell/files/wx-config-win/下载了一个外部wx-config.exe.但是运行wx-config.exe无法识别我的wxWidget安装,总是给我一个关于找不到wxWidgets的错误,如下所示: $./wx-config.exe --prefix=/usr/local/ wx-config Error: wxWidgets hasn't been found installed at 'C:MinGWmsys1.0loc al'. 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. 知道如何解决这个问题吗? 谢谢, – 更新 – @JP我试过: C:tempwxdirect-0.90.0.1>runhaskell Setup configure --extra-lib-dirs=c:MinGWlib --extra-include-dirs=c:MinGWinclude --extra-include-dirs=c:MinGWmsys1.0localinclude Configuring wxdirect-0.90.0.1... 得到了 Setup: At least the following dependencies are missing: containers >=0.2 && <0.5,strict -any 我调整了wxdirect.cabal以绕过容器> = 0.2&& < 0.5,但不能通过严格. 解决方法
我编写了一个powershell脚本,可以自动设置MinGW并下载/构建wxWidgets,以便为Windows 7构建wxHaskell.
https://github.com/cessationoftime/wxHaskell-Windows-Builder (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- windows-server-2003 – 在Windows 2003上自动禁用“管理您
- Windows Phone 7 – WP7上的Phonegap不加载图像
- windows – 重用Azure Web角色进行后端处理是一个好主意吗?
- 视频 – Windows Media Foundation使用IMFTransform将mp4电
- active-directory – 更改不同的域帐户而不是管理员Windows
- Windows中有什么好的命令行实用程序来监视进程?
- windows-phone-7 – 在Windows Phone中购买应用程序
- windows – 通过GPO在空闲时间后执行锁定屏幕
- Win7怎么用IIS发布网站系统 部署项目
- windows – 使用ShellExecuteEx启动外部应用程序并等待它初