Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed on M4 Mac mini. #28711

Open
Murasame233 opened this issue Nov 29, 2024 · 2 comments
Open

Build failed on M4 Mac mini. #28711

Murasame233 opened this issue Nov 29, 2024 · 2 comments
Labels

Comments

@Murasame233
Copy link

Murasame233 commented Nov 29, 2024

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
@ilya-fedin
Copy link
Contributor

Try to downgrade cmake

@Murasame233
Copy link
Author

Murasame233 commented Nov 30, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants