Open yuanlei88 opened 1 year ago
Running C:\Program Files\CMake\bin\cmake.exe -S G:/MyQT/FluentUI/FluentUI -B G:/MyQT/FluentUI/build-FluentUI-Desktop_x86_windows_msvc2022_pe_32bit-Debug in G:\MyQT\FluentUI\build-FluentUI-Desktop_x86_windows_msvc2022_pe_32bit-Debug. CMake Error at src/CMakeLists.txt:17 (find_package): By not providing "FindQt6.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt6", but CMake did not find one.
Could not find a package configuration file provided by "Qt6" with any of the following names:
Qt6Config.cmake
qt6-config.cmake
Add the installation prefix of "Qt6" to CMAKE_PREFIX_PATH or set "Qt6_DIR" to a directory containing one of the above files. If "Qt6" provides a separate development package or SDK, be sure it has been installed.
-- Configuring incomplete, errors occurred! See also "G:/MyQT/FluentUI/build-FluentUI-Desktop_x86_windows_msvc2022_pe_32bit-Debug/CMakeFiles/CMakeOutput.log". CMake process exited with exit code 1.
假如我的Qt安装位置在D盘,那么这个
真的很感谢你能答复我
PS G:\MyQT\FluentUI\FluentUI\build> cmake -DMACK_PREFIX_PATH=D:\Qt\6.5.1\msvc2019_64 -DCMAKE_BUILD_TYPE=Release -GNinja "../../FluentUI"
-- The CXX compiler identification is GNU 4.9.2
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Strawberry/c/bin/c++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at src/CMakeLists.txt:17 (find_package):
Could not find a configuration file for package "Qt6" that is compatible
with requested version "".
The following configuration files were considered but not accepted:
D:/Qt/6.5.1/msvc2019_64/lib/cmake/Qt6/Qt6Config.cmake, version: 6.5.1 (64bit)
D:/Qt/6.4.3/msvc2019_64/lib/cmake/Qt6/Qt6Config.cmake, version: 6.4.3 (64bit)
-- Configuring incomplete, errors occurred! See also "G:/MyQT/FluentUI/FluentUI/build/CMakeFiles/CMakeOutput.log". 我已经卡在这边2天了 我不太会CMake 我最新才学习的QML 以前用过C++ 请帮助我
cmake -DCMACK_PREFIX_PATH="D:\Qt\6.5.1\msvc2019_64" -DCMAKE_BUILD_TYPE=Release -GNinja "../../FluentUI" -- The CXX compiler identification is GNU 4.9.2 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Strawberry/c/bin/c++.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at src/CMakeLists.txt:17 (find_package): Could not find a configuration file for package "Qt6" that is compatible with requested version "".
The following configuration files were considered but not accepted:
D:/Qt/6.5.1/msvc2019_64/lib/cmake/Qt6/Qt6Config.cmake, version: 6.5.1 (64bit)
D:/Qt/6.4.3/msvc2019_64/lib/cmake/Qt6/Qt6Config.cmake, version: 6.4.3 (64bit)
-- Configuring incomplete, errors occurred! See also "G:/MyQT/FluentUI/FluentUI/build/CMakeFiles/CMakeOutput.log".
额,很奇怪,我没碰到这种情况,你用x64 Native Tools Command Prompt for VS 2019工具打开试试。。vs2019安装了没?
我没装VS2019 我装的是2022
安装一下2019套件,用命令麻烦就直接用QtCreator打开运行
还有 您这边能不能发布一个我可以切入到其他项目的插件或者资源,我也没有看到您的学习资料 ,对于初学者的我 还是比较难以快速理解
我下载了VS2019 已经可以正常的编译完成了 我设置了Type =Release 但是我设置Release 提示我dll 版本不兼容 请再次帮助我
你用Release编译的,然后开发是Debug,就会碰到不兼容,可以切换到Release,或者编译FluentUI的时候用Debug
谢谢您的帮助 您能在指点我 FramelessHelper怎么给项目使用或者怎么编译成您这个方式给用户使用
用法一样的,先添加子目录add_subdirectory(framelesshelper),然后通过target_link_libraries链接到你的目标文件
谢谢,我参照你项目的写法,正确的切入进去了。fluentUI我没有嵌入。我看在sdk的qml有编译的文件,可以直接使用。
---原始邮件--- 发件人: @.> 发送时间: 2023年7月4日(周二) 晚上7:25 收件人: @.>; 抄送: @.**@.>; 主题: Re: [zhuzichu520/FluentUI] 编译 6.51 (Issue #181)
用法一样的,通过add_subdirectory(framelesshelper),然后通过target_link_libraries链接到你的目标文件
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
我在执行到 cmake -DCMAKE_PREFIX_PATH= -DCMAKE_BUILD_TYPE=Release -GNinja 我试了很多路径 都提示我缺少QT6.cmake 我不知道这里面的路径怎么填写,请给我帮助 谢谢