curl-library
Re: problem with cross-compile configure --with-librtmp
Date: Sun, 22 Apr 2012 21:35:36 +0200
Hi Vincent,
Am 22.04.2012 16:55, schrieb Vincent Torri:
> There are some differences between rtmp check and libssh2 one in configure.ac :
>
> 1) rtmp :
>
>    case "$OPT_LIBRTMP" in
>    yes)
>      dnl --with-librtmp (without path) used
>      CURL_CHECK_PKGCONFIG(librtmp)
>
>      if test "$PKGCONFIG" != "no" ; then
>        LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
>        LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
>        CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
>        version=`$PKGCONFIG --modversion librtmp`
>        DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
>      else
>        dnl To avoid link errors, we do not allow --librtmp without
>        dnl a pkgconfig file
>        AC_MSG_ERROR([--librtmp was specified but could not find librtmp
> pkgconfig file.])
>      fi
>
> 2) libssh2 :
>
>    case "$OPT_LIBSSH2" in
>    yes)
>      dnl --with-libssh2 (without path) used
>      CURL_CHECK_PKGCONFIG(libssh2)
>
>      if test "$PKGCONFIG" != "no" ; then
>        LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
>        LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
>        CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
>        version=`$PKGCONFIG --modversion libssh2`
>        DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
>      fi
>
> that is, no 'else' branch in libssh2 check.
which pops up these questions:
1) should we remove the else case which causes the actual faulure?
2) why the heck is the pkg-config file not found?
Surely my system has a pkg-config at usual place, and the librtmp.pc is 
located below the compiler's sysroot (${SYSROOT}/usr/local/lib/pkgconfig);
also exorting PKG_CONFIG_PATH="${SYSROOT}/usr/local/lib/pkgconfig"
doesnt help ...
> As I don't know what you want to achieve, i have no patch to propose.
well, simply that it works the one or the other way without need to 
explicitely set LIBS ...
Gün.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-04-22