2.5.0 build instructions

806 views
Skip to first unread message

Thomas Walpole

unread,
Jan 17, 2017, 12:36:28 PM1/17/17
to phantomjs
Are there build instructions for master available anywhere?  It seems like there are a number of issues currently in 2.5 which would be relatively easy PRs to submit and more people could contribute if building was more straightforward or at least documented somewhere.

Vitaly Slobodin

unread,
Jan 17, 2017, 12:38:30 PM1/17/17
to phantomjs
Hi,

I am still trying to find the time to write a detailed instruction about building new PJS from master. But no luck.


Thanks.

With regards,
Vitaly.

Vitaly Slobodin

unread,
Jan 17, 2017, 12:39:44 PM1/17/17
to phantomjs
Basically, you need:

  1. Qt 5.6 (you can you system installed versions)
  2. Build QtWebKit and install it
  3. By using instruction from the link above set the QMAKEPATH variable
  4. Build PhantomJS

Thomas Walpole

unread,
Jan 17, 2017, 1:19:41 PM1/17/17
to phantomjs
Thanks - Will give it a try later today/tomorrow

Evgeny

unread,
Jan 20, 2017, 11:33:00 AM1/20/17
to phantomjs

Thanks for your work!

 

I have tried to build PhantomJS from Ariya master branch with next steps:

1.  Download and install QT from  http://download.qt.io/official_releases/online_installers/qt-unified-linux-x64-online.run

2.  Clone webkit from https://github.com/annulen/webkit.git, switch to branch 5.6

3.  Install dependences according to manual https://github.com/annulen/webkit/wiki/Building-QtWebKit-on-Linux sudo apt-get install build-essential perl python ruby flex gperf bison cmake ninja-build libfontconfig1-dev libicu-dev libsqlite3-dev zlib1g-dev libpng12-dev libjpeg-dev libxslt1-dev libxml2-dev libhyphen-dev

4.  Build qtwebkit with command: WEBKIT_OUTPUTDIR=`pwd`/build/qt Tools/Scripts/build-webkit --qt --release --cmakeargs="-DCMAKE_PREFIX_PATH=~/Qt/5.7/gcc_64/"

5.  Install qtwebkit: ninja install

6. Set QMAKEPATH

7. Clone phantomjs from https://github.com/ariya/phantomjs.git, switch to master branch

8.       Run command: qmake && make

 

On step #8 was appeared an error:

webpage.cpp: In constructor ‘WebPage::WebPage(QObject*, const QUrl&)’:

webpage.cpp:369:28: error: ‘WebSecurityEnabled’ is not a member of ‘QWebSettings’

     settings->setAttribute(QWebSettings::WebSecurityEnabled, phantomCfg->webSecurityEnabled());

 

After that building of phantomjs was aborted. How I can solve this problem? Thank you!

Evgeny

unread,
Jan 20, 2017, 2:55:02 PM1/20/17
to phantomjs
I mean switch to branch qtwebkit-stable in step 2

Evgeny

unread,
Jan 22, 2017, 4:19:01 PM1/22/17
to phantomjs
Eventually I have built PhantomJS 2.5 from master branch.

Safrizal SKom

unread,
Jan 24, 2017, 3:06:38 PM1/24/17
to phantomjs
Any guide for Centos 6.4?


-rizal-

Santosh Hegde

unread,
Feb 6, 2017, 4:29:06 AM2/6/17
to phantomjs
Can you please share the build. Because it's taking really long time and after that it's failing for me.
 
If you can provide the build, then I don't have to spend time on debugging the root cause.

Evgeny

unread,
Feb 6, 2017, 6:49:53 AM2/6/17
to phantomjs
Binaries from Vitallium are available there: https://bitbucket.org/ariya/phantomjs/downloads
It need the following dependencies: apt-get install libxslt1-dev libhyphen-dev libfontconfig1-dev libjpeg-dev libssl-dev libfontconfig1-dev

понеділок, 6 лютого 2017 р. 11:29:06 UTC+2 користувач Santosh Hegde написав:

Santosh Hegde

unread,
Feb 6, 2017, 10:06:35 AM2/6/17
to phantomjs
New binaries asking me to install 
  • libicuuc.so.55
  • ibicui18n.so.55
and after creating soft link between them, im getting below error.
./phantomjs: /lib64/libjpeg.so.8: version `LIBJPEG_8.0' not found (required by ./phantomjs)
./phantomjs: /lib64/libssl.so.1.0.0: version `OPENSSL_1.0.0' not found (required by ./phantomjs)
./phantomjs: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by ./phantomjs)
./phantomjs: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by ./phantomjs)
./phantomjs: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by ./phantomjs)
./phantomjs: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by ./phantomjs)
./phantomjs: /lib64/libcrypto.so.1.0.0: version `OPENSSL_1.0.2' not found (required by ./phantomjs)
./phantomjs: /lib64/libcrypto.so.1.0.0: version `OPENSSL_1.0.0' not found (required by ./phantomjs)
./phantomjs: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /home/cloud-user/test2/libicui18n.so.55)
./phantomjs: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /home/cloud-user/test2/libicuuc.so.55)


What is this? How can I override those errors and run phantomJs?


Thanks and Regards
Satosh Hegde

Santosh Hegde

unread,
Feb 7, 2017, 9:03:59 AM2/7/17
to phantomjs
Is it possible to include all libraries required to run in the binary?

Like while running user don't have to install libjpeg.so.8 etc



Thanks  and Regards
Santosh Hegde


On Monday, 23 January 2017 02:49:01 UTC+5:30, Evgeny wrote:

Santosh Hegde

unread,
Feb 7, 2017, 10:40:26 PM2/7/17
to phantomjs
While building im getting below error.
./Tools/Scripts/build-webkit --qt --release --no-device-orientation --no-web-audio --no-video --no-video-track --no-touch-events --no-touch-slider --no-geolocation --64-bit --cmakeargs="-Wno-dev -DCMAKE_PREFIX_PATH=/qtbase-build -DENABLE_NETSCAPE_PLUGIN_API=OFF -DUSE_GSTREAMER=OFF -DUSE_THIN_ARCHIVES=OFF -DENABLE_API_TESTS=OFF -DENABLE_TEST_SUPPORT=OFF"
Not searching for unused variables given on the command line.
-- Could NOT find Ruby (missing:  RUBY_INCLUDE_DIR RUBY_LIBRARY RUBY_CONFIG_INCLUDE_DIR) (found suitable version "2.3.0", minimum required is "1.9")
-- Disabling ENABLE_LEGACY_WEB_AUDIO since ENABLE_WEB_AUDIO is disabled.
-- Disabling ENABLE_MEDIA_CONTROLS_SCRIPT since ENABLE_VIDEO is disabled.
-- Disabling ENABLE_MEDIA_SOURCE since ENABLE_VIDEO is disabled.
-- Found ICU header files in /usr/include
-- Found ICU libraries: /usr/lib/x86_64-linux-gnu/libicuuc.so
-- Could NOT find WEBP (missing:  WEBP_INCLUDE_DIRS WEBP_LIBRARIES) 
-- Could NOT find HYPHEN (missing:  HYPHEN_INCLUDE_DIR HYPHEN_LIBRARIES) 
CMake Error at Source/cmake/OptionsQt.cmake:544 (message):
  libhyphen is needed for USE_LIBHYPHEN.
Call Stack (most recent call first):
  Source/cmake/WebKitCommon.cmake:47 (include)
  CMakeLists.txt:135 (include)


-- Configuring incomplete, errors occurred!
See also "/media/santosh/Part2/test2/phantomjs2/webkit/WebKitBuild/Release/CMakeFiles/CMakeOutput.log".
See also "/media/santosh/Part2/test2/phantomjs2/webkit/WebKitBuild/Release/CMakeFiles/CMakeError.log".


Whats the fix?

On Monday, 6 February 2017 17:19:53 UTC+5:30, Evgeny wrote:

Deepak Rai

unread,
Dec 19, 2018, 2:25:27 PM12/19/18
to phantomjs
I am also getting the similar error while installing on Amazon Linux AMI 2018.03" aws. Error is following

phantomjs: /usr/lib64/libssl.so.1.0.0: version `OPENSSL_1.0.0' not found (required by phantomjs)
phantomjs: /usr/lib64/libcrypto.so.1.0.0: version `OPENSSL_1.0.0' not found (required by phantomjs)
Reply all
Reply to author
Forward
0 new messages