Hello,

This is related to the "How to install GTK+ on davinci" topic by David
Kondrad which is very helpful! (
http://linux.davincidsp.com/pipermail/davinci-linux-open-source/2008-May/006672.html
)

The MVL libraries' .la files contain the CROSS_COMPILE_PREFIX
environment var reference making it easier to cross-compile anything.
I'd like to do the same thing with libraries that I build by myself
(gtk and related stuff). How can I do it?

Specifically, the problem is that i get an error when try to compile Cairo:
/bin/sed: can't read /opt/lib/libfreetype.la: No such file or directory

I tried to track the unmet dependency, and if I understand right it
goes from the
~/davinci/filesys/opt/lib/libfontconfig.la, containing the line
dependency_libs=' -L/home/tim/davinci/filesys/opt/lib -L/opt/lib
/opt/lib/libfreetype.la -lz'

and further ~/davinci/filesys/opt/lib/libfreetype.la, containing the line
libdir='/opt/lib'

I'd like it to look like the following
libdir=$CROSS_COMPILE_PREFIX'/opt/lib'

As a workaround for a while I make symbolic links /opt/bin ->
~/davinci/filesys/opt/bin and so on. Even the pkg-config works fine in
that case so I don't need to put all those CFLAGS and LDFLAGS,
pointing to my target dir, everything is automatically taken from the
/opt/...

But I beleive there is a better solution, right?

Thanks,
Timofei.
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to