curl-library
Re: problem with cross-compile configure --with-librtmp
Date: Sun, 22 Apr 2012 16:55:55 +0200
On Sun, Apr 22, 2012 at 4:03 PM, Guenter <lists_at_gknw.net> wrote:
> Hi,
> I think I've now tried everything, but I cant convince configure to properly
> add '-lrtmp -lssl -lcrypto' with --with-librtmp ...
> when using only '--with-librtmp' without path I get:
> configure: error: --librtmp was specified but could not find librtmp
> pkgconfig file.
> exporting PKG_CONFIG_PATH to point to the path where librtmp.pc is located
> doesnt help either, nor does '--with-sysroot'.
> When I use '--with-librtmp=/path/to/librtmp-install' then configure passes,
> but finally linking breaks since '-lrtmp -lssl -lcrypto' were not added. If
> I then set LIBS='-lrtmp -lssl -lcrypto' I can link successfully.
> Opposite to this '--with-ssl' and '--with-libssh2' work fine with both
> setting path or putting the installations below the cross compiler's
> sysroot.
>
> Any help with fixing this in configure greatly appreciated!
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.
As I don't know what you want to achieve, i have no patch to propose.
But I find that configure.ac file really too complicated.
regards
Vincent
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-04-22