Failed To Build PhantomJS Binary In Mac

- 1 answer

So I followed the instructions on:

And I get the following error when running error: use of undeclared identifier 'InvalidContext'
    require_action(inContext != NULL, InvalidContext, err = paramErr);
                                      ^ error: use of undeclared identifier 'InvalidBounds'
    require_action(inBounds != NULL, InvalidBounds, err = paramErr);
                                     ^ error: use of undeclared identifier 'InvalidImage'
    require_action(inImage != NULL, InvalidImage, err = paramErr);
3 errors generated.
make[4]: *** [.obj/qcocoahelpers.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [sub-cocoa-make_first] Error 2
make[2]: *** [sub-platforms-make_first] Error 2
make[2]: *** Waiting for unfinished jobs....
2 warnings generated.
rm -f libqsqlite.a
/Applications/ cq libqsqlite.a .obj/smain.o .obj/qsql_sqlite.o .obj/sqlite3.o .obj/moc_qsql_sqlite_p.o
/Applications/ -s libqsqlite.a
rm -f ../../../../plugins/sqldrivers/libqsqlite.a
mv -f libqsqlite.a ../../../../plugins/sqldrivers/
make[1]: *** [sub-plugins-make_first] Error 2
make: *** [sub-src-make_first] Error 2

ERROR: Failed to build PhantomJS! Building Qt Base failed.


I just found myself in the same situation. I figured it was just undeclared vars, so I opened and not knowing how to declare vars in whatever language it is, I just commented the three lines out and voila: it compiled!