Hi!
I'd like to use libavformat and libavcodec in my app.
I need the newest, but it isn't in repository (I use ubuntu 11.04), so I built one. I'd like to use it from myapp-build/lib .
I include headers in my cpp:
extern "C"
{
#include "include/libavcodec/avcodec.h"
#include "include/libavformat/avformat.h"
}
extern "C"
{
#include "include/libavcodec/avcodec.h"
#include "include/libavformat/avformat.h"
}
To copy to clipboard, switch view to plain text mode
and I put these rows to my .pro file:
INCLUDEPATH += $$PWD/include
DEPENDPATH += $$PWD/include
unix:LIBS += -Llib/ -lavcodec
unix:LIBS += -Llib/ -lavformat
INCLUDEPATH += $$PWD/include
DEPENDPATH += $$PWD/include
unix:LIBS += -Llib/ -lavcodec
unix:LIBS += -Llib/ -lavformat
To copy to clipboard, switch view to plain text mode
but it still use the older libs.
I tried it with absolute path too.
What should I do?
I use QtCreator and I checked LD_LIBRARY_PATH in the run settings.
Bookmarks