Summary: | [EFL][GTK] jhbuild : Disable pixman demos build depending on GTK+ | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Dongwoo Joshua Im (dwim) <dw.im> | ||||||||
Component: | WebKit EFL | Assignee: | Nobody <webkit-unassigned> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | cdumez, donggwan.kim, d-r, gyuyoung.kim, gyuyoung.kim, lucas.de.marchi, pnormand, webkit.review.bot | ||||||||
Priority: | P2 | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | Other | ||||||||||
OS: | Linux | ||||||||||
Attachments: |
|
Description
Dongwoo Joshua Im (dwim)
2012-07-05 01:54:04 PDT
Created attachment 150894 [details]
Patch
To add glib dependency is not difficult problem. I wonder why there was this problem before. I think intel guys need take a look this. CC'ing dominik and christophe. (In reply to comment #2) > To add glib dependency is not difficult problem. I wonder why there was this problem before. I think intel guys need take a look this. > > CC'ing dominik and christophe. I wonder why there was this problem before. => I wonder why there was no this problem before. Created attachment 150920 [details]
Patch
I got same error when I try to build gtk port.
- undefined reference to `g_resources_lookup_data'.
- undefined reference to `g_resources_open_stream'
- undefined reference to `g_resources_get_info'
So, I've fixed gtk port, as well.
*** Bug 90599 has been marked as a duplicate of this bug. *** That's odd because pixman does not have any explicit dependency to glib, AFAIK. Can you paste the link error please? (In reply to comment #6) > That's odd because pixman does not have any explicit dependency to glib, AFAIK. Can you paste the link error please? I've pasted those at the previous comments ;) I paste those here again. They are link error during building pixman. - undefined reference to `g_resources_lookup_data'. - undefined reference to `g_resources_open_stream' - undefined reference to `g_resources_get_info' I wasn't clear, sorry. Including the command line please. (In reply to comment #8) > I wasn't clear, sorry. Including the command line please. Actually, I executed this command below. Tools/Script/build-webkit --efl (--gtk) pixman is the first library which jhbuild try to build, and it failed. (In reply to comment #6) > That's odd because pixman does not have any explicit dependency to glib, AFAIK. Can you paste the link error please? As I know, pixman has libc dependency, that's why this problem is solved when I gave the "glib" dependency to the pixman. Do we need to add "glibc" itself in the jhbuild? Or, just give the "glib" dependency to the pixman..? (In reply to comment #10) > (In reply to comment #6) > > That's odd because pixman does not have any explicit dependency to glib, AFAIK. Can you paste the link error please? > > As I know, pixman has libc dependency, > that's why this problem is solved when I gave the "glib" dependency to the pixman. > > Do we need to add "glibc" itself in the jhbuild? > Or, just give the "glib" dependency to the pixman..? Dude. glibc != glib.... As I asked in comment 9, can you provide the command line that fails? Which means, to be clear, the ld command that triggers this link error. (In reply to comment #11) > > Dude. glibc != glib.... > As I asked in comment 9, can you provide the command line that fails? Which means, to be clear, the ld command that triggers this link error. Ye... I know those are different.. ;) Below is the error log. When trying to link clip-test, link error is occurred. make[2]: Entering directory `./WebKitBuild/Dependencies/Source/pixman-0.24.0/demos' CC clip-test.o CC gtk-utils.o CCLD clip-test /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libgdk_pixbuf-2.0.so: undefined reference to `g_resources_lookup_data' /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libgdk_pixbuf-2.0.so: undefined reference to `g_resources_open_stream' /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libgdk_pixbuf-2.0.so: undefined reference to `g_resources_get_info' These are the libraries which the CCLD command links. clip_test_LDADD = $(LDADD) LDADD = $(top_builddir)/pixman/libpixman-1.la -lm $(GTK_LIBS) $(PNG_LIBS) GTK_LIBS are below. GTK_LIBS = -L/usr/local/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 -lpixman-1 That's why we need to build glib library before we build the pixman. (In reply to comment #12) > /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libgdk_pixbuf-2.0.so: undefined reference to `g_resources_lookup_data' > /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libgdk_pixbuf-2.0.so: undefined reference to `g_resources_open_stream' > /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libgdk_pixbuf-2.0.so: undefined reference to `g_resources_get_info' > As we can see from this build log, pixman needs gdk_pixbuf library to build, for some reason. To build pixman using the jhbuild on any system, I think we need to build gdk_pixbuf before building pixman. we can simply give 'gdk_pixbuf' dependency to 'pixman', or build glib for the first time. (maybe, for gtk port, after 'make' will be fine.) Ah so GTK+ is needed for the demos, but it can be disabled with --enable-gtk=no at configure time. I would prefer this approach! Comment on attachment 150920 [details]
Patch
Please use --enable-gtk=no at configure time instead.
Created attachment 151086 [details]
Patch
(In reply to comment #15) > (From update of attachment 150920 [details]) > Please use --enable-gtk=no at configure time instead. With this option, pixman is built successfully on my system. wow! thanks for the kind help and review~! Comment on attachment 151086 [details] Patch Clearing flags on attachment: 151086 Committed r121975: <http://trac.webkit.org/changeset/121975> All reviewed patches have been landed. Closing bug. |