[rrd-users] cross-compiling: cannot find -lrrd

Dagobert Michelsen dam at opencsw.org
Mon Feb 9 21:26:08 CET 2015


Hi Sergey,

> Am 09.02.2015 um 21:17 schrieb Sergey Kopylov <copa at yandex.ru>:
> 
> I tried to update my LD_LIBRARY_PATH:
> export
> LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/sergey/openwrt/attitude_adjustment/staging_dir/target-mipsel_r2_uClibc-0.9.33.2/root-ramips/usr/lib
> export
> LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/sergey/openwrt/attitude_adjustment/staging_dir/target-mipsel_r2_uClibc-0.9.33.2/usr/lib/rrdtool-1.2/lib
> export
> LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/sergey/openwrt/attitude_adjustment/build_dir/target-mipsel_r2_uClibc-0.9.33.2/rrdtool-1.2.30/ipkg-install/usr/lib
> export
> LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/sergey/openwrt/attitude_adjustment/build_dir/target-mipsel_r2_uClibc-0.9.33.2/rrdtool-1.2.30/src/.libs
> 
> But it did not help me. May be there is 2 different LD_LIBRARY_PATH - one
> for Debian, second - for openwrt? I am not familiar with compiling and
> especially with cross-compilation. 

LD_LIBRARY_PATH will not help you when crosscompiling.

> I tried also put the folder 'lib' with these libraries to the folder 'src'
> of my test program and include next row to my Makefile:
> TARGET_LDFLAGS += -I./src/lib

-I is for includes, -L is for library pathes, try -L./src/lib


Best regards

  — Dago

-- 
"You don't become great by trying to be great, you become great by wanting to do something,
and then doing it so hard that you become great in the process." - xkcd #896

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2418 bytes
Desc: not available
URL: <http://lists.oetiker.ch/pipermail/rrd-users/attachments/20150209/092fc155/attachment.bin>


More information about the rrd-users mailing list