gpt4 book ai didi

makefile - 在 Windows 上构建 SIP (PyQt)

转载 作者:行者123 更新时间:2023-12-02 19:50:53 25 4
gpt4 key购买 nike

尝试构建sip从源包中,我在 building 上有无限循环步。我运行 make.exe,在按下 Ctrl+Brake 之前执行以下步骤:

cd sipgen
make
make[1]: Entering directory `C:/sip'
cd sipgen
make
make[2]: Entering directory `C:/sip'
cd sipgen
make
make[3]: Entering directory `C:/sip'
cd sipgen
make
make[4]: Entering directory `C:/sip'
...........................................
cd sipgen
make
make[n]: Entering directory `C:/sip'
^C

根目录下的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:\Python34\Lib\site-packages mkdir C:\Python34\Lib\site-packages
copy /y sipconfig.py C:\Python34\Lib\site-packages\sipconfig.py
copy /y C:\sip\sipdistutils.py C:\Python34\Lib\site-packages\sipdistutils.py

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

你知道原因吗?我可以解决这个问题,还是在 Windows 上无法解决?

PS。抱歉我的英语很糟糕

最佳答案

我只是复制另一个问题的答案

If you use python configure.py, the generated Makefiles are actually nmake makefiles. nmake is Microsoft's equivalent to make. You can run it by invoking nmake in a Visual Studio command prompt, if you have that installed.

For building with mingw, you have to indicate that you want to use that particular platform when creating the makefiles, as follows:

python configure.py --platform win32-g++

After that, invoking make works fine.

https://stackoverflow.com/a/16051239

关于makefile - 在 Windows 上构建 SIP (PyQt),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26314828/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com