-
Notifications
You must be signed in to change notification settings - Fork 796
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
Update macOS build instructions #995
Comments
I don't use macOS, so somebody else needs to update the wiki. Generally the process should be pretty similar to building on Linux. |
@trollixx thanks, I'll try to figure it out. Which version of Qt5 would you recommend? |
Always aim for the latest version, current you need at least 5.6. |
Looks like the problem is the dependency on qtwebkit instead of qtwebengine because the former is not shipped anymore with all Qt versions since 5.6. So it's not that easy to get the dependencies together. |
I have a homebrew formula if you want to try it. https://github.com/markwu/homebrew-personal/blob/master/Formula/zeal.rb Please keep But, It will failed to build zeal in newest cmake version |
it is error messages came from cmake 3.13.0 and qt 5.11.1.
|
Seems like you don't have |
The But new error messages comes, I still trying to figure it out:
|
It just tells you that Qt WebKit is missing. It's not part of the standard Qt distribution. |
Then, I need to figure out how to add it back, I got |
The last |
@markwu that's exactly the problem I had. :) |
I try to build qt |
Okay, I can build zeal in MacOS mojave now, but I don't like this solution.
I try this one https://github.com/OSGeo/homebrew-osgeo4mac/blob/master/Formula/qt5-webkit.rb, it can install qt5webkit with qt |
Maybe port to |
cmake |
Finally, I can build zeal with |
Here comes with my personal Tap https://github.com/markwu/homebrew-personal You can follow this instructions to install zeal with
If you want to install zeal with Use
|
But, there some different between qt 5.5qt 5.11.1 (Seems some html get the wrong css style)@trollixx Do you kown any issues about this, should I create a new one for this? |
I try to build zeal master branch with You can build master branch with the following instructions
|
Qt 5.12 just relased, you have reinstall qt5-webkit again, it will compiled against Qt 5.12.x.
|
Any volunteers to update the wiki? :) |
I'm testing this now will update in a few. |
To finish it up I had to do:
|
I needed to run
before |
@razzfox I can add these two libraries to formula dependency. |
are there any plans to port from Qt WebKit to Qt WebEngine? |
I just update my formula for recent code change. It can compile zeal stable version |
I finally updated the build instructions in the wiki. :) |
On MacOS, you need to enable loopback aliases other than 127.0.0.1 manually:
|
What will happened if I don't enable loopback aliases? |
Maybe I should create a daemon for this https://medium.com/@david.limkys/permanently-create-an-ifconfig-loopback-alias-macos-b7c93a8b0db ? |
sure yes |
I just add a After install zeal with head version, you can enable the daemon with
Than, the lookpback should be installed without problem. You can verify it with:
|
I don't use macOS much, it doesn't route all |
Mac doesn't route all Does linux and windows route all |
yes |
I have just pushed a change that replaces |
Do you use different port when change it to use 127.0.0.1? For many developers, they installed local http server, it use 127.0.0.1 and localhost. There might have some problems if you use the default 80 port. |
@trollixx I saw you use port other than 80. Thanks! I also removed the loopback alias daemon from this formula. |
Yes, a random non-priviliged port is selected on every run. |
I already update the wiki documents about building zeal on macOS. Since there is no need for qt5-webkit, I already removed it and related patches from my formula. It is so good that zeal adapt WebEngine, the life become easier. |
Zeal can be installed from macports: macports/macports-ports#7444. |
Is working as of 27th of August 2020 |
@RakibFiha Just following the wiki, it should be work. https://github.com/zealdocs/zeal/wiki/Build-Instructions-for-macOS |
Hey,
I tried the build instructions in the wiki but it seems Zeal moved to using cmake instead of qmake/make since those instructions were written.
Do you have any updated hints on building Zeal on a Mac?
The text was updated successfully, but these errors were encountered: