这是我第二天正在构建PySide2
我无法通过windows上的mingW构建PySide2。(关于开发者订单)
来源和系统:
(这些是用于构建PySide2的推荐版本) 下面的行是编译器的最后一个输出。
[ 64%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/templateptr.cpp.obj
[ 64%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/transform.cpp.obj
In file included from C:\Qt\PySide2\pyside-setup\sources\shiboken2\tests\libsample\transform.cpp:28:0:
C:\Qt\PySide2\pyside-setup\sources\shiboken2\tests\libsample\transform.cpp:30:20: error: expected unqualified-id before 'sizeof'
static inline bool isfinite(double a) { return _finite(a); }
^
C:\Qt\PySide2\pyside-setup\sources\shiboken2\tests\libsample\transform.cpp:30:20: error: expected ')' before 'sizeof'
C:\Qt\PySide2\pyside-setup\sources\shiboken2\tests\libsample\transform.cpp:30:20: error: expected ')' before 'sizeof'
C:\Qt\PySide2\pyside-setup\sources\shiboken2\tests\libsample\transform.cpp:30:20: error: expected ')' before 'sizeof'
tests\libsample\CMakeFiles\libsample.dir\build.make:1137: recipe for target 'tests/libsample/CMakeFiles/libsample.dir/transform.cpp.obj' failed
mingw32-make[2]: *** [tests/libsample/CMakeFiles/libsample.dir/transform.cpp.obj] Error 1
CMakeFiles\Makefile2:3040: recipe for target 'tests/libsample/CMakeFiles/libsample.dir/all' failed
mingw32-make[1]: *** [tests/libsample/CMakeFiles/libsample.dir/all] Error 2
makefile:137: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
error: Error compiling shiboken2
如您所见,它汇编了高达64%的源代码但错误\sources\shiboken2\tests\libsample\transform.cpp
。
提前感谢您的帮助。