Solved Install Qt 4.8.7 on a Mac running OS X 10.11 (El Capitan)
-
Did you restart your build from scratch ?
-
just configure with "-nomake examples"
-
@SGaist : yes, I retried from scratch but still encountered the error.
I'm trying with nomake example.
-
@SGaist
Hi,
I have tried to compile Qt 4.8.7 on Mac OS X 10.11(El Capitan)
After make -j1
I got
3 warnings and 2 errors generated.
make[2]: *** [.obj/debug-shared/qpaintengine_mac.o] Error 1
make[1]: *** [debug-all] Error 2
make: *** [sub-gui-make_default-ordered] Error 2 -
Did you apply the patch I linked to ?
-
@SGaist
Thanks so much for your reply.
I didn't try the patch. I am new to this, and could you please tell me more detail about how to apply it? -
@FresaYuan
Hi
I think you just need to change the
src/gui/painting/qpaintengine_mac.cpp
file
All in red are deleted and this line is inserted:
CGColorSpaceRef colorSpace = CGDisplayCopyColorSpace(displayID);in the function
QCoreGraphicsPaintEngine::macDisplayColorSpaceThere is a tool to apply patches but in this case
"1 file changed, 1 insertion(+), 7 deletions(-)"
Seems ok to apply by hand. -
This post is deleted! -
@mrjj
Thanks a lot. After change the file, when input "sudo make -j1 install"
It runs almost half an hour. And end up with errors like this
make[3]: *** No rule to make target../../WebCore/debug/libwebcored.a', needed by
../../../../../../lib/QtWebKit.framework/QtWebKit_debug'. Stop.
make[2]: *** [debug-install] Error 2
make[1]: *** [sub-WebKit-qt-QtWebKit-pro-install_subtargets-ordered] Error 2
make: *** [sub-webkit-install_subtargets-ordered] Error 2 -
If you don't need webkit then disable its build. Also don't build as root.
-
@SGaist brew install qt4 works
Thanks a lot for your reply -
Hello,
Would it be possible to share the build of qt.4.8.7 for El Capitan?thanks.
-
brew install qt4
they have done all dirty works for you