Re: [proaudio] Sonic visualiser

[ Thread Index | Date Index | More lists.tuxfamily.org/proaudio Archives ]


On Sat, 26 Aug 2006 00:00:50 +0200
Frieder Bürzele <evermind@xxxxxxxxxxxxx> wrote:

> Frieder Bürzele wrote:
> > Dominique Michel wrote:
> >> On Fri, 25 Aug 2006 13:02:12 +0200
> >> Frieder Bürzele <evermind@xxxxxxxxxxxxx> wrote:
> >>
> >>  
> >>> Dominique Michel wrote:
> >>>    
> >>>> On Fri, 25 Aug 2006 02:37:15 +0200
> >>>> Frieder Bürzele <evermind@xxxxxxxxxxxxx> wrote:
> >>>>
> >>>>        
> >>>>> Dominique Michel wrote:
> >>>>>            
> >>>>>> On Thu, 24 Aug 2006 20:37:17 +0200
> >>>>>> Dominique Michel <dominique.michel@xxxxxxxxxxxx> wrote:
> >>>>>>
> >>>>>>                  
> >>>>>>> I am just done with libfishsound, a dependency that do at
sonic
> >>>>>>> visualiser can take an ogg file as input.
> >>>>>>>
> >>>>>>> I hope to have enough time later today to finish the ebuild
for
> >>>>>>>                     
> >>>> sonic
> >>>>        
> >>>>>>> v., but it is not so simple, so maybe at it will be for
tomorrow.
> >>>>>>>
> >>>>>>> Cheers,
> >>>>>>> Dominique
> >>>>>>>
> >>>>>>>                         
> >>>>>> Well, I have done 2 more ebuilds and the only one left is sonic
v.
> >>>>>> itself.
> >>>>>>
> >>>>>> Do you know if it is possible to test the -march of the user
and
> >>>>>>           
> >> use
> >>  
> >>>>>>                 
> >>>> it
> >>>>        
> >>>>>> in a if...then...else structure in a ebuild? It is no configure
in
> >>>>>>                 
> >>>> the
> >>>>        
> >>>>>> tarball and I need to sed a sonic-visualiser.pro file to change
> >>>>>>           
> >> the
> >>  
> >>>>>> configuration.
> >>>>>>
> >>>>>> It is 3 lines with different QMAKE_CXXXFLAFS, each one for a
> >>>>>>                 
> >>>> different
> >>>>        
> >>>>>> arch, and the ebuild must choose the right one.
> >>>>>>
> >>>>>>                   
> >>>>> Hi,
> >>>>> I've fetched the source and take a quick look
> >>>>>
> >>>>> # Whizzy optimization flags here
> >>>>> #
> >>>>> linux-g++:QMAKE_CXXFLAGS_RELEASE += -DNDEBUG -O2 -march=pentium3

> >>>>> -mfpmath=sse -ffast-math
> >>>>> # QMAKE_CXXFLAGS_RELEASE += -O3 -march=pentium4 -mfpmath=sse 
> >>>>> -fomit-frame-pointer
> >>>>> # QMAKE_CXXFLAGS_RELEASE += -O3 -march=athlon-mp -mfpmath=sse 
> >>>>> -fomit-frame-pointer
> >>>>>
> >>>>> so in my opinion just the line which is beginning with linux-g++
is
> >>>>>         
> >>
> >>  
> >>>>> relevant and is in need to be
> >>>>> modified with sed.
> >>>>> just replace -DNDEBUG -O2 -march=pentium3 with  $(CXXFLAGS)
> >>>>>
> >>>>> hth
> >>>>>
> >>>>> Greetz Frieder
> >>>>>
> >>>>>
> >>>>>             
> >>>> Here are the ebuilds.
> >>>> libfishsound is for the ogg format in input, not mandatory.
> >>>> sonic-visualiser will install it and the dependencies. It is a
few
> >>>>       
> >> use
> >>  
> >>>> flags with it: O3 modify the configuration if you are using or
want
> >>>>       
> >> to
> >>  
> >>>> use the -O3 flag. portaudio will not work because it nedd
> >>>>       
> >> portaudio-18
> >>  
> >>>> and I think at it is hardmasqued. the other use flags just check
for
> >>>>       
> >> the
> >>  
> >>>> dependencies. If they are already installed, they do nothing
because
> >>>> pkg-config will take care of it.
> >>>>         
> >>> thx added, but I've no time to test them
> >>> Greetz
> >>>     Frieder
> >>>    
> >>>> Cheers,
> >>>> Dominique
> >>>>         
> >>>     
> >> Here is an updated ebuild. I did some minor fix with the
dependencies
> >> check. Now, portaudio-19 if installed will just block the ebuild,
as it
> >> doesn't work with it. 
> > I think there is no need to block cause portaudio-18 could also be 
> > installed sloted
> > I'll check your ebuild and adjust it
> >
> > Thx
> >    Frieder
> >
> >> And fishsound will ask for oggz if needed. This
> >> last one is not so important, because libfishsound will install
liboggz
> >> if needed, but it is cleaner to do so.
> >>
> >> Ciao,
> >> Dominique
> >>   
> >
> >
> I've looked through your ebuild and wonder why you use a USE-Flag
called O3.
> In my opinion and I think the way gentoo also is to place
compilerflags 
> entirely
> into make.conf
> So I'll change this behaviour to standard.
> 

The package doesn't use the same CFLAGS with -O2 and -O3. It doesn't use
-ffast-math with -O3 but use it with -O2. It is a good thing to do so,
because the combinaition of this flags with -O3 will certainly brake the
code even it the compilation did success and the program is running. It
add other flags that I don't have in make.conf, because I don't want it
as general Cflags. I know at it is not gentoo policy to correct the
user's mystake in a ebuild, but I think at it is right to do that in
this case. It is already some packages to do that as fftw.

> I also changed oggz to ogg because oggz gives us ogg-support but ogg
is 
> a more
> common use-flag than oggz
>
This ogg input file support will be included with the libfishsound flag
because oggz is a dependency of libfishsound. And it is no need to
midify the .pro file in sonic for that because it use pkg-config.
libfishsound check for both ogg (libvorbis, and libvorbis do have libogg
as dependency) and oggz, and the ogg import function work only when oggz
is installed (I tested it, and the only mean to get this support was to
install oggz). Gentoo is about choice and I think at the user must have
this choice.

> also gcc4 fixes included
> 
> I'll commit it tomorrow
> 
> greetz
>     Frieder
> 
> 
Cheers,
Dominique



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/