Re: cross compiling libsoup for use with gstreamer



On 04/21/2013 03:57 AM, Daniel Doron wrote:
sudo ./configure --host=${HOST} --build=${BUILD} CC=${ARMCC}
CXX=${ARMCXX} --prefix=$(pwd)/install --enable-introspection=no
--disable-glibtest -without-gnome
PKG_CONFIG_PATH="$(pwd)/../glib-2.34.0/install/lib/pkgconfig:$(pwd)/../libxml2-2.8.0/install/lib/pkgconfig"

So you have "libxml2-2.8.0" here, but "libxml2-2-6.30" in CFLAGS and
LDFLAGS later...

CFLAGS="${OMAP3_FLAGS} -I$(pwd)/../glib-2.34.0/install/include/glib-2.0
-I$(pwd)/../glib-2.34.0/install/lib/glib-2.0/include
-I$(pwd)/../libxml2-2.6.30/install/include "
LDFLAGS="-L$(pwd)/../glib-2.34.0/install/lib
-L$(pwd)/../libffi-3.0.11/install/lib -L$(pwd)/../zlib-1.2.7/install/lib
-L$(pwd)/../libxml2-2.6.30/install/lib -lgio-2.0 -lglib-2.0
-lgmodule-2.0 -lgthread-2.0 -lgobject-2.0 -lffi -lz -lxml2"
LIBS="-lgio-2.0 -lglib-2.0 -lgmodule-2.0 -lgthread-2.0 -lgobject-2.0
-lffi -lz -lxml2"

You should not need ANY of that, except for CFLAGS="${OMAP3_FLAGS}".
libsoup should get the correct CFLAGS, LDFLAGS, and LIBS for glib and
libxml2 based on the value of PKG_CONFIG_PATH you set above. If it's not
getting the right values, then that's your real problem, and you need to
fix that.


Two notes on specific errors:

  CC       soup-value-utils.lo
soup-value-utils.c: In function 'soup_value_array_from_args':
soup-value-utils.c:278: warning: 'g_value_array_new' is deprecated
(declared at
/home/robin/gst/master/glib-2.34.0/install/include/glib-2.0/gobject/gvaluearray.h:69)

What version of gcc are you using? There's a
"G_GNUC_BEGIN_IGNORE_DEPRECATIONS" declaration in soup-value-utils.c
that ought to be suppressing these warnings.

  CC       soup-xmlrpc.lo
soup-xmlrpc.c: In function 'insert_value':
soup-xmlrpc.c:36: error: implicit declaration of function 'xmlNewChild'

This suggests that <libxml/tree.h> was found (since there was no message
about not finding it), but it did not contain a definition for
xmlNewChild. Which is weird...

-- Dan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]