On Sat, 2008-06-14 at 12:25 +0200, Wolfram Gloger wrote:
> Hi,
> 
> > I would vote for make/autoconf
> 
> My vote, too!
> 
> > as I am unable to compile dvbcut from SVN
> > since a few weeks and don't know SCons enough to fix it (if you
> > remember, it is still the same -Isrc/PREFIX)/include problem either i386
> > or ppc).
> 
> Sorry for the delay, here is a current i386 build log from dvbcut-125
> with ffmpeg-13767 installed in /home/wg/ffmpeg-install.
> I'm using scons 0.97.0d20080304-1 here.
> 
> Hope this helps -- maybe you can determine the command were things
> start to go wrong for you.

It is really intriguing -- compilation now works fine (using also ffmpeg
SVN-13767, but SCons is the same as a few weeks ago, when it didn't
work)!

For me, it means that the SCons method is not reliable at all, I've
never had such problems with make/autoconf. In fact, I even succeeded to
compile dvbcut when SCons was not working, but I had to edit heavily the
SConstruct file. Namely, I had to comment out the second line and the
'else:' statement from this block below and deindent the 'env.Append...'
lines after them (all of this in order to get the right -I flags which
were not added to the compilation line):

> if (localffmpeg or 
> os.path.isdir(os.path.join(str(ffmpegpath),'include','ffmpeg'
>   env.Append(CPPPATH=os.path.join(str(ffmpegpath),'include','ffmpeg')) 
> else: 
>   env.Append(CPPPATH=os.path.join(str(ffmpegpath),'include','libavcodec')) 
>   env.Append(CPPPATH=os.path.join(str(ffmpegpath),'include','libavformat')) 
>   env.Append(CPPPATH=os.path.join(str(ffmpegpath),'include','libswscale')) 
>   env.Append(CPPPATH=os.path.join(str(ffmpegpath),'include')) 
>  

then

> env.Append(LIBS=['avformat','avcodec','avutil'])

had to be changed to

> env.Append(LIBS=['avformat','avcodec','avutil','swscale'])

and finally

> ### LIBSWSCALE
> 
> if (not env.GetOption('clean') and not localffmpeg):
>   if (conf.TryAction('pkg-config --exists libswscale')[0]):
>     conf.env.Append(CPPDEFINES="HAVE_LIB_SWSCALE")
>     conf.env.ParseConfig('pkg-config --cflags --libs libswscale')
>     print "Checking for C library swscale... yes"
>   elif (conf.CheckLibWithHeader('swscale', 'swscale.h', 'C')):
>     conf.env.Append(CPPDEFINES="HAVE_LIB_SWSCALE")

was changed to

> ### LIBSWSCALE
> 
> # if (not env.GetOption('clean') and not localffmpeg):
> #  if (conf.TryAction('pkg-config --exists libswscale')[0]):
> #    conf.env.Append(CPPDEFINES="HAVE_LIB_SWSCALE")
> #    conf.env.ParseConfig('pkg-config --cflags --libs libswscale')
> #    print "Checking for C library swscale... yes"
> #  elif (conf.CheckLibWithHeader('swscale', 'swscale.h', 'C')):
> conf.env.Append(CPPDEFINES="HAVE_LIB_SWSCALE")

With all these changes dvbcut compiled fine, but I still don't 
know why it didn't without and more importantly why it does now. 
As I'm using Debian testing, some packages were upgraded in the
meantime, maybe one of them had such an effect.

In short, I don't like SCons :)

Levente



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
DVBCUT-user mailing list
DVBCUT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dvbcut-user

Reply via email to