Bug 110693

Summary: [GTK] Add support to install-dependencies for other distributions
Product: WebKit Reporter: Martin Robinson <mrobinson>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: jianxinliu1
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 110692    
Bug Blocks:    
Attachments:
Description Flags
CMakeError.log when issuing "cmake -DPORT=GTK ." on a Ubuntu 14.04 none

Description Martin Robinson 2013-02-23 11:12:52 PST
A key one here is Fedora.
Comment 1 Martin Robinson 2013-03-05 10:35:33 PST
Closing this one since the original bug added surprise support for Fedora.
Comment 2 Jianxin 2015-04-02 15:21:26 PDT
Please add support for OpenSuSE x86-64 platform.  Thanks.
Comment 3 Martin Robinson 2015-04-02 15:55:13 PDT
If you are using OpenSuSE would you be willing to submit a patch? I don't think anyone is going to install OpenSuSE specifically for this, since we won't be able to keep it up to date easily.
Comment 4 Jianxin 2015-04-02 17:42:05 PDT
@Martin,
Actually I need it on SUSE Linux Enterprise platform, but it should be compatible with OpenSuSE.  I will try submitting a patch on OpenSuSE if I can successfully build it there.
I downloaded 2.8.0 tar ball and tried building it on Ubuntu 14.04 after installing all dependencies, but I cannot find 
Tools/Scripts/update-webkitgtk-libs and
Tools/Scripts/build-webkit
Anything I need to know in addition to the build instructions in your "How to build" link?
Thanks.
Comment 5 Martin Robinson 2015-04-03 07:01:18 PDT
(In reply to comment #4)
> @Martin,
> Actually I need it on SUSE Linux Enterprise platform, but it should be
> compatible with OpenSuSE.  I will try submitting a patch on OpenSuSE if I
> can successfully build it there.
> I downloaded 2.8.0 tar ball and tried building it on Ubuntu 14.04 after
> installing all dependencies, but I cannot find 
> Tools/Scripts/update-webkitgtk-libs and
> Tools/Scripts/build-webkit
> Anything I need to know in addition to the build instructions in your "How
> to build" link?
> Thanks.

update-webkitgtk-libs and build-webkit are tools for building the software from the repository.  To build the tarball simply run:

cmake -DPORT=GTK .
make
Comment 6 Martin Robinson 2015-04-03 07:04:41 PDT
For what it's worth install-dependencies is really made for development as well. I don't think it's useful for trying to build the tarball locally. Perhaps we just need to add the package list to the documentation somewhere.
Comment 7 Jianxin 2015-04-03 13:11:02 PDT
Created attachment 250094 [details]
CMakeError.log when issuing "cmake -DPORT=GTK ." on a Ubuntu 14.04

I git checked out the tree and issued "cmake -DPORT=GTK ." as suggested, but got errors (attached)
Comment 8 Martin Robinson 2015-04-03 16:21:16 PDT
Hrm. Looks like it is having trouble locating -lpthreads. This seems to be the relevant bit:

/usr/bin/ld: cannot find -lpthreads
Comment 9 Jianxin 2015-04-05 00:30:59 PDT
But Ubuntu uses "-lpthread" not "-lpthreads". See link below please:
http://stackoverflow.com/questions/1877702/gcc-difference-between-pthread-and-pthreads