Makefile与Windows不兼容?

时间:2017-07-07 22:03:28

标签: python makefile pyqt pyqt4 python-sip

我试图安装Pyforms库,所以我尝试将PyQt4安装为依赖项。 PyQt4有SIP作为依赖,所以我去尝试从头开始构建该文件(当通过Pip安装时,我被告知sipconfig.py不存在,出于某种原因?即便如此,我仍然最终遇到这个问题)。

不幸的是,Microsoft Visual Studio似乎并不喜欢SIP自动生成的Makefile。当我尝试运行nmake时,我会遇到无数错误。我能在这里做些什么,或者我不可能继续下去? (或者,为我提供一个简单的PyQt4 / SIP二进制安装程序)。我担心自己会超出自己的深度。

以下是我尝试运行NMAKE时出现的错误:

NMAKE : warning U4001: command file can be invoked only from command line
NMAKE : warning U4001: command file can be invoked only from command line
NMAKE : warning U4001: command file can be invoked only from command line
NMAKE : warning U4001: command file can be invoked only from command line
NMAKE : warning U4001: command file can be invoked only from command line
NMAKE : warning U4001: command file can be invoked only from command line
NMAKE : warning U4001: command file can be invoked only from command line
NMAKE : fatal error U1073: don't know how to make 'all:'

这些是Makefile的内容:

all:
    cd sipgen
    $(MAKE)
    @cd ..
    cd siplib
    $(MAKE)
    @cd ..

install:
    cd sipgen
    $(MAKE) install
    @cd ..
    cd siplib
    $(MAKE) install
    @cd ..
    @if not exist "C:\Program Files (x86)\Python36-32\Lib\site-packages" mkdir "C:\Program Files (x86)\Python36-32\Lib\site-packages"
    copy /y sipconfig.py "C:\Program Files (x86)\Python36-32\Lib\site-packages\sipconfig.py"
    copy /y C:\Users\***\Downloads\sip-4.19.3\sip-4.19.3\sipdistutils.py "C:\Program Files (x86)\Python36-32\Lib\site-packages\sipdistutils.py"

clean:
    cd sipgen
    $(MAKE) clean
    @cd ..
    cd siplib
    $(MAKE) clean
    @cd ..

0 个答案:

没有答案