无法在M中生成phantomJS二进制文件

2024-04-25 10:02:11 发布

您现在位置:Python中文网/ 问答频道 /正文

所以我按照说明做了:

http://phantomjs.org/build.html

运行时出现以下错误生成.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.

Tags: ofobjmakeuseactionerrorrequirenull
1条回答
网友
1楼 · 发布于 2024-04-25 10:02:11

我发现自己也处于同样的境地。我想那只是未申报的VAR,所以我打开了qcocahelpers.mm公司不知道如何用任何语言声明vars,我只注释了三行代码:编译!你知道吗

相关问题 更多 >