Build failed on M4 Mac mini.
Steps to reproduce
Just follow the build guidelines in docs/building-mac.md
Expected behaviour
Should no error
Actual behaviour
show error
ninja: error: 'qtbase/src/widgets/Widgets_autogen/include_Debug/dialogs/ui_qfiledialog.h', needed by 'cmake_object_order_depends_target_Widgets_DEBUG', missing and no known rule to make it
Operating system
Macos 15.1.1
Version of Telegram Desktop
Dev branch
Installation source
Official Repo Dev branch
Crash ID
No response
Logs
CMake Warning at qtbase/cmake/FindWrapOpenGL.cmake:41 (target_link_libraries):
Target "SvgWidgets" requests linking to directory
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks".
Targets may link only to libraries. CMake is dropping the item.
Call Stack (most recent call first):
qtbase/cmake/QtFindPackageHelpers.cmake:130 (find_package)
qtbase/src/gui/configure.cmake:54 (qt_find_package)
qtbase/cmake/QtFeature.cmake:573 (include)
qtbase/src/CMakeLists.txt:12 (qt_feature_evaluate_features)
-- Generating done (1.5s)
-- Build files have been written to: /Users/cunyu/Playground/official/Libraries/qt_6.2.9
ninja: error: 'qtbase/src/widgets/Widgets_autogen/include_Debug/dialogs/ui_qfiledialog.h', needed by 'cmake_object_order_depends_target_Widgets_DEBUG', missing and no known rule to make it
[25/27](Libraries/qt_6.2.9): FAILED
Try to downgrade cmake
Try to downgrade cmake
Thanks, I can compile without error but warning still here, I don't know if this will effect the final binary.
I was failed with using cmake version 3.31.1
I down grade cmake to cmake version 3.30.5 and I success.
Hey there!
This issue was inactive for a long time and will be automatically closed in 30 days if there isn't any further activity. We therefore assume that the user has lost interest or resolved the problem on their own.
Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.
Thanks!