Install PySide6 failed due to QT not found in macos.
-
Hello,
When I follow the pyside6 installation guide as below page, error happens in building/installation.
https://doc.qt.io/qtforpython/gettingstarted-macOS.htmlbash-3.2$ python3 setup.py build --qtpaths=/Users/bean/Qt/6.4.0/macos/bin/qtpaths --build-tests --ignore-git --parallel=8 --qt-target-path=/Users/bean/Qt/6.4.0/ In directory /Users/bean/work/pyana/pyside/pyside-setup: Running command: /Library/Developer/CommandLineTools/usr/bin/python3 setup.py build --qtpaths=/Users/bean/Qt/6.4.0/macos/bin/qtpaths --build-tests --ignore-git --parallel=8 --qt-target-path=/Users/bean/Qt/6.4.0/ --internal-build-type=shiboken6 running build Could not find Qt via provided option --qt-target-path=/Users/bean/Qt/6.4.0/ Error was: ..... RuntimeError: Failed to configure CMake project: '/Users/bean/work/pyana/pyside/pyside-setup/sources/shiboken6/config.tests/target_qt_mkspec' Configure args were: /opt/homebrew/bin/cmake -G Ninja -S /Users/bean/work/pyana/pyside/pyside-setup/sources/shiboken6/config.tests/target_qt_mkspec -B /Users/bean/work/pyana/pyside/pyside-setup/build/config.tests/target_qt_mkspec_6oq28d6l -DCMAKE_PREFIX_PATH=/Users/bean/Qt/6.4.0/macos Return code: 1
Since I have install QT package and gave the directory path to qt-target-path, the error message still report could not find QT. (I have tried /Users/bean/Qt/, /Users/bean/Qt/6.4.0/macos)
Also, the path of qtpaths are given as /Users/bean/Qt/6.4.0/macos/bin/qtpathsDo anyone know how can I fix the installation?
Thanks
-
Hello,
I found the reason why PySide6 installation failed.
Here is another error messageRuntimeError: Failed to configure CMake project: '/Users/bean/work/pyana/pyside/pyside-setup/sources/shiboken6/config.tests/target_qt_info' Configure args were: /opt/homebrew/bin/cmake -G Ninja -S /Users/bean/work/pyana/pyside/pyside-setup/sources/shiboken6/config.tests/target_qt_info -B /Users/bean/work/pyana/pyside/pyside-setup/build/config.tests/target_qt_info_twe5ehbb -DQFP_QT_TARGET_PATH=/Users/bean/Qt/6.4.0/ 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. CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage CMakeOutput.log: The system is: Darwin - 21.6.0 - arm64
After I install "Ninja" with homebrew, the installation success.
So, that's nothing about QT path..... -
Just omit the --qt-target-path= option. It is for cross-builds only. qtpaths should be sufficient, or, better, have that version of Qt in PATH.
-
Hello,
I found the reason why PySide6 installation failed.
Here is another error messageRuntimeError: Failed to configure CMake project: '/Users/bean/work/pyana/pyside/pyside-setup/sources/shiboken6/config.tests/target_qt_info' Configure args were: /opt/homebrew/bin/cmake -G Ninja -S /Users/bean/work/pyana/pyside/pyside-setup/sources/shiboken6/config.tests/target_qt_info -B /Users/bean/work/pyana/pyside/pyside-setup/build/config.tests/target_qt_info_twe5ehbb -DQFP_QT_TARGET_PATH=/Users/bean/Qt/6.4.0/ 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. CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage CMakeOutput.log: The system is: Darwin - 21.6.0 - arm64
After I install "Ninja" with homebrew, the installation success.
So, that's nothing about QT path.....