Summary: | Support for building on Android | ||
---|---|---|---|
Product: | Wocky | Reporter: | Alvaro Soliverez <alvaro.soliverez> |
Component: | General | Assignee: | Telepathy bugs list <telepathy-bugs> |
Status: | RESOLVED FIXED | QA Contact: | Telepathy bugs list <telepathy-bugs> |
Severity: | normal | ||
Priority: | medium | Keywords: | patch |
Version: | git master | ||
Hardware: | Other | ||
OS: | other | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
Patch to build on Android
Support for Android patch |
Description
Alvaro Soliverez
2011-11-02 05:17:40 UTC
Comment on attachment 53046 [details] [review] Patch to build on Android Review of attachment 53046 [details] [review]: ----------------------------------------------------------------- ::: wocky/Makefile.am @@ +244,5 @@ > + -:SOURCES $(handwritten_sources) $(built_sources) \ > + -:CFLAGS $(DEFS) $(CFLAGS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CFLAGS) \ > + -:CPPFLAGS $(CPPFLAGS) $(AM_CPPFLAGS) \ > + -I$(abs_top_srcdir)/../libgcrypt/src \ > + -I$(abs_top_srcdir)/../libgpg-error/src \ Hrm, it depends on you happening to have libgcrypt's headers in some directory relative to this source directory?! (In reply to comment #1) > Comment on attachment 53046 [details] [review] [review] > Patch to build on Android > > Review of attachment 53046 [details] [review] [review]: > ----------------------------------------------------------------- > > ::: wocky/Makefile.am > @@ +244,5 @@ > > + -:SOURCES $(handwritten_sources) $(built_sources) \ > > + -:CFLAGS $(DEFS) $(CFLAGS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CFLAGS) \ > > + -:CPPFLAGS $(CPPFLAGS) $(AM_CPPFLAGS) \ > > + -I$(abs_top_srcdir)/../libgcrypt/src \ > > + -I$(abs_top_srcdir)/../libgpg-error/src \ > > Hrm, it depends on you happening to have libgcrypt's headers in some directory > relative to this source directory?! Yes, that's bad. Trying to fix it now. Is it possible that there's a problem in the original build files? I don't see a dependency to libgcrypt, but the code won't build without it. Created attachment 53417 [details] [review] Support for Android patch I fixed the hardcoded paths (In reply to comment #2) > Is it possible that there's a problem in the original build files? I don't see > a dependency to libgcrypt, but the code won't build without it. Possibly. Presumably it comes from: ./wocky/wocky-tls.c:#include <gcrypt.h> GnuTLS depends on gcrypt, so Wocky does transitively depend on it when built against GnuTLS. (In reply to comment #4) > (In reply to comment #2) > > Is it possible that there's a problem in the original build files? I don't see > > a dependency to libgcrypt, but the code won't build without it. > > Possibly. Presumably it comes from: > > ./wocky/wocky-tls.c:#include <gcrypt.h> > > GnuTLS depends on gcrypt, so Wocky does transitively depend on it when built > against GnuTLS. Yes, I found it. It looks like Android NDK does not manage this kind of transitive dependency very well. It is fixed in the above patch. Comment on attachment 53417 [details] [review] Support for Android patch Review of attachment 53417 [details] [review]: ----------------------------------------------------------------- Looks good! http://cgit.freedesktop.org/wocky/commit/?id=16281498c3613e237b4096ee99789f80d02076c8 (forgot to include this in the message closing the bug, sorry) |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.