-
Notifications
You must be signed in to change notification settings - Fork 5.8k
PhantomJS 2 does not build on OS X 10.0 (Yosemite) #12630
Comments
Duplicate of #12622. |
#12622 is about PhantomJS 1 not building ob Yosemite, this one is about PhantomJS 2. Why a duplicate? |
I got past the problem by replacing the affected file (src/qt/qtbase/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm) with this one: It looks like that's part of Qt 5.3.2. |
Haven't tried this yet, but might work – http://blog.antas.cz/phantomjs-os-x-yosemite. The idea is to just download & use a pre-compiled phantomjs binary. homebrew recipe, to contrast, is building phantomjs from source. |
Yeah, if you just want to try a snapshot of PhantomJS 2 on Yosemite, that works. I have binaries here: https://github.com/bprodoehl/phantomjs/releases That macosx binary was built on Mavericks, but ran for me on Yosemite. I think moving from Qt 5.3.0 to Qt 5.3.2 will fix the build on Yosemite, though. At least, it did for me. |
Updating |
hello, I tried the replacement of that file but didn't work for me, I have more errors now |
@antonioreyna What errors are you seeing? |
let me check. While i show you the osx output i am having also problems with centos, im getting this:
|
OSX output
another
....
and more :( |
Hi all, will be a solution? |
Please fix this. We really want to use phantomjs2 on Mac OSX. Thank you! |
I'm also having this issue. Unfortunately, replacing (src/qt/qtbase/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm) with: After switching it out, I'm now seeing these errors:
|
I managed to get phantomjs 2.0.0 to build on Yosemite 10.10.1 by editing src/qt/qtbase/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm
taken from Homebrew/legacy-homebrew#29837 |
@lentan1029 Good Job, your solution is functional. |
Got the same errors on Yosemite 10.10.1 and worked through the wiki checks and @lentan1029's solution. What's the final output when building supposed to be? Getting this at the end, and it's still reporting 1.9.8 with phantom.version.
|
When will be this fix merged to 2.0 branch? Thanks |
Thanks @lentan1029 for the pointer in the right direction. I applied your patch and compiled OSX/ubuntu/centos binaries for myself and others at https://github.com/eugene1g/phantomjs/releases |
@lentan1029 got it right for Yosemite 10.10.2 |
I can also confirm that @lentan1029 got it right for Yosemite 10.10.2 |
...with an upstream Qt patch from https://qt.gitorious.org/qt/qtbase/commit/70e4428b6f1c6a4bad112203f67ee7d22107616c
Issue ariya#12630: Support compiling on OSX10.10...
@eugene1g Your solution worked perfectly. Thanks! |
Issue ariya#12630: Support compiling on OSX10.10...
brew install phantomjs |
...with an upstream Qt patch from https://qt.gitorious.org/qt/qtbase/commit/70e4428b6f1c6a4bad112203f67ee7d22107616c
...with an upstream Qt patch from https://qt.gitorious.org/qt/qtbase/commit/70e4428b6f1c6a4bad112203f67ee7d22107616c
...with an upstream Qt patch from https://qt.gitorious.org/qt/qtbase/commit/70e4428b6f1c6a4bad112203f67ee7d22107616c
@antonioreyna I had the same problem when building PhantomJS 2 from sources on Mac OS X Yosemite. It was caused by left-over files from a previous build on Windows. |
+1 @kamote - it just works |
@antonioreyna how did you solve compilation errors? I'm having the same problem on Yosemite 10.10.5, Xcode (both 6.4 and 7.0 beta 6) and none of the aforementioned solutions work for me. |
@mareknov hello, I downloaded a pre-compiled binary and I have been working with that without any problems so far, here is what i use in OSX, if you need it, I hope it helps you https://dl.dropboxusercontent.com/u/1011606/phantomjs-osx-2.zip |
@antonioreyna thanks for the binary. It works ok as well as installation through homebrew, but I wanted to compile it. On Ubuntu it works for me without any issues. |
@mareknov yes, i have it on debian and everything is ok too. Let us know if you find out a solution :) on Yosemite and I hope it works also on El Capitan. |
+1 @kamote - it just works |
- add phantomjs2 to PATH for openload plugin
There're several warning along the way, but the error that fails the build was:
Please see the full build log here: https://gist.github.com/sikachu/131b66a23010aad6b785
The text was updated successfully, but these errors were encountered: