无法在mingW中构建PySide2

时间:2016-09-03 13:44:43

标签: c++ windows qt mingw pyside

这是我第二天正在构建PySide2

我无法通过windows上的mingW构建PySide2。(关于开发者订单)

来源和系统:

  • Windows 10 x64
  • Qt 5.6.1预建:(qt-opensource-windows-x86-mingw492-5.6.1-1.exe)
  • mingw 4.9.2(包括在Qt:Qt5.6.1 \ Tools \ mingw492_32)
  • perl(ActivePerl-5.24.0.2400)
  • cmake(cmake-3.6.1-win32-x86)
  • openssl和其他需要的库。
  • Pyside2 last repo(http://code.qt.io/cgit/pyside/pyside-setup.git/

(这些是用于构建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

提前感谢您的帮助。

0 个答案:

没有答案