1
- 我檢查了wxPython的和wxWidgets的分成兩個目錄
C:\dev\wx\wxPtyhon
和C:\dev\wx\wxWidgets
:
mkdir /D c:\dev\wx\ cd c:\dev\wx git clone https://github.com/wxWidgets/wxPython.git git clone https://github.com/wxWidgets/wxWidgets.git
- 我成功構建wxWidgets的運行:
cd wxwidgets\build\msw mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=release
的問題是,當我嘗試構建wxPython,但無法找到wx.h
如何在Windows上使用mingw構建wxPython主幹?
WXWIN=c:\dev\wx\wxWidgets :: Note c:\dev\wx\wxWidgets\include\wx\wx.h exists ! C:\dev\wx\wxPython>python setup.py COMPILER=mingw32 BUILD_GLCANVAS=0 BUILD_ACTIVEX=0 WX_CONFIG="wx-config" build_ext --inplace Preparing CORE... Preparing STC... Preparing GIZMOS... running build_ext running build_ext building '_core_' extension c:\dev\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -DSWIG_TYPE_TABLE=_wxPython_table -DSWIG_PYTHON_OUTPUT_TUPLE -DWXP_USE_THREA D=1 -UNDEBUG -Iinclude -Isrc -IC:\Python25\include -IC:\Python25\PC -c src/helpers.cpp -o build\temp.win32-2.5\Release\src\helpe rs.o -O3 In file included from src/helpers.cpp:17:0: include/wx/wxPython/wxPython_int.h:35:19: fatal error: wx/wx.h: No such file or directory compilation terminated. error: command 'gcc' failed with exit status 1
我會交叉發佈到wxPython郵件列表,如果我是你的話。我相信有人可以幫助你。 –
https://web.archive.org/web/20071013073037/http://www.mingw.org/cms/node/17 from [wxwidgets list](http://wxwidgets.10942.n7.nabble.com/ wxPython的內置式窗口與 - GCC-cygwin的-MinGW的-td64819.html) – n611x007