Re: Add a CXXFLAG to the OpenSceneGraph .deb build

2010-10-06 Thread Reinhard Tartler
On Wed, Oct 06, 2010 at 13:55:25 (CEST), Manuel A. Fernandez Montecelo wrote:

> Hello,
>
> On Tuesday 05 October 2010 14:58:11 Massimo Di Stefano wrote:
>> Hello All
>> 
>> i'm an OSG user,
>> 
>> for my study i need to build an app that depends on OSG and FFMPEG
>> this app needs an uptodate ffmpeg library to build .. so i have to use
>> ffmpeg from svn.

You can also try the ffmpeg 0.6 package found in debian/experimental.

>> Unlucky to build my app i can't use the osg .deb packages beacouse i need 
> to build OSG using this export :
>> >> export CXXFLAGS='-D__STDC_CONSTANT_MACROS'
>> 
>> Please, can you tell me if it is possible to add this flag in the 
>> openscenegraph na d openthreads .deb packages ?
>
> It is not clear to me why do you need to compile OSG packages with that flag 
> enabled, instead of just building your project with that flag enabled.  Do 
> OSG packages really behave different (compile different chunks of code) when 
> enabling or disabling the flag?

This is a percularity of C++ against FFmpeg, there are system headers
that behave differently when compiled with a C compared to a C++
compiler; in this case, the __STDC_CONSTANT_MACROS flag is set only in
C, which sets some defines that FFmpeg 0.6 relies on. I agree to Massimo
that this is an implementation detail that OSG users should better not
worry about, in this case, I would find it reasonable for OSG to suggest
and provide the proper CXXFLAGS.

> BTW, in future ocasions please submit 'whishlist' bug reports to the 
> appropriate packages, instead of writing private emails.

Yes, this way such discussions can be referenced and are less likely to
become forgotten.

-- 
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4

___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-multimedia-maintainers


Re: Add a CXXFLAG to the OpenSceneGraph .deb build

2010-10-06 Thread Manuel A. Fernandez Montecelo
Hello,

On Tuesday 05 October 2010 14:58:11 Massimo Di Stefano wrote:
> Hello All
> 
> i'm an OSG user,
> 
> for my study i need to build an app that depends on OSG and FFMPEG
> this app needs an uptodate ffmpeg library to build .. so i have to use
> ffmpeg from svn.
> 
> Unlucky to build my app i can't use the osg .deb packages beacouse i need 
to build OSG using this export :
> >> export CXXFLAGS='-D__STDC_CONSTANT_MACROS'
> 
> Please, can you tell me if it is possible to add this flag in the 
> openscenegraph na d openthreads .deb packages ?

It is not clear to me why do you need to compile OSG packages with that flag 
enabled, instead of just building your project with that flag enabled.  Do 
OSG packages really behave different (compile different chunks of code) when 
enabling or disabling the flag?

Even in that case, if it's not enabled by default, I doubt that it's a good 
idea to enable them for all Debian users -- at least we haven't had such 
requests before.

Anyway, there's a very simple way to achieve what you propose -- you can 
compilie our Debian packages from source, with whatever additional flags you 
desire:
http://www.debianhelp.co.uk/debcreation.htm

In this way, you can get the packages compiled with whatever flags you want 
and then install them in your system, without forcing us to introduce any 
changes for the rest of the Debian people :)

Cheers.

BTW, in future ocasions please submit 'whishlist' bug reports to the 
appropriate packages, instead of writing private emails.
-- 
Manuel A. Fernandez Montecelo 

___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-multimedia-maintainers