Michael Babcock wrote:
> Dirk Reiners wrote:
>>      Hi David,
>>
>> [EMAIL PROTECTED] wrote:
>>> pkg-config is provided instead, as this is how other libraries in Ubuntu
>>> provide the information.
>>>
>>> pkg-config libopensg --libs
>>>
>>> pkg-config libopensg --cflags
>> Hm, ok. Is hte usual way to not provide XXX-config for packages that usually 
>> use 
>> it, or to add support to pkg-config? Personally I think it would be better 
>> to 
>> have both, so that software that works on other systems (like the Examples 
>> and 
>> Tutorials) also works on Ubuntu, but if the policy is not to do that we need 
>> to 
>> think about a way to make the default OpenSG Makefiles smarter.
> 
> Yes, we ran into this issue recently. I understand (second-hand) that 
> the Ubuntu package also does not include fcdEdit, making it useless for 
> projects that create custom FieldContainers. And when you try to compile 
> fcdEdit, it can't find osg-config!
> 
> 
> 
> -------------------------------------------------------------------------
> SF.Net email is sponsored by: The Future of Linux Business White Paper
> from Novell.  From the desktop to the data center, Linux is going
> mainstream.  Let it simplify your IT future.
> http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users
> 


Well one of the main problems of osg-config is that it contains paths
which are generated at compile time  (configure probably) .  However the
installed path for the libs/includes don't match whats in the osg-config.

If this issue where solved then osg-config can be installed to /usr/bin
or we can provide a wrapper around pkg-config called osg-config.

A quick example if this to allow osg-config to return the cflags and
libs is attached.

BTW I'm also putting OpenSG forward for revu to go into the main Ubuntu
archives for hardy, so feedback on this would be great.


Dave





-- 
David Morris
Research Assistant
School of Computing, Mathematics and Information Sciences,
University of Brighton
ext 2917  room w234
#!/usr/bin/perl
# A smaller wrapper around pkg-config for legacy build systems to provide the 
# cflags and libs.
$argnum = $#ARGV + 1;

if  ($argnum == 1 ) {
  print `pkg-config libopensg $ARGV[0]`;
} elsif ($argnum == 2) {
  print `pkg-config libopensg $ARGV[0] $ARGV[1]`;
}



-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to