qt failed to build on Centos 6.4

3,248 views
Skip to first unread message

Lifeng Song

unread,
Jun 7, 2013, 2:22:45 PM6/7/13
to phan...@googlegroups.com
error:
qmake 3rdparty/webkit/Source/WebKit/qt/QtWebKit.pro -spec phantomjs/src/qtProject/mkspecs/linux-g++-64 -o Makefile.WebKit.QtWebKit
ERROR: Package gstreamer-app-0.10 not found
cat /etc/redhat-release
CentOS release 6.4 (Final)


James Greene

unread,
Jun 9, 2013, 8:42:08 PM6/9/13
to phan...@googlegroups.com

Are you building source from https://github.com/ariya/phantomjs or https://github.com/r3b/phantomjs ?

Sincerely,
   James Greene

--
You received this message because you are subscribed to the Google Groups "phantomjs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phantomjs+...@googlegroups.com.
Visit this group at http://groups.google.com/group/phantomjs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Michael Song

unread,
Jun 12, 2013, 9:51:37 AM6/12/13
to phan...@googlegroups.com


--
You received this message because you are subscribed to a topic in the Google Groups "phantomjs" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/phantomjs/eWKlbjjH34c/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to phantomjs+...@googlegroups.com.

Michael Song

unread,
Jun 12, 2013, 12:15:20 PM6/12/13
to phan...@googlegroups.com
hi James,
I checked out https://github.com/r3b/phantomjs
and it gives me the same error:

make[1]: Entering directory `/home/msong/wks/phantomjs_r3b/src/qt/src/3rdparty/webkit/Source'
cd WebKit/qt/ && /home/msong/wks/phantomjs_r3b/src/qt/bin/qmake /home/msong/wks/phantomjs_r3b/src/qt/src/3rdparty/webkit/Source/WebKit/qt/QtWebKit.pro -spec /home/msong/wks/phantomjs_r3b/src/qt/mkspecs/linux-g++-64 -o Makefile.WebKit.QtWebKit
Project ERROR: Package gstreamer-app-0.10 not found


thanks
Michael






On Sun, Jun 9, 2013 at 5:42 PM, James Greene <james.m...@gmail.com> wrote:

--
You received this message because you are subscribed to a topic in the Google Groups "phantomjs" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/phantomjs/eWKlbjjH34c/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to phantomjs+...@googlegroups.com.

Ariya Hidayat

unread,
Jun 12, 2013, 12:30:40 PM6/12/13
to phan...@googlegroups.com
I'm pretty sure Linux PhantomJS ignores GStreamer. How did you build?
Did you follow http://phantomjs.org/build.html? Can you give the full
log (pastebin/gist)?




--
Ariya Hidayat, http://ariya.ofilabs.com
http://twitter.com/ariyahidayat
http://gplus.to/ariyahidayat

Michael Song

unread,
Jun 12, 2013, 12:49:44 PM6/12/13
to phan...@googlegroups.com
Hi Ariya,
thank you for the support.
Attached here is the build log,
i kicked off the build of Qt libs by
 ./preconfig.sh --jobs 4 --qt-config "-debug -webkit-debug"



centos6.4_20130612_094445.txt

Ariya Hidayat

unread,
Jun 12, 2013, 1:55:12 PM6/12/13
to phan...@googlegroups.com
You're building that other fork, GStreamer may or may not be needed there.

Your log is convoluted with some of your own tweaks (unnecessary to
finish the build, if everything goes well). Please start again from
scratch (I repeat: from a clean slate), just follow
http://phantomjs.org/build.html and do only:

git clone git://github.com/ariya/phantomjs.git
cd phantomjs
git checkout 1.9
./build.sh

and share again the log. Please use pastebin or gist, easier than attachment.

Michael Song

unread,
Jun 12, 2013, 3:18:44 PM6/12/13
to phan...@googlegroups.com
HI
I followed the steps in your email verbatim and from scratch
the result is the same

feel free to log in to my Centos 6.4 workstation:
ssh -p 6013 ms...@24.152.178.203
password:phantomjs
project location:
/home/msong/wks/phantomjs

Thank you for your help





 


Ariya Hidayat

unread,
Jun 12, 2013, 10:16:32 PM6/12/13
to phan...@googlegroups.com
From my quick glance, seems that some feature detection didn't work
well. The following patch may fix it (the idea is that we disable
video support (by force).

I'm not sure why the logic fails, though. That requires a more
thorough investigation.


diff --git a/src/qt/src/3rdparty/webkit/Source/WebCore/features.pri
b/src/qt/src/3rdparty/webkit/Source/WebCore/features.pri
index 2b8b281..d5d93bd 100644
--- a/src/qt/src/3rdparty/webkit/Source/WebCore/features.pri
+++ b/src/qt/src/3rdparty/webkit/Source/WebCore/features.pri
@@ -161,6 +161,8 @@ symbian|maemo5|maemo6 {

!contains(DEFINES, ENABLE_TOUCH_EVENTS=.): DEFINES += ENABLE_TOUCH_EVENTS=1

+DEFINES += ENABLE_VIDEO=0
+
# HTML5 Media Support
# We require QtMultimedia
!contains(DEFINES, ENABLE_VIDEO=.) {

Michael Song

unread,
Jun 12, 2013, 11:33:20 PM6/12/13
to phan...@googlegroups.com
Hi, I made the change, build still failed





Hon Chau

unread,
Aug 16, 2013, 2:56:27 PM8/16/13
to phan...@googlegroups.com
I get a similar error building on centos 6.4:

/usr/bin/ld: cannot find -lQtWebKit
collect2: ld returned 1 exit status
make[1]: *** [../bin/phantomjs] Error 1
make[1]: Leaving directory `/home/hon.chau/phantomjs/src'
make: *** [sub-src-phantomjs-pro-make_default-ordered] Error 2

Hon Chau

unread,
Aug 19, 2013, 12:50:10 PM8/19/13
to phan...@googlegroups.com
Looks like I was able to get past this issue following the instructions from here (http://comments.gmane.org/gmane.comp.lib.qt.user/1314) and installing this.  gstreamer-0.10.29-1.el6.x86_64 was already installed on my centos 6.4 vm.

yum install 'pkgconfig(gstreamer-app-0.10)'

patrick....@gmail.com

unread,
Nov 25, 2013, 10:04:54 AM11/25/13
to phan...@googlegroups.com
bonjour

  j'ai rencontré le meme probleme sur CentOS 6.4
je l'ai résolu par
yum install gstreamer-plugins-base-devel


patrick....@gmail.com

unread,
Nov 25, 2013, 10:09:12 AM11/25/13
to phan...@googlegroups.com

(in english ...)

I had the same problem on CentOS 6.4
I solved it doing
yum install gstreamer-plugins-base-devel

尹小刚

unread,
Dec 26, 2013, 2:41:58 AM12/26/13
to phan...@googlegroups.com
that's right, 
Reply all
Reply to author
Forward
0 new messages