我在Ubuntu 13.10上並嘗試安裝wxHaskell。我從http://repos.codelite.org/wx3.0/ubuntu/
存儲庫安裝了wxWidgets 2.9。在Linux上安裝wxHaskell時生成錯誤
基本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包正在打破。有一個工作叉,但爲了我的愛,我不記得它在哪裏。如果你積極尋找它,我相信你會找到它的。 – Cubic
我在郵件列表上看到了這個參考,分叉在https://github.com/atzedijkstra/wxHaskell。但是,該URL現在重定向到主要的wxHaskell存儲庫。 – Taymon
你有沒有試過克隆它?我非常肯定,上次我嘗試過(這是不久前,去年11月,我認爲)。儘管如此,您必須逐個構建wxHaskell的組件。 – Cubic