gpt4 book ai didi

python - 在 Mac 中构建 phantomJS 二进制文件失败

转载 作者:行者123 更新时间:2023-12-01 02:10:18 24 4
gpt4 key购买 nike

所以我按照以下说明进行操作:

http://phantomjs.org/build.html

运行 build.py 时出现以下错误:

qcocoahelpers.mm:676:39: error: use of undeclared identifier 'InvalidContext'
require_action(inContext != NULL, InvalidContext, err = paramErr);
^
qcocoahelpers.mm:677:38: error: use of undeclared identifier 'InvalidBounds'
require_action(inBounds != NULL, InvalidBounds, err = paramErr);
^
qcocoahelpers.mm:678:37: 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/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar cq libqsqlite.a .obj/smain.o .obj/qsql_sqlite.o .obj/sqlite3.o .obj/moc_qsql_sqlite_p.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib -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.

最佳答案

我刚刚发现自己处于同样的情况。我认为这只是未声明的变量,所以我打开了 qcocoahelpers.mm 并且不知道如何用任何语言声明变量,我只是注释了三行,瞧:它编译了!

关于python - 在 Mac 中构建 phantomJS 二进制文件失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48741738/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com