Hi!
Ralph Glasstetter wrote:
> Hmmm,... do I also need to tweak when compiling with dvbcut's internal
> ffmeg libs? ;-)
Usually not, but...
> I just got:
>
> g++ -g -O2 -Wall -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
> -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
> -DHAVE_LIB_SWSCALE=1 -DHAVE_LIB_AO=1 -DHAVE_LIB_MAD=1 -DHAVE_LIB_A52=1
> -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
> -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
> -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_AO_AO_H=1 -DHAVE_MAD_H=1
> -DHAVE_STDINT_H=1 -DHAVE_A52DEC_A52_H=1 -DHAVE_FFMPEG_AVCODEC_H=1
> -DHAVE_LIBAVCODEC_AVCODEC_H=1 -DHAVE_LIBAVFORMAT_AVFORMAT_H=1
> -DHAVE_LIBSWSCALE_SWSCALE_H=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1
> -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -D__STDC_LIMIT_MACROS=1
> -D__STDC_CONSTANT_MACROS=1 -D_FILE_OFFSET_BITS=64
> -I/home/ralph/dvbcut/svn/ffmpeg/include
> -I/home/ralph/dvbcut/svn/ffmpeg/include/ffmpeg -I/usr/lib/qt3/include -I.
> -I/home/ralph/dvbcut/svn/ffmpeg/include
> -I/home/ralph/dvbcut/svn/ffmpeg/include/ffmpeg -I/usr/lib/qt3/include -I. -c
> -o
> avframe.o avframe.cpp
> In file included from avframe.cpp:24:
> avframe.h:27:21: error: swscale.h: Datei oder Verzeichnis nicht gefunden
Of course dvbcut tries to include <swscale.h> when HAVE_LIB_SWSCALE is
defined.
> since there is no swscale.h in DVBcut's include directory!
> But why is avframe refering to it then?
You probably have another instance of ffmpeg installed somewhere. And
that's where configure found libswscale.
> Has this to do with my externally installed ffmpeg libs (/usr/lib
> AND /usr/local/lib, libswscale just under /usr/lib)?
Yes.
That's even worse than I had expected. Three instances, including the
internal one? It's almost sure that make will grab the wrong files
(headers, libraries, ...) sooner or later. And you even have old-style
(ffmpeg/*.h) and new-style (libavcodec/avcodec.h et al.) headers mixed,
according to the -D flags. FUBAR. :-(
If you use different versions (of ANY library), NEVER install them in
/usr or /usr/local. Always use /opt/library-version or something like
that, to make sure they're only used if you specify that path
explicitly. Otherwise, you're in deep trouble.
> Normally I would expect that doesn't matter if compiling without external
> dirs...
Unfortunately, it does. I think I have to disable (or short-circuit) the
test for libswscale when the internal ffmpeg is in use.
Did you try `./configure --with-ffmpeg=/usr'?
Another dirty trick of mine is to preset configure's cache:
ac_cv_lib_swscale_main=no ./configure
That will make configure believe that it already looked for the library,
and that it isn't present.
--
Michael "Tired" Riepe <[EMAIL PROTECTED]>
X-Tired: Each morning I get up I die a little
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/dvbcut-user