cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: problem with cross-compile configure --with-librtmp

From: Guenter <lists_at_gknw.net>
Date: Sun, 22 Apr 2012 20:48:52 +0200

Am 22.04.2012 20:45, schrieb Guenter:
> Am 22.04.2012 16:03, schrieb Guenter:
>> 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!
> now what completely puzzles me is this buildlog:
> http://curl.haxx.se/dev/log.cgi?id=20120422171501-12324
> since I've placed openssl, libssh2 and librtmp all below the compiler's
> sysroot they are all automatically detected, and what's the biggest
> surprise: even -lrtmp is added, and that cant come from pkg-config
> because this mentions also -lssl -lcrypto which is missing here - thus
> the link failure ... (-lssl -lcrypto are present but from ssl and ssh2
> detection, therefore they appear before -lrtmp and so librtmp gets
> unresolved symbols; -lssl -lcrypto need to appear *after* -lrtmp)
oh, what I forgot to mention:
this build is without any --with-xxxx for ssl, ssh2 and rtmp!

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