PySide2 Windows build error
-
I am attempting to build PySide2 for Windows and am having some difficulty. I am attempting to follow the instructions found here. I have installed CMake 3.3.1, OpenSSL 1.0.2j, QT 5.6 and 5.9, Python 3.6, and Visual Studio 2015 Enterprise edition.
I added the location of NMake to my System PATH variable so the setup script's find_executable function will work correctly (a step that appears to be omitted from the link above). I have attempted the setup script using the dev, 5.9 and 5.6 branches and they all fail with the same issue.
I will include the build output and the relevant CMake log files below in responses since I can't attach them (grr).
-
E:\Users\Nate\My Docs\workspace\pyside-setup>"C:\Program Files\Python36\python.exe" setup.py install --qmake="C:\Qt\5.6\msvc2015_64\bin\qmake.exe" --cmake="C:\Program Files\CMake\bin\cmake.exe" --openssl="C:\OpenSSL\bin\openssl.exe" running install running build Initializing submodules for PySide2 version 5.6 All submodules present... Creating tracking branch 5.6 for submodule shiboken2 Running process in E:\Users\Nate\My Docs\workspace\pyside-setup\sources\shiboken2: git branch --track 5.6 origin/5.6 Branch 5.6 set up to track remote branch 5.6 from origin. Checking out submodule shiboken2 to branch 5.6 (from (HEAD detached at 23c1e50)) Running process in E:\Users\Nate\My Docs\workspace\pyside-setup\sources\shiboken2: git checkout 5.6 Your branch is up-to-date with 'origin/5.6'. Previous HEAD position was 23c1e50... AbstractMetaBuilder: Fix type check Switched to branch '5.6' Creating tracking branch 5.6 for submodule pyside2 Running process in E:\Users\Nate\My Docs\workspace\pyside-setup\sources\pyside2: git branch --track 5.6 origin/5.6 Branch 5.6 set up to track remote branch 5.6 from origin. Checking out submodule pyside2 to branch 5.6 (from (HEAD detached at 1c9637a)) Running process in E:\Users\Nate\My Docs\workspace\pyside-setup\sources\pyside2: git checkout 5.6 Your branch is up-to-date with 'origin/5.6'. Previous HEAD position was 1c9637a... Fix missing python error handling in SignalManager::callPythonMetaMethod Switched to branch '5.6' Creating tracking branch 5.6 for submodule pyside2-tools Running process in E:\Users\Nate\My Docs\workspace\pyside-setup\sources\pyside2-tools: git branch --track 5.6 origin/5.6 Branch 5.6 set up to track remote branch 5.6 from origin. Checking out submodule pyside2-tools to branch 5.6 (from (HEAD detached at 7fe3256)) Running process in E:\Users\Nate\My Docs\workspace\pyside-setup\sources\pyside2-tools: git checkout 5.6 Your branch is up-to-date with 'origin/5.6'. Previous HEAD position was 7fe3256... pyrcc: Default to Python 3 Switched to branch '5.6' Creating tracking branch 5.6 for submodule pyside2-examples Running process in E:\Users\Nate\My Docs\workspace\pyside-setup\sources\pyside2-examples: git branch --track 5.6 origin/5.6 Branch 5.6 set up to track remote branch 5.6 from origin. Checking out submodule pyside2-examples to branch 5.6 (from (HEAD detached at c8c9f64)) Running process in E:\Users\Nate\My Docs\workspace\pyside-setup\sources\pyside2-examples: git checkout 5.6 Your branch is up-to-date with 'origin/5.6'. Previous HEAD position was c8c9f64... change all scripts to respect the new PySide2 module name. Switched to branch '5.6' Checking out submodule wiki to branch master (from (HEAD detached at ac1b69f)) Running process in E:\Users\Nate\My Docs\workspace\pyside-setup\wiki: git checkout master Your branch is up-to-date with 'origin/master'. Previous HEAD position was ac1b69f... Updated My Practice: Porting python scripts to PySide2 (markdown) Switched to branch 'master' Python architecture is 64bit nmake was found in C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\nmake.exe Inserting path "C:\Program Files\Python36\Scripts" to environment Inserting path "C:\Qt\5.6\msvc2015_64\bin" to environment Inserting path "E:\Users\Nate\My Docs\workspace\pyside-setup\pyside3_install\py3.6-qt5.6.2-64bit-release\bin" to environment ============================== Package version: 5.6 Build type: Release Build tests: False --- Make path: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\nmake.exe Make generator: NMake Makefiles Make jobs: --- Script directory: E:\Users\Nate\My Docs\workspace\pyside-setup Sources directory: E:\Users\Nate\My Docs\workspace\pyside-setup\sources Build directory: E:\Users\Nate\My Docs\workspace\pyside-setup\pyside3_build\py3.6-qt5.6.2-64bit-release Install directory: E:\Users\Nate\My Docs\workspace\pyside-setup\pyside3_install\py3.6-qt5.6.2-64bit-release Python site-packages install directory: E:\Users\Nate\My Docs\workspace\pyside-setup\pyside3_install\py3.6-qt5.6.2-64bit-release\Lib\site-packages --- Python executable: C:\Program Files\Python36\python.exe Python includes: C:\Program Files\Python36\include Python library: C:\Program Files\Python36\libs\python36.lib Python prefix: C:\Program Files\Python36 Python scripts: C:\Program Files\Python36\Scripts --- Qt qmake: C:\Qt\5.6\msvc2015_64\bin\qmake.exe Qt version: 5.6.2 Qt bins: C:/Qt/5.6/msvc2015_64/bin Qt docs: C:/Qt/Docs/Qt-5.6 Qt plugins: C:/Qt/5.6/msvc2015_64/plugins --- OpenSSL libs: C:\OpenSSL\bin\openssl.exe ============================== Creating build folder E:\Users\Nate\My Docs\workspace\pyside-setup\pyside3_build\py3.6-qt5.6.2-64bit-release... Creating install folder E:\Users\Nate\My Docs\workspace\pyside-setup\pyside3_install\py3.6-qt5.6.2-64bit-release... Building module shiboken2... Creating module build folder E:\Users\Nate\My Docs\workspace\pyside-setup\pyside3_build\py3.6-qt5.6.2-64bit-release\shiboken2... Configuring module shiboken2 (E:\Users\Nate\My Docs\workspace\pyside-setup\sources\shiboken2)... Running process in E:\Users\Nate\My Docs\workspace\pyside-setup\pyside3_build\py3.6-qt5.6.2-64bit-release\shiboken2: "C:\Program Files\CMake\bin\cmake.exe" -G "NMake Makefiles" -DQT_QMAKE_EXECUTABLE='C:\Qt\5.6\msvc2015_64\bin\qmake.exe' -DBUILD_TESTS=False -DQt5Help_DIR=C:/Qt/Docs/Qt-5.6 -DCMAKE_BUILD_TYPE=Release "-DCMAKE_INSTALL_PREFIX=E:\Users\Nate\My Docs\workspace\pyside-setup\pyside3_install\py3.6-qt5.6.2-64bit-release" "E:\Users\Nate\My Docs\workspace\pyside-setup\sources\shiboken2" "-DPYTHON_EXECUTABLE=C:\Program Files\Python36\python.exe" "-DPYTHON_INCLUDE_DIR=C:\Program Files\Python36\include" "-DPYTHON_LIBRARY=C:\Program Files\Python36\libs\python36.lib" -DQT_SRC_DIR=C:/Qt/5.6/msvc2015_64 -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=yes -DUSE_PYTHON_VERSION=3.3 -- The C compiler identification is MSVC 19.0.24215.1 -- The CXX compiler identification is MSVC 19.0.24215.1 -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe -- broken CMake Error at C:/Program Files/CMake/share/cmake-3.8/Modules/CMakeTestCCompiler.cmake:51 (message): The C compiler "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: E:/Users/Nate/My Docs/workspace/pyside-setup/pyside3_build/py3.6-qt5.6.2-64bit-release/shiboken2/CMakeFiles/CMakeTmp Run Build Command:"nmake" "/NOLOGO" "cmTC_22019\fast" "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\nmake.exe" -f CMakeFiles\cmTC_22019.dir\build.make /nologo -L CMakeFiles\cmTC_22019.dir\build Building C object CMakeFiles/cmTC_22019.dir/testCCompiler.c.obj C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\cl.exe @C:\Users\Nate\AppData\Local\Temp\nm4134.tmp testCCompiler.c Linking C executable cmTC_22019.exe "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_22019.dir --manifests -- C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\link.exe /nologo @CMakeFiles\cmTC_22019.dir\objects1.rsp @C:\Users\Nate\AppData\Local\Temp\nm425E.tmp RC Pass 1 failed to run. NMAKE : fatal error U1077: '"C:\Program Files\CMake\bin\cmake.exe"' : return code '0xffffffff' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\nmake.exe"' : return code '0x2' Stop. CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:2 (project) -- Configuring incomplete, errors occurred! See also "E:/Users/Nate/My Docs/workspace/pyside-setup/pyside3_build/py3.6-qt5.6.2-64bit-release/shiboken2/CMakeFiles/CMakeOutput.log". See also "E:/Users/Nate/My Docs/workspace/pyside-setup/pyside3_build/py3.6-qt5.6.2-64bit-release/shiboken2/CMakeFiles/CMakeError.log". error: Error configuring shiboken2
-
(CMakeError.log) E:\Users\Nate\My Docs\workspace\pyside-setup>"C:\Program Files\Python36\python.exe" setup.py install --qmake="C:\Qt\5.6\msvc2015_64\bin\qmake.exe" --cmake="C:\Program Files\CMake\bin\cmake.exe" --openssl="C:\OpenSSL\bin\openssl.exe" running install running build Initializing submodules for PySide2 version 5.6 All submodules present... Creating tracking branch 5.6 for submodule shiboken2 Running process in E:\Users\Nate\My Docs\workspace\pyside-setup\sources\shiboken2: git branch --track 5.6 origin/5.6 Branch 5.6 set up to track remote branch 5.6 from origin. Checking out submodule shiboken2 to branch 5.6 (from (HEAD detached at 23c1e50)) Running process in E:\Users\Nate\My Docs\workspace\pyside-setup\sources\shiboken2: git checkout 5.6 Your branch is up-to-date with 'origin/5.6'. Previous HEAD position was 23c1e50... AbstractMetaBuilder: Fix type check Switched to branch '5.6' Creating tracking branch 5.6 for submodule pyside2 Running process in E:\Users\Nate\My Docs\workspace\pyside-setup\sources\pyside2: git branch --track 5.6 origin/5.6 Branch 5.6 set up to track remote branch 5.6 from origin. Checking out submodule pyside2 to branch 5.6 (from (HEAD detached at 1c9637a)) Running process in E:\Users\Nate\My Docs\workspace\pyside-setup\sources\pyside2: git checkout 5.6 Your branch is up-to-date with 'origin/5.6'. Previous HEAD position was 1c9637a... Fix missing python error handling in SignalManager::callPythonMetaMethod Switched to branch '5.6' Creating tracking branch 5.6 for submodule pyside2-tools Running process in E:\Users\Nate\My Docs\workspace\pyside-setup\sources\pyside2-tools: git branch --track 5.6 origin/5.6 Branch 5.6 set up to track remote branch 5.6 from origin. Checking out submodule pyside2-tools to branch 5.6 (from (HEAD detached at 7fe3256)) Running process in E:\Users\Nate\My Docs\workspace\pyside-setup\sources\pyside2-tools: git checkout 5.6 Your branch is up-to-date with 'origin/5.6'. Previous HEAD position was 7fe3256... pyrcc: Default to Python 3 Switched to branch '5.6' Creating tracking branch 5.6 for submodule pyside2-examples Running process in E:\Users\Nate\My Docs\workspace\pyside-setup\sources\pyside2-examples: git branch --track 5.6 origin/5.6 Branch 5.6 set up to track remote branch 5.6 from origin. Checking out submodule pyside2-examples to branch 5.6 (from (HEAD detached at c8c9f64)) Running process in E:\Users\Nate\My Docs\workspace\pyside-setup\sources\pyside2-examples: git checkout 5.6 Your branch is up-to-date with 'origin/5.6'. Previous HEAD position was c8c9f64... change all scripts to respect the new PySide2 module name. Switched to branch '5.6' Checking out submodule wiki to branch master (from (HEAD detached at ac1b69f)) Running process in E:\Users\Nate\My Docs\workspace\pyside-setup\wiki: git checkout master Your branch is up-to-date with 'origin/master'. Previous HEAD position was ac1b69f... Updated My Practice: Porting python scripts to PySide2 (markdown) Switched to branch 'master' Python architecture is 64bit nmake was found in C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\nmake.exe Inserting path "C:\Program Files\Python36\Scripts" to environment Inserting path "C:\Qt\5.6\msvc2015_64\bin" to environment Inserting path "E:\Users\Nate\My Docs\workspace\pyside-setup\pyside3_install\py3.6-qt5.6.2-64bit-release\bin" to environment ============================== Package version: 5.6 Build type: Release Build tests: False --- Make path: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\nmake.exe Make generator: NMake Makefiles Make jobs: --- Script directory: E:\Users\Nate\My Docs\workspace\pyside-setup Sources directory: E:\Users\Nate\My Docs\workspace\pyside-setup\sources Build directory: E:\Users\Nate\My Docs\workspace\pyside-setup\pyside3_build\py3.6-qt5.6.2-64bit-release Install directory: E:\Users\Nate\My Docs\workspace\pyside-setup\pyside3_install\py3.6-qt5.6.2-64bit-release Python site-packages install directory: E:\Users\Nate\My Docs\workspace\pyside-setup\pyside3_install\py3.6-qt5.6.2-64bit-release\Lib\site-packages --- Python executable: C:\Program Files\Python36\python.exe Python includes: C:\Program Files\Python36\include Python library: C:\Program Files\Python36\libs\python36.lib Python prefix: C:\Program Files\Python36 Python scripts: C:\Program Files\Python36\Scripts --- Qt qmake: C:\Qt\5.6\msvc2015_64\bin\qmake.exe Qt version: 5.6.2 Qt bins: C:/Qt/5.6/msvc2015_64/bin Qt docs: C:/Qt/Docs/Qt-5.6 Qt plugins: C:/Qt/5.6/msvc2015_64/plugins --- OpenSSL libs: C:\OpenSSL\bin\openssl.exe ============================== Creating build folder E:\Users\Nate\My Docs\workspace\pyside-setup\pyside3_build\py3.6-qt5.6.2-64bit-release... Creating install folder E:\Users\Nate\My Docs\workspace\pyside-setup\pyside3_install\py3.6-qt5.6.2-64bit-release... Building module shiboken2... Creating module build folder E:\Users\Nate\My Docs\workspace\pyside-setup\pyside3_build\py3.6-qt5.6.2-64bit-release\shiboken2... Configuring module shiboken2 (E:\Users\Nate\My Docs\workspace\pyside-setup\sources\shiboken2)... Running process in E:\Users\Nate\My Docs\workspace\pyside-setup\pyside3_build\py3.6-qt5.6.2-64bit-release\shiboken2: "C:\Program Files\CMake\bin\cmake.exe" -G "NMake Makefiles" -DQT_QMAKE_EXECUTABLE='C:\Qt\5.6\msvc2015_64\bin\qmake.exe' -DBUILD_TESTS=False -DQt5Help_DIR=C:/Qt/Docs/Qt-5.6 -DCMAKE_BUILD_TYPE=Release "-DCMAKE_INSTALL_PREFIX=E:\Users\Nate\My Docs\workspace\pyside-setup\pyside3_install\py3.6-qt5.6.2-64bit-release" "E:\Users\Nate\My Docs\workspace\pyside-setup\sources\shiboken2" "-DPYTHON_EXECUTABLE=C:\Program Files\Python36\python.exe" "-DPYTHON_INCLUDE_DIR=C:\Program Files\Python36\include" "-DPYTHON_LIBRARY=C:\Program Files\Python36\libs\python36.lib" -DQT_SRC_DIR=C:/Qt/5.6/msvc2015_64 -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=yes -DUSE_PYTHON_VERSION=3.3 -- The C compiler identification is MSVC 19.0.24215.1 -- The CXX compiler identification is MSVC 19.0.24215.1 -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe -- broken CMake Error at C:/Program Files/CMake/share/cmake-3.8/Modules/CMakeTestCCompiler.cmake:51 (message): The C compiler "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: E:/Users/Nate/My Docs/workspace/pyside-setup/pyside3_build/py3.6-qt5.6.2-64bit-release/shiboken2/CMakeFiles/CMakeTmp Run Build Command:"nmake" "/NOLOGO" "cmTC_22019\fast" "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\nmake.exe" -f CMakeFiles\cmTC_22019.dir\build.make /nologo -L CMakeFiles\cmTC_22019.dir\build Building C object CMakeFiles/cmTC_22019.dir/testCCompiler.c.obj C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\cl.exe @C:\Users\Nate\AppData\Local\Temp\nm4134.tmp testCCompiler.c Linking C executable cmTC_22019.exe "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_22019.dir --manifests -- C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\link.exe /nologo @CMakeFiles\cmTC_22019.dir\objects1.rsp @C:\Users\Nate\AppData\Local\Temp\nm425E.tmp RC Pass 1 failed to run. NMAKE : fatal error U1077: '"C:\Program Files\CMake\bin\cmake.exe"' : return code '0xffffffff' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\nmake.exe"' : return code '0x2' Stop. CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:2 (project) -- Configuring incomplete, errors occurred! See also "E:/Users/Nate/My Docs/workspace/pyside-setup/pyside3_build/py3.6-qt5.6.2-64bit-release/shiboken2/CMakeFiles/CMakeOutput.log". See also "E:/Users/Nate/My Docs/workspace/pyside-setup/pyside3_build/py3.6-qt5.6.2-64bit-release/shiboken2/CMakeFiles/CMakeError.log". error: Error configuring shiboken2
-
Hi and welcome to devnet,
The first thing that comes to mind is to retry in a path without any spaces in it.