windows下编译安装PyQt4,首先第一步编译安装SIP。编译环境为mingw。
1、配置:
python configure.py --platform win32-g++
2、编译
make
3、安装
make install
安装步骤报错:
make[1]: Entering directory `H:/sip/sipgen'
Makefile:29: warning: overriding recipe for target `.c.o'
Makefile:26: warning: ignoring old recipe for target `.c.o'
0000
/usr/bin/sh: -c: line 1: syntax error: unexpected end of file
make[1]: *** [install] Error 1
make[1]: Leaving directory `H:/sip/sipgen'
make: *** [install] Error 2
定位到sipgen中的Makefile,执行出错的地方为:
all: $(TARGET)
$(OFILES): $(HFILES)
$(TARGET): $(OFILES)
$(LINK) $(LFLAGS) -o $(TARGET) $(OFILES) $(LIBS)
install: $(TARGET)
@if not exist F:\Python33 mkdir F:\Python33
copy /y $(TARGET) F:\Python33\$(TARGET)
其中的第9行,若目录Python33不存在则创建。
问此问题是何原因导致?系统文件格式不兼容?该如何解决?