Package: libavformat-dev
Version: 0.cvs20050918-4
Severity: normal
Hi,
i'm trying to compile a stupid first program.
According to man ffmpeg-config, i'm doing it right.
$> cat stupid.c
#include <avformat.h>
#include <avcodec.h>
int main()
{
avcodec_init();
av_register_all();
return 0;
}
$> ffmpeg-config --libs avformat avcodec
-lavformat -lavcodec -lavutil -lavcodec -lavutil -lvorbis -lvorbisenc \
-ltheora -logg -ldts -la52 -lraw1394 -ldc1394_control -lgsm -lz -lm
$> ffmpeg-config --cflags
-I/usr/include/ffmpeg
$> LC_ALL=C gcc -Wall $(ffmpeg-config --cflags) $(ffmpeg-config --libs avformat
avcodec) stupid.c
/tmp/ccSkYzto.o: In function `main':stupid.c:(.text+0x14): undefined reference
to `avcodec_init'
:stupid.c:(.text+0x18): undefined reference to `av_register_all'
collect2: ld returned 1 exit status
Got the same link error on sarge and sid.
Please help :)
Thanks.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-1-powerpc
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to fr_FR.UTF-8)
Versions of packages libavformat-dev depends on:
ii libavcodec-dev 0.cvs20050918-4 development files for libavcodec
libavformat-dev recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]