Hey all, due to there not being a binary available of the latest stable version for the raspberry pi 3, I wanted to build and compile my own.
However I tried twice now and got back the same error twice.
ERROR: Failed to build PhantomJS! Building Qt WebKit failed.
I am building using the instructions provided on the build page.
Hi,
Trying to build master
on Raspberry Pi 2, Raspian Jessy, (taking looooong hours...).
Got errors :
cd src/ && ( test -e Makefile.phantomjs || /home/pi/dev/phantomjs/src/qt/qtbase/bin/qmake /home/pi/dev/phantomjs/src/phantomjs.pro -o Makefile.phantomjs ) && make -f Makefile.phantomjs
make[1]: Entering directory '/home/pi/dev/phantomjs/src'
g++ -Wl,-O1 -Wl,-rpath-link,/home/pi/dev/phantomjs/src/qt/qtbase/lib -o ../bin/phantomjs phantom.o callback.o webpage.o webserver.o main.o utils.o networkaccessmanager.o cookiejar.o filesystem.o system.o env.o terminal.o encoding.o config.o childprocess.o repl.o crashdump.o mongoose.o linenoise.o utf8.o qcommandline.o phantomjs_plugin_import.o qrc_phantomjs.o qrc_ghostdriver.o moc_phantom.o moc_callback.o moc_webpage.o moc_webserver.o moc_networkaccessmanager.o moc_cookiejar.o moc_filesystem.o moc_system.o moc_env.o moc_terminal.o moc_config.o moc_childprocess.o moc_repl.o moc_qcommandline.o -L/home/pi/dev/phantomjs/src/qt/qtbase/lib -lQt5WebKitWidgets -Wl,-whole-archive -Wl,-no-whole-archive -L/home/pi/dev/phantomjs/src/qt/qtwebkit/Source/WebKit/ -Wl,-whole-archive -Wl,-no-whole-archive -L/home/pi/dev/phantomjs/src/qt/qtwebkit/Source/WebCore/ -Wl,-whole-archive -Wl,-no-whole-archive -L/home/pi/dev/phantomjs/src/qt/qtwebkit/Source/ThirdParty/leveldb/ -Wl,-whole-archive -Wl,-no-whole-archive -L/home/pi/dev/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore/ -Wl,-whole-archive -Wl,-no-whole-archive -L/home/pi/dev/phantomjs/src/qt/qtwebkit/Source/WTF/ -lQt5PrintSupport -Wl,-whole-archive -Wl,-no-whole-archive -Wl,-whole-archive -Wl,-no-whole-archive -Wl,-whole-archive -Wl,-no-whole-archive -Wl,-whole-archive -Wl,-no-whole-archive -Wl,-whole-archive -Wl,-no-whole-archive -lQt5Widgets -lQt5WebKit -Wl,-whole-archive -lWebKit1 -Wl,-no-whole-archive -Wl,-whole-archive -lWebCore -Wl,-no-whole-archive -lz -Wl,-whole-archive -lleveldb -Wl,-no-whole-archive -Wl,-whole-archive -lJavaScriptCore -Wl,-no-whole-archive -Wl,-whole-archive -lWTF -Wl,-no-whole-archive -lxml2 -lsqlite3 -lQt5Sql -L/home/pi/dev/phantomjs/src/qt/qtbase/plugins/platforms -lqphantom -lQt5PlatformSupport -lfontconfig -lfreetype -L/home/pi/dev/phantomjs/src/qt/qtbase/plugins/imageformats -lqico -lQt5Gui -lqtharfbuzzng -L/home/pi/dev/phantomjs/src/qt/qtbase/plugins/bearer -lqgenericbearer -lQt5Network -lssl -lcrypto -lQt5Core -licui18n -licuuc -licudata -lqtpcre -lm -ldl -lrt -lpthread
/home/pi/dev/phantomjs/src/qt/qtwebkit/Source/WebCore//.obj/generated/JSSVGElementWrapperFactory.o: In function `WebCore::createSVGFEConvolveMatrixElementWrapper(JSC::ExecState*, WebCore::JSDOMGlobalObject*, WTF::PassRefPtr<WebCore::SVGElement>)':
JSSVGElementWrapperFactory.cpp:(.text._ZN7WebCoreL39createSVGFEConvolveMatrixElementWrapperEPN3JSC9ExecStateEPNS_17JSDOMGlobalObjectEN3WTF10PassRefPtrINS_10SVGElementEEE+0x90): undefined reference to `WebCore::JSSVGFEConvolveMatrixElement::JSSVGFEConvolveMatrixElement(JSC::Structure*, WebCore::JSDOMGlobalObject*, WTF::PassRefPtr<WebCore::SVGFEConvolveMatrixElement>)'
JSSVGElementWrapperFactory.cpp:(.text._ZN7WebCoreL39createSVGFEConvolveMatrixElementWrapperEPN3JSC9ExecStateEPNS_17JSDOMGlobalObjectEN3WTF10PassRefPtrINS_10SVGElementEEE+0xc4): undefined reference to `WebCore::JSSVGFEConvolveMatrixElement::finishCreation(JSC::VM&)'
JSSVGElementWrapperFactory.cpp:(.text._ZN7WebCoreL39createSVGFEConvolveMatrixElementWrapperEPN3JSC9ExecStateEPNS_17JSDOMGlobalObjectEN3WTF10PassRefPtrINS_10SVGElementEEE+0x1c0): undefined reference to `WebCore::JSSVGFEConvolveMatrixElement::createPrototype(JSC::ExecState*, JSC::JSGlobalObject*)'
JSSVGElementWrapperFactory.cpp:(.text._ZN7WebCoreL39createSVGFEConvolveMatrixElementWrapperEPN3JSC9ExecStateEPNS_17JSDOMGlobalObjectEN3WTF10PassRefPtrINS_10SVGElementEEE+0x22c): undefined reference to `WebCore::JSSVGFEConvolveMatrixElement::s_info'
/home/pi/dev/phantomjs/src/qt/qtwebkit/Source/WebCore//.obj/generated/JSDOMWindow.o: In function `WebCore::jsDOMWindowSVGFEConvolveMatrixElementConstructor(JSC::ExecState*, JSC::JSValue, JSC::PropertyName)':
JSDOMWindow.cpp:(.text._ZN7WebCore48jsDOMWindowSVGFEConvolveMatrixElementConstructorEPN3JSC9ExecStateENS0_7JSValueENS0_12PropertyNameE+0x44): undefined reference to `WebCore::JSSVGFEConvolveMatrixElement::getConstructor(JSC::ExecState*, JSC::JSGlobalObject*)'
collect2: error: ld returned 1 exit status
Makefile.phantomjs:261: recipe for target '../bin/phantomjs' failed
make[1]: *** [../bin/phantomjs] Error 1
make[1]: Leaving directory '/home/pi/dev/phantomjs/src'
Makefile:42: recipe for target 'sub-src-phantomjs-pro-make_first-ordered' failed
make: *** [sub-src-phantomjs-pro-make_first-ordered] Error 2
@MaitreDede Faced the same problem on Raspberry Pi 2, Raspian Jessy. I think my make
was interrupted at the build of qtbase
thus phantomjs didn't compile. Hence, had to run a git clean -df
to start all over, and managed to compile successfully on the second run.
Due to our very limited maintenance capacity, we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed (see #15395 for more details). In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution!
Most helpful comment
Hi,
Trying to build
master
on Raspberry Pi 2, Raspian Jessy, (taking looooong hours...).Got errors :