tdesktop icon indicating copy to clipboard operation
tdesktop copied to clipboard

Build failed on M4 Mac mini.

Open Murasame233 opened this issue 1 year ago • 3 comments

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

Murasame233 avatar Nov 29 '24 08:11 Murasame233

Try to downgrade cmake

ilya-fedin avatar Nov 29 '24 22:11 ilya-fedin

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.

Murasame233 avatar Nov 30 '24 07:11 Murasame233

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!

github-actions[bot] avatar May 30 '25 02:05 github-actions[bot]