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

Building error of Zeal #6

Open
ivaquero opened this issue Dec 28, 2021 · 5 comments
Open

Building error of Zeal #6

ivaquero opened this issue Dec 28, 2021 · 5 comments

Comments

@ivaquero
Copy link

ivaquero commented Dec 28, 2021

I am a Mac M1 user, I got this error during building Zeal. I searched answer, it is raised by lack of Qt5WebEngine in qt@5 on Mac M1. Is there any workaround?

  "Qt5WebEngineWidgets" with any of the following names:

    Qt5WebEngineWidgetsConfig.cmake
    qt5webenginewidgets-config.cmake

  Add the installation prefix of "Qt5WebEngineWidgets" to CMAKE_PREFIX_PATH
  or set "Qt5WebEngineWidgets_DIR" to a directory containing one of the above
  files.  If "Qt5WebEngineWidgets" provides a separate development package or
  SDK, be sure it has been installed.
Call Stack (most recent call first):
  src/libs/browser/CMakeLists.txt:13 (find_package)


-- Configuring incomplete, errors occurred!
See also "/tmp/zeal-20211229-7242-cvbgtk/build/CMakeFiles/CMakeOutput.log".
@markwu
Copy link
Owner

markwu commented Dec 29, 2021

Please change qt@5 to qt inside zeal.rb formula. I should be work.

@ivaquero
Copy link
Author

I tried. However, I got this error.

  CMake did not find one.

  Could not find a package configuration file provided by "Qt5" with any of
  the following names:

    Qt5Config.cmake
    qt5-config.cmake

  Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
  to a directory containing one of the above files.  If "Qt5" provides a
  separate development package or SDK, be sure it has been installed.

-- Configuring incomplete, errors occurred!
See also "/tmp/zeal-20211230-72533-1u92ncl/build/CMakeFiles/CMakeOutput.log".

@markwu
Copy link
Owner

markwu commented Dec 31, 2021

Do you uninstall qt@5?

@ivaquero
Copy link
Author

ivaquero commented Dec 31, 2021

Sure, I uninstalled. I found that the qt@5 does not have Arm support for WebEngineWidgets. And Zeal's cmake files require qt5.

I tried to find a workaround using Conda + Rosetta 2. However, the App was ''successfully built'', but when I clicked the buttons, it broke.

WechatIMG137

@markwu
Copy link
Owner

markwu commented Jan 1, 2022

Sorry, then I have no idea.

I checked my qt dependency, it seems stay with qt@5 not qt. I think qt@5 is the right dependency. Maybe I messed up something in my local formula.

I removed everything related to qt, qt@5, zeal and rebuild it again with 'qt@5' , it just work.

But, my machine is intel-based macbook pro with macOS 11.6.2, maybe that's the reason.

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

No branches or pull requests

2 participants