The autotools version of player had code to filter unwanted flags from other pkg-config files (i.e. player dependencies). This was mainly to get rid of optimisation and debug flags from the pkgconfig input so we could control these ourselves.

Not sure if the equivalent code got ported to player, but if so this would be a resonable place to get rid of the system lib paths as well. Think of it as making player robust to badly behaving upstream modules, this is good programming pratcie rather than a horrible hack...

Toby

2009/4/9 Paul Osmialowski <newchief@king.net.pl>


On Wed, 8 Apr 2009, gbiggs wrote:

> In the course of reworking library linkage, I noticed that my system
> adds -L/usr/lib64 to the playerc++ pkg-config file. This is, of course,
> where the 64-bit boost libraries are located under Gentoo. I think we
> can be pretty certain that the FindBoost module is not functioning
> correctly, and is returning library paths that are not necessary (i.e.
> system library paths). I don't know what the reason for this is.
>
> I'm not sure what the best solution to this is. We could work around it
> by putting in some filtering of our own, but that's a pain to maintain.
> It'd probably be better to fix the module, I think.
>
> Geoff
>
>

We can't help it I guess. The only thing we can do is to maintain some
wiki page with all pre- and post-install workarounds for different
systems, different distros, e.g. for RedHat-derived x86_64 Linux distros
Player post-installation step is to remove -L/usr/lib from playerc++.pc
file.

Badly generated .pc files isn't Player-only problem, e.g. on Solaris 10
.pc files must be tweaked after installation of libpqxx (missing link-time
flags) and opencv (also missing link-time flags). Since Player uses in
different places both libraries, also this kind of hints might be added to
our wiki page.

Paul.

> Paul Osmialowski wrote:
>> Hi Geoff,
>>
>> @multilib: Here are reports you've asked for:
>> http://vlab.pjwstk.edu.pl/~vlabdemo/geoff.zip
>> these are:
>> - UsePlayerC++.cmake and playerc++.pc the only two files in whole build
>> directory to mention -L/usr/lib
>> - report.x86_64.txt - output from VERBOSE=1 make >report.txt 2>&1
>> - noboost directory - the same files obtained after I've uninstalled
>> boost-devel package, as you can see, no -L/usr/lib is mentioned anymore,
>> so my suspections were correct.
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> High Quality Requirements in a Collaborative Environment.
> Download a free trial of Rational Requirements Composer Now!
> http://p.sf.net/sfu/www-ibm-com
> _______________________________________________
> Playerstage-developers mailing list
> Playerstage-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/playerstage-developers
>

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Playerstage-developers mailing list
Playerstage-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-developers



--
This email is intended for the addressee only and may contain privileged and/or confidential information