Package Details: phantomjs 2.1.1-17

Git Clone URL: https://aur.archlinux.org/phantomjs.git (read-only, click to copy)
Package Base: phantomjs
Description: Headless WebKit with JavaScript API
Upstream URL: https://www.phantomjs.org/
Licenses: BSD, LGPL, MIT
Submitter: yan12125
Maintainer: micwoj92
Last Packager: micwoj92
Votes: 29
Popularity: 1.41
First Submitted: 2018-01-24 14:25 (UTC)
Last Updated: 2024-03-23 07:02 (UTC)

Pinned Comments

yan12125 commented on 2018-08-12 11:22 (UTC) (edited on 2019-11-19 03:17 (UTC) by yan12125)

FAQ

  • error while loading shared libraries: libicui18n.so.61: cannot open shared object file: No such file or directory

You can either to reinstall this package afte upgrading the system to ICU 62, or install the prebuilt package listed below.

  • Building takes too long time!

A: PhantomJS ships with its own Qt and QtWebKit. Just be patient.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

Mampfi commented on 2018-08-15 14:42 (UTC)

I switched to phantomjs-bin (AUR). Works for me.

karcher commented on 2018-08-15 08:37 (UTC) (edited on 2018-08-15 08:37 (UTC) by karcher)

@yan12125: I can confirm that 2.1.1-13 could be built in a clean chroot and finally installed without errors. Thanks!

yan12125 commented on 2018-08-14 14:18 (UTC)

karcher, pierre.killy, def: thanks for letting me know. Could you try again with 2.1.1-13?

karcher commented on 2018-08-13 09:36 (UTC) (edited on 2018-08-13 09:38 (UTC) by karcher)

I tried to build phantomjs with clean-chroot-manager in clean chroot, not sure if I've done everything correctly but I'm getting after:

$ sudo ccm64 c

the same error like @stueja :

...
../../xml/dom/qdom.cpp:35:10: fatal error: qdom.h: No such file or directory
#include <qdom.h>
        ^~~~~~~~
compilation terminated.
make[2]: *** [Makefile:9314: .obj/qdom.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/build/phantomjs/src/qtbase-b5cc0083a5766e773885e8dd624c51a967c17de0/src/tools/bootstrap'
make[1]: *** [Makefile:62: sub-bootstrap-make_first] Error 2
make[1]: Leaving directory '/build/phantomjs/src/qtbase-b5cc0083a5766e773885e8dd624c51a967c17de0/src'
make: *** [Makefile:45: sub-src-make_first] Error 2

ERROR: Failed to build PhantomJS! Building Qt Base failed.
configuring Qt Base, please wait...
Executing in /build/phantomjs/src/phantomjs-2.1.1/src/qt/qtbase: /build/phantomjs/src/phantomjs-2.1.1/src/qt/qtbase/configure -static -opensource -confirm-license -prefix /build/phantomjs/src/phantomjs-2.1.1/src/qt/qtbase -qt-zlib -qt-libpng -qt-libjpeg -qt-pcre -nomake examples -nomake tools -nomake tests -no-qml-debug -no-dbus -no-opengl -no-audio-backend -D QT_NO_GRAPHICSVIEW -D QT_NO_GRAPHICSEFFECT -D QT_NO_STYLESHEET -D QT_NO_STYLE_CDE -D QT_NO_STYLE_CLEANLOOKS -D QT_NO_STYLE_MOTIF -D QT_NO_STYLE_PLASTIQUE -D QT_NO_PRINTPREVIEWDIALOG -qpa phantom -openssl -openssl-linked -no-openvg -no-eglfs -no-egl -no-glib -no-gtkstyle -no-cups -no-sm -no-xinerama -no-xkb -no-xcb -no-kms -no-linuxfb -no-directfb -no-mtdev -no-libudev -no-evdev -no-pulseaudio -no-alsa -no-feature-PRINTPREVIEWWIDGET -fontconfig -icu -no-rpath -verbose -release
building Qt Base, please wait...
Executing in /build/phantomjs/src/phantomjs-2.1.1/src/qt/qtbase: make
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Build failed, check /chroot/.chroot64/user/build

pierre.killy commented on 2018-08-13 09:35 (UTC) (edited on 2018-08-13 09:36 (UTC) by pierre.killy)

Same as @def:

g++ -c -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -I/usr/include/openssl-1.0 -Wno-expansion-to-defined -ffunction-sections -O2 -fPIC -std=c++0x -fno-exceptions -Wall -W -D_REENTRANT -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_LIBINPUT -DQT_NO_GRAPHICSVIEW -DQT_NO_GRAPHICSEFFECT -DQT_NO_STYLESHEET -DQT_NO_STYLE_CDE -DQT_NO_STYLE_CLEANLOOKS -DQT_NO_STYLE_MOTIF -DQT_NO_STYLE_PLASTIQUE -DQT_NO_PRINTPREVIEWDIALOG -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_SYSTEMLOCALE -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -DQT_NO_DEPRECATED -DQT_NO_TRANSLATION -DQT_CRYPTOGRAPHICHASH_ONLY_SHA1 -DQT_NO_CAST_FROM_ASCII -DQT_BUILD_BOOTSTRAP_LIB -DQT_BUILDING_QT -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -I. -I../../3rdparty/zlib -I../../../include -I../../../include/QtCore -I/tmp/build/phantomjs/src/qtbase-b5cc0083a5766e773885e8dd624c51a967c17de0/include/QtXml -I../../../include/QtCore/5.5.1 -I../../../include/QtCore/5.5.1/QtCore -I/tmp/build/phantomjs/src/qtbase-b5cc0083a5766e773885e8dd624c51a967c17de0/include/QtXml/5.5.1 -I/tmp/build/phantomjs/src/qtbase-b5cc0083a5766e773885e8dd624c51a967c17de0/include/QtXml/5.5.1/QtXml -I/tmp/build/phantomjs/src/phantomjs-2.1.1/src/qt/qtbase/include -I/tmp/build/phantomjs/src/phantomjs-2.1.1/src/qt/qtbase/include/QtCore -I/tmp/build/phantomjs/src/phantomjs-2.1.1/src/qt/qtbase/include/QtXml -I../../../mkspecs/linux-g++ -o .obj/qdom.o ../../xml/dom/qdom.cpp
../../xml/dom/qdom.cpp:35:10: fatal error: qdom.h: No such file or directory
 #include <qdom.h>
          ^~~~~~~~
compilation terminated.

def commented on 2018-08-13 06:51 (UTC)

Fails with:

../../xml/dom/qdom.cpp:35:10: fatal error: qdom.h: No such file or directory
 #include <qdom.h>
          ^~~~~~~~
compilation terminated.

yan12125 commented on 2018-08-12 14:34 (UTC)

g++: fatal error: Killed signal terminated program cc1plus

Most likely that's due to insufficient memory. Adding a larger swap file should fix that.

stueja commented on 2018-08-12 14:31 (UTC)

Glad to hear that. ;) Unfortunately, though, I get an error in the 2nd hour of compiling phantomjs:

In file included from ../JavaScriptCore/parser/SourceCode.h:32,
                 from ../JavaScriptCore/runtime/Executable.h:39,
                 from ../JavaScriptCore/runtime/JSFunctionInlines.h:29,
                 from ../JavaScriptCore/runtime/Operations.h:28,
                 from bindings/js/JSDictionary.h:33,
                 from bindings/js/Dictionary.h:30,
                 from bindings/js/ArrayValue.cpp:29,
                 from bindings/js/JSBindingsAllInOne.cpp:28:
../JavaScriptCore/parser/SourceProvider.h: In member function ‘intptr_t JSC::SourceProvider::asID()’:
../JavaScriptCore/parser/SourceProvider.h:58:13: warning: nonnull argument ‘this’ compared to NULL [-Wnonnull-compare]
             if (!this) // Be defensive in release mode.
             ^~
{standard input}: Assembler messages:
{standard input}:203596: Warning: end of file not at end of a line; newline inserted
{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[2]: *** [Makefile.WebCore.Target:137767: .obj/rendering/RenderingAllInOne.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/tmp/trizen-jan/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/WebCore'
make[1]: *** [Makefile.WebCore:68: sub-Target-pri-make_first-ordered] Error 2
make[1]: Leaving directory '/tmp/trizen-jan/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/WebCore'
make: *** [Makefile:178: sub-Source-WebCore-WebCore-pro-make_first-ordered] Error 2

ERROR: Failed to build PhantomJS! Building Qt WebKit failed.
==> ERROR: A failure occurred in build().
    Aborting...
:: Unable to build phantomjs - makepkg exited with code: 4

Anything I can do about that?

yan12125 commented on 2018-08-12 12:34 (UTC)

Whoops, was that there before my last comment? If so, sorry for the noise. :/

Nope :)

stueja commented on 2018-08-12 12:32 (UTC)

Whoops, was that there before my last comment? If so, sorry for the noise. :/