windows 使用clang编译qt-6.9.1源代码

1.下载qt-everywhere-6.9.1.tar.xz

2.解压到磁盘

3.打开windows vs msvc工具shell

4.安装最新版llvm 我当前版本是20.1.7

https://github.com/llvm/llvm-project/tree/llvmorg-20.1.7

5.

set LIB=%LIB%;C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\Llvm\x64\lib\clang\19\lib\windows
..\configure.bat -opensource -debug-and-release -prefix "D:\software\Qt" -platform win32-clang-msvc -shared -- -DLLVM_ENABLE_RTTI=1 -DCMAKE_INSTALL_DIR="C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\Llvm\x64\bin" -DCMAKE_C_COMPILER="C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\Llvm\x64\bin\clang-cl.exe" -DCMAKE_CXX_COMPILER="C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\Llvm\x64\bin\clang-cl.exe" -DCMAKE_C_FLA
我在anaconda中利用pip install -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple some-package命令来安装pyqt6-tools,但是出现以下问题,我该如何解决(我已安装pyqt6 6.9.1版本) (mypyqt6) C:\Windows\System32>pip install -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple pyqt6-tools Looking in indexes: https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple Collecting pyqt6-tools Using cached https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/82/bc/dcea094a26697ba76ae73dec030dd4070836b1e7e810d304d4917518423b/pyqt6_tools-6.4.2.3.3-py3-none-any.whl (29 kB) Collecting click (from pyqt6-tools) Using cached https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/85/32/10bb5764d90a8eee674e9dc6f4db6a0ab47c8c4d0d83c27f7c39ac415a4d/click-8.2.1-py3-none-any.whl (102 kB) Collecting pyqt6==6.4.2 (from pyqt6-tools) Using cached https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/7a/4e/4acc0ebe1f3231217bee58ec0f90ef6bdfbd6e0b7d08420c5ddb97780288/PyQt6-6.4.2-cp37-abi3-win_amd64.whl (6.4 MB) INFO: pip is looking at multiple versions of pyqt6-tools to determine which version is compatible with other requirements. This could take a while. Collecting pyqt6-tools Using cached https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/74/a6/68019af089cc24d653f6800892cce32e9c174dc3f79bb21aa4ffddb8ca0e/pyqt6_tools-6.3.1.3.3-py3-none-any.whl (29 kB) Collecting pyqt6==6.3.1 (from pyqt6-tools) Using cached https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/58/d0/3bd4d381258b97fa3c36ab1bf204f509142435f25594a3062675b295f922/PyQt6-6.3.1-cp37-abi3-win_amd64.whl (6.3 MB) Collecting pyqt6-tools Using cached https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/d0/5a/125c5c43772d4d94554e9c31ccca9645c5e69f1c7aba4e43d5b427dc4d42/pyqt6_tools-6.1.0.3.2-py3-none-any.whl (29 kB) Collecting pyqt6==6.1.0 (from pyqt6-tools) Using cached https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/64/be/d2b48e53d5767f25d607fa5a598e2af6ef9e1e8475bd6bfc60b27a5f34ea/PyQt6-6.1.0.tar.gz (946 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error × Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [26 lines of output] pyproject.toml: line 7: using &#39;[tool.sip.metadata]&#39; to specify the project metadata is deprecated and will be removed in SIP v7.0.0, use &#39;[project]&#39; instead Traceback (most recent call last): File "E:\anaconda3\envs\mypyqt6\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module> main() File "E:\anaconda3\envs\mypyqt6\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main json_out["return_val"] = hook(**hook_input["kwargs"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\anaconda3\envs\mypyqt6\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 178, in prepare_metadata_for_build_wheel whl_basename = backend.build_wheel(metadata_directory, config_settings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\YTY\AppData\Local\Temp\pip-build-env-m7f7ok6e\overlay\Lib\site-packages\sipbuild\api.py", line 28, in build_wheel project = AbstractProject.bootstrap(&#39;wheel&#39;, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\YTY\AppData\Local\Temp\pip-build-env-m7f7ok6e\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 74, in bootstrap project.setup(pyproject, tool, tool_description) File "C:\Users\YTY\AppData\Local\Temp\pip-build-env-m7f7ok6e\overlay\Lib\site-packages\sipbuild\project.py", line 633, in setup self.apply_user_defaults(tool) File "C:\Users\YTY\AppData\Local\Temp\pip-install-nrxivkyv\pyqt6_86697c6dd74241689c5e5edae3ec9b10\project.py", line 60, in apply_user_defaults super().apply_user_defaults(tool) File "C:\Users\YTY\AppData\Local\Temp\pip-build-env-m7f7ok6e\overlay\Lib\site-packages\pyqtbuild\project.py", line 51, in apply_user_defaults super().apply_user_defaults(tool) File "C:\Users\YTY\AppData\Local\Temp\pip-build-env-m7f7ok6e\overlay\Lib\site-packages\sipbuild\project.py", line 243, in apply_user_defaults self.builder.apply_user_defaults(tool) File "C:\Users\YTY\AppData\Local\Temp\pip-build-env-m7f7ok6e\overlay\Lib\site-packages\pyqtbuild\builder.py", line 49, in apply_user_defaults raise PyProjectOptionException(&#39;qmake&#39;, sipbuild.pyproject.PyProjectOptionException [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details.
06-12
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值