- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我在 Ubuntu 13.10 上并尝试安装 wxHaskell。我从 http://repos.codelite.org/wx3.0/ubuntu/
存储库安装了 wxWidgets 2.9。
基本的 cabal install wx
让我明白了
src/cpp/eljgrid.cpp:61:65: error: no matching function for call to ‘wxGridCellEditor::PaintBackground(wxRect, wxGridCellAttr*)’
self->PaintBackground(wxRect(x, y, w, h), (wxGridCellAttr*)attr);
^
[...]
wxcore-0.90.0.3 depends on wxc-0.90.0.4 which failed to install.
从 GitHub 存储库下载并从源代码构建让我:
setup: can't find source for Graphics/UI/WXCore/WxcClassInfo in src/haskell,
dist/build/autogen
Failed to install wxcore-0.90.1.0
cabal: Error: some packages failed to install:
wxcore-0.90.1.0 failed during the building phase. The exception was:
ExitFailure 1
Resolving dependencies...
Configuring wx-0.90.1.0...
cabal: At least the following dependencies are missing:
wxcore >=0.90.1.0
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: wx-0.90.1.0
trying: wx-0.90.1.0:+splitbase
rejecting: wxcore-0.90.0.3, 0.90.0.1, 0.90, 0.13.2.3, 0.13.2.1, 0.13.2,
0.12.1.7, 0.12.1.6, 0.12.1.5, 0.12.1.4, 0.12.1.3, 0.12.1.2, 0.12.1.1,
0.11.1.2, 0.11.1.1, 0.11.1.0, 0.11.0, 0.10.13.0, 0.10.13, 0.10.12, 0.10.11,
0.10.10, 0.10.9, 0.10.8, 0.10.7, 0.10.6, 0.10.5, 0.10.4, 0.10.3, 0.10.2,
0.10.1 (conflict: wx-0.90.1.0:splitbase => wxcore>=0.90.1.0)
这是怎么回事,需要什么来解决?
最佳答案
听起来你已经克隆了 wxHaskell 的 github 副本:
git clone https://github.com/wxHaskell/wxHaskell
然后你尝试安装 wxHaskell 而没有首先安装它的任何构建依赖项。请注意您的错误消息:
cabal: At least the following dependencies are missing:
wxcore >=0.90.1.0
那个版本的 wxcore 还没有被黑客攻击,但它在你刚刚克隆的 repo 中(参见 https://github.com/wxHaskell/wxHaskell/blob/master/wxcore/wxcore.cabal )。因此,首先转到 wxcore
目录,然后 cabal 安装该库。
编辑:注意依赖关系树变得更深。您需要先安装几个 wx*
包。
关于linux - 在 Linux 上安装 wxHaskell 时出现构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21783577/
imageviewer example显示如何在 ScrolledWindow 中显示图像。 如果我想在可用空间中显示图像,根据需要缩放位图怎么办? 我的 google-fu 在这方面让我失望了。 编
我正在使用 ghc 7.6.3。我从这里安装了 wxHaskell:https://github.com/wxHaskell/wxHaskell 它有效,示例程序编译并成功运行。 现在唯一的问题是我想
该页面:(http://en.wikibooks.org/wiki/Haskell/GUI)描述了要运行 wx 代码,可以安装 wx,然后必须“向 GHC 注册 wxHaskell” - 但我认为 w
每当我在 WxHaskell 中使用字符串时,它都会认为该字符串是一个字符(它只显示第一个字符)。它只在使用 WxHaskell 函数时发生,而不是像 putStrLn 这样的函数。 例如,错误发生在
我想在 OS X(Snow Leopard、MacBook Pro)上使用 wxHaskell。我能够成功安装库和下面的脚本: module Main where import Graphics.UI
在 Windows XP 计算机上安装 GHC 6.8.3 和 wxHaskell-0.10.3。作为二进制发行版安装,而不是从源代码构建。使用以下命令构建示例: ghc --make Paint.h
我坚持在 windows xp sp3 上安装 wxHaskell 我安装了 MinGW、MSYS 和 wx-config 带有安装程序的 MinGW 和 MSYS wx-config 添加目录到环境
对于在 Windows 上分发的基于 wxHaskell 的应用程序,我可以在应用程序旁边分发必要的 WX DLL,而不必单独安装 WX 吗? 我希望能够将应用程序作为 zip 文件分发,而不要求用户
我想在 Mac OS X 上分发一个 wxHaskell 应用程序。我该如何创建一个可以独立使用的 Mac OS X 应用程序,而无需用户安装任何额外的库? 我注意到 cabal-macosx制作 .
使用 Haskell、wxWidgets(通过 wxHaskell )或 GTK(通过 Gtk2HS )开发 GUI 应用程序哪个更好? 各有什么优缺点?它是否会根据您的目标平台而有所不同(我主要在
我正在尝试在 Windows 7 上创建一个 HelloWorld.exe,它演示了我在网上找到的一个非常简单的 wxHaskell 程序。代码如下: module HelloWorldWX wher
我在 Ubuntu 13.10 上并尝试安装 wxHaskell。我从 http://repos.codelite.org/wx3.0/ubuntu/ 存储库安装了 wxWidgets 2.9。 基本
我试图将 wxHaskell 安装到运行 Windows XP64 的机器上,使用 gcc 从源代码构建的 MinGW/MSYS 和 wxWidget 3.0。我做了: cabal install w
我正在尝试为 wxWidgets 3.0 构建 wxHaskell。我使用了来自 https://github.com/wxHaskell/wxHaskell 的最新 git 版本的 wxHaskel
我是一名优秀的程序员,十分优秀!