Hello,
I'm using Ubuntu as a VM and compiled on it the actual FFMPEG sourcecode with this configuration:
./configure --disable-yasm --enable-shared
I got the library files (.a) and tried to use these in my Project,
but if I call a av_...() function I got everytime undefined Reference linking errors...
I put the library files in the right directories and use this Makefile:
TARGET = Test
OBJS = Main.o
DIR = /bin
CFLAGS = -O2 -G0 -Wall -Wno-write-strings
CFLAGS += $(shell $(DIR)/sdl-config --cflags)
OBJS = Main.o
DIR = /bin
CFLAGS = -O2 -G0 -Wall -Wno-write-strings
CFLAGS += $(shell $(DIR)/sdl-config --cflags)
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LIBS = -L/usr/local/project/lib -lavcodec -lavdevice -lavfilter -lavformat -lavutil
LIBS += -lstdc++ -lSDL_ttf -lfreetype -lSDL_image -lSDL_gfx -ljpeg -lpng -lz -lm
LIBS += -lSDL_mixer -lSDLmain -lSDL
And this is my short test sourcecode:
// SDL
// ...
// FFMPEG
extern "C"
{
#include "libavcodec/avcodec.h"
#include "libavutil/mathematics.h"
}
{
#include "libavcodec/avcodec.h"
#include "libavutil/mathematics.h"
}
extern "C" int SDL_main(int argc, char *argv[]);
int main(int argc, char *argv[])
{
{
av_register_all();
return 0;
}
Nothing more, nothing less...
Has maybe someone an Idea why I got this linking errors?
Quick information:
OS: Ubuntu 32 Bit
Version: FFMPEG 1.0
Configuration: ./configure --disable-yasm --enable-shared
Libary Files: avcodec.a |avdevice.a | avfilter.a | avformat.a | avutil.a
Error(s):
:58: undefined reference to `av_register_all'
...
...
Thanks in advance! :)
Ps.: Sorry, for my english. I did my best.
_______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
