when i try to build pyside6 on windows i came to error
[INFO]: running build
[ERROR]:
Could not find Qt. You can pass the --qt-target-path=<qt-dir> option as a hint where to find Qt.
.
.
.
RuntimeError:
Failed to configure CMake project: 'C:/Users/Ahmad/AppData/Local/Programs/Python/pyside-setup/sources/shiboken6/config.t ests/target_qt_mkspec'
Configure args were:
C:\Program Files\CMake\bin\cmake.EXE -G Ninja -S C:/Users/Ahmad/AppData/Local/Programs/Python/pyside-setup/sources/s hiboken6/config.tests/target_qt_mkspec -B C:/Users/Ahmad/AppData/Local/Programs/Python/pyside-setup/build/config.tests\t arget_qt_mkspec_u0ki60fo -DCMAKE_PREFIX_PATH=C:/Qt/6.6.1/mingw_64 -DCMAKE_C_COMPILER=cl.exe -DCMAKE_CXX_COMPILER=cl.exe
Return code: 1
with error:
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
Output:
-- Configuring incomplete, errors occurred!
Traceback (most recent call last):
File "C:\Users\Ahmad\AppData\Local\Programs\Python\pyside-setup\setup.py", line 42, in <module>
setup_runner.run_setup()
File "C:\Users\Ahmad\AppData\Local\Programs\Python\pyside-setup\build_scripts\setup_runner.py", line 263, in run_setup
raise RuntimeError(msg)
RuntimeError:
setup.py invocation failed with exit code: 1.
used command:
python setup.py build --qtpaths="C:\Qt\6.6.1\mingw_64\bin\qtpaths.exe" --openssl="C:\My Files\Apps To Path\OpenSSL\bin" --build-tests --ignore-git --parallel=8
It spells it out right there I believe.
You're missing the "ninja" build tool. Download it, install it, and put it in your PATH. Then retry.
I believe your setup.py command line looks correct.
K
Do you have clang installed? You'll need that for shiboken.
Failed to configure CMake project: 'C:/Users/Ahmad/AppData/Local/Programs/Python/pyside-setup/sources/shiboken6/config.tests/target_qt_mkspec'
Configure args were:
C:\Program Files\CMake\bin\cmake.EXE -G Ninja -S C:/Users/Ahmad/AppData/Local/Programs/Python/pyside-setup/sources/shiboken6/config.tests/target_qt_mkspec -B C:/Users/Ahmad/AppData/Local/Programs/Python/pyside-setup/build/config.tests\target_qt_mkspec_lxav6f86 -DCMAKE_PREFIX_PATH=C:/Qt/6.6.1/mingw_64 -DCMAKE_C_COMPILER=cl.exe -DCMAKE_CXX_COMPILER=cl.exe
Return code: 1
with error:
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
Output:
-- Configuring incomplete, errors occurred!
That's the other thing to verify. Is that the right name for the parameter? Looked funny to me, but it could just be being used to provide it with path to qmake instead. You could try that. Afaik that way of identifying where Qt is, is still present in the PySide build scripts.
I think it's --qmake-path=...
Or maybe err
--qmake=
K
(you can confirm this by looking in the build_scripts dir. One of those files are what parses the command line options.
You can avoid dealing with the qt paths when building by having the qtpaths you want to use in your PATH. But it seems that the problem lies in that you are mixing mingw and vs, I see in your log that you are using a Qt for mingw, are you certain ninja is on that path? Maybe you can try with a cmd with the vs variables in PATH and see if you have the same mechanism. It might be related to mingw
thanks for long explantion .. also @Keithel
but is there a way to only build pyside using mingw
and not VS at all?
and ninja is on his own path
i can copy it to another path maybe..
thanks again
Mingw and not VS at all, I don't know. It may be that PySide doesn't support the Qt MinGW build?
Ninja being in its own path should be fine - that's what I do. Just make sure it's on the PATH.
oh.. i see
ninja is on Path
Failed to configure CMake project: 'C:/Users/Ahmad/AppData/Local/Programs/Python/pyside-setup/sources/shiboken6/config.t ests/target_qt_mkspec'
Configure args were:
C:\Program Files\CMake\bin\cmake.EXE -G Ninja -S C:/Users/Ahmad/AppData/Local/Programs/Python/pyside-setup/sources/s hiboken6/config.tests/target_qt_mkspec -B C:/Users/Ahmad/AppData/Local/Programs/Python/pyside-setup/build/config.tests\t arget_qt_mkspec_5vxaww31 -DCMAKE_PREFIX_PATH=C:/Qt/6.6.1/mingw_64 -DCMAKE_C_COMPILER=cl.exe -DCMAKE_CXX_COMPILER=cl.exe
Return code: 1
with error:
CMake Error at CMakeLists.txt:5 (project):
The CMAKE_CXX_COMPILER:
cl.exe
is not a full path and was not found in the PATH.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
Output:
-- The CXX compiler identification is unknown
-- Configuring incomplete, errors occurred!
Traceback (most recent call last):
File "C:\Users\Ahmad\AppData\Local\Programs\Python\pyside-setup\setup.py", line 42, in <module>
setup_runner.run_setup()
File "C:\Users\Ahmad\AppData\Local\Progr
new error :)
maybe i should install VS and try again