2014-02-25 5 views
5

gc를 사용하여 MinGW/MSYS 및 wxWidget 3.0이 소스에서 빌드 된 Windows XP64를 실행하는 컴퓨터에 wxHaskell을 설치하려고했습니다.Windows에서 MinGW/MSYS를 사용하여 wxHaskell을 설치하는 방법

cabal install wx 

및 오류 있어요 : 내가 그랬어 내가 성공적으로 ++ (GCC)를 C에서 샘플 응용 프로그램을 작성하는 wxWidgets에 사용했다

... 
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. 

합니다. 그래서 나는 wxWidget 설치 작업을하고있다.

$ which wx-config 
/usr/local/bin/wx-config 

문제는 wx-config이 (MSYS에서 호출) 유닉스 쉘 스크립트, 그리고 음모 어떻게 든 시스템 경로에 있는지조차 인식하기를 거부 때문이다 : 그리고에 wx-config 있습니다. 내가 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 

나는 그것이 EXE 파일에 스크립트를 변환 할 수 있는지 확인하기 위해 질문 https://stackoverflow.com/questions/21998763/how-to-convert-msys-shell-scripts-to-windows-exe-files을 요청했지만 아무도 어떤 솔루션으로 대응하지 않습니다.

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/ (http://www.haskell.org/haskellwiki/WxHaskell/Windows)의 외부 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:\MinGW\msys\1.0\loc 
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:\temp\wxdirect-0.90.0.1>runhaskell Setup configure --extra-lib-dirs=c:\MinGW\lib --extra-include-dirs=c:\MinGW\include --extra-include-dirs=c:\MinGW\msys\1.0\local\include 
Configuring wxdirect-0.90.0.1... 

을 얻은 나는 용기를 우회 wxdirect.cabal 불통

Setup: At least the following dependencies are missing: 
containers >=0.2 && <0.5, strict -any 
> = 0.2 & & < 0.5이지만 통과 할 수 없음 엄격한.

+4

거 야 초이 질문에 wxHaskell을 구축하고, 추가하기 위해 wxWidgets에의 다운로드/건물 자동화하는 PowerShell 스크립트를 작성했습니다 Windows에 GUI를 설치하는 것은 너무 복잡합니다. –

+0

나는 여기서 나를 위해 일한 방법을 설명했다 : http://jpmoresmau.blogspot.fr/2010/04/wxwidgets-and-wxhaskell-on-windows.html –

답변