<HTML><BODY>Hi. I've used libav in my project in 2009 and everything was fine until I decided to reinstall my program now. <br>When I'm trying to do `make` for my project I've got the following:<br><br>nauro@nauro:~/work/AllViewProject/Season_2/VPCnew$ make<br>g++ -c -pipe -g -Wall -W -O2 -D_REENTRANT  -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I. -IAVSDK -I/usr/include/qt3 -o main.o main.cpp<br>g++ -c -pipe -g -Wall -W -O2 -D_REENTRANT  -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I. -IAVSDK -I/usr/include/qt3 -o AVC.o AVSDK/AVC.cpp<br>g++ -c -pipe -g -Wall -W -O2 -D_REENTRANT  -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I. -IAVSDK -I/usr/include/qt3 -o AVLoadSo.o AVSDK/AVLoadSo.cpp<br>g++  -o VPCnew main.o AVC.o AVLoadSo.o    -L/usr/X11R6/lib -L/usr/lib -lqt-mt -lavcodec -lSDL  -lXext -lX11 -lm -lpthread<br>main.o: In function `main':<br>/home/nauro/work/AllViewProject/Season_2/VPCnew/main.cpp:398: undefined reference to `avcodec_register_all()'<br>/home/nauro/work/AllViewProject/Season_2/VPCnew/main.cpp:414: undefined reference to `avcodec_find_decoder(CodecID)'<br>/home/nauro/work/AllViewProject/Season_2/VPCnew/main.cpp:421: undefined reference to `avcodec_alloc_context()'<br>/home/nauro/work/AllViewProject/Season_2/VPCnew/main.cpp:422: undefined reference to `avcodec_alloc_context()'<br>/home/nauro/work/AllViewProject/Season_2/VPCnew/main.cpp:433: undefined reference to `avcodec_open(AVCodecContext*, AVCodec*)'<br>/home/nauro/work/AllViewProject/Season_2/VPCnew/main.cpp:435: undefined reference to `avcodec_open(AVCodecContext*, AVCodec*)'<br>/home/nauro/work/AllViewProject/Season_2/VPCnew/main.cpp:438: undefined reference to `avcodec_alloc_frame()'<br>/home/nauro/work/AllViewProject/Season_2/VPCnew/main.cpp:439: undefined reference to `avcodec_alloc_frame()'<br>/home/nauro/work/AllViewProject/Season_2/VPCnew/main.cpp:440: undefined reference to `avcodec_alloc_frame()'<br>/home/nauro/work/AllViewProject/Season_2/VPCnew/main.cpp:441: undefined reference to `avcodec_alloc_frame()'<br>/home/nauro/work/AllViewProject/Season_2/VPCnew/main.cpp:662: undefined reference to `av_free(void*)'<br>/home/nauro/work/AllViewProject/Season_2/VPCnew/main.cpp:665: undefined reference to `avcodec_close(AVCodecContext*)'<br>/home/nauro/work/AllViewProject/Season_2/VPCnew/main.cpp:666: undefined reference to `avcodec_close(AVCodecContext*)'<br>/home/nauro/work/AllViewProject/Season_2/VPCnew/main.cpp:609: undefined reference to `avcodec_open(AVCodecContext*, AVCodec*)'<br>/home/nauro/work/AllViewProject/Season_2/VPCnew/main.cpp:610: undefined reference to `avcodec_open(AVCodecContext*, AVCodec*)'<br>collect2: ld returned 1 exit status<br>make: *** [VPCnew] Ошибка 1<br>nauro@nauro:~/work/AllViewProject/Season_2/VPCnew$ <br><span></span><br>Well, I don't understand what's wrong with it, because libavcodec and libavcodec-dev are installed, in main.cpp I've got #include <libavcodec/avcodec.h> And all this function are in avcodec.h...<br><br>Thanks for your help.<br><br>Best regards,<br>Nauro.<br><div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;" class="mcePaste" id="_mcePaste">nauro@nauro:~/work/AllViewProject/Season_2/VPCnew$ make<br>g++ -c -pipe -g -Wall -W -O2 -D_REENTRANT  -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I. -IAVSDK -I/usr/include/qt3 -o main.o main.cpp<br>g++ -c -pipe -g -Wall -W -O2 -D_REENTRANT  -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I. -IAVSDK -I/usr/include/qt3 -o AVC.o AVSDK/AVC.cpp<br>g++ -c -pipe -g -Wall -W -O2 -D_REENTRANT  -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I. -IAVSDK -I/usr/include/qt3 -o AVLoadSo.o AVSDK/AVLoadSo.cpp<br>g++  -o VPCnew main.o AVC.o AVLoadSo.o    -L/usr/X11R6/lib -L/usr/lib -lqt-mt -lavcodec -lSDL  -lXext -lX11 -lm -lpthread<br>main.o: In function `main':<br>/home/nauro/work/AllViewProject/Season_2/VPCnew/main.cpp:398: undefined reference to `avcodec_register_all()'<br>/home/nauro/work/AllViewProject/Season_2/VPCnew/main.cpp:414: undefined reference to `avcodec_find_decoder(CodecID)'<br>/home/nauro/work/AllViewProject/Season_2/VPCnew/main.cpp:421: undefined reference to `avcodec_alloc_context()'<br>/home/nauro/work/AllViewProject/Season_2/VPCnew/main.cpp:422: undefined reference to `avcodec_alloc_context()'<br>/home/nauro/work/AllViewProject/Season_2/VPCnew/main.cpp:433: undefined reference to `avcodec_open(AVCodecContext*, AVCodec*)'<br>/home/nauro/work/AllViewProject/Season_2/VPCnew/main.cpp:435: undefined reference to `avcodec_open(AVCodecContext*, AVCodec*)'<br>/home/nauro/work/AllViewProject/Season_2/VPCnew/main.cpp:438: undefined reference to `avcodec_alloc_frame()'<br>/home/nauro/work/AllViewProject/Season_2/VPCnew/main.cpp:439: undefined reference to `avcodec_alloc_frame()'<br>/home/nauro/work/AllViewProject/Season_2/VPCnew/main.cpp:440: undefined reference to `avcodec_alloc_frame()'<br>/home/nauro/work/AllViewProject/Season_2/VPCnew/main.cpp:441: undefined reference to `avcodec_alloc_frame()'<br>/home/nauro/work/AllViewProject/Season_2/VPCnew/main.cpp:662: undefined reference to `av_free(void*)'<br>/home/nauro/work/AllViewProject/Season_2/VPCnew/main.cpp:665: undefined reference to `avcodec_close(AVCodecContext*)'<br>/home/nauro/work/AllViewProject/Season_2/VPCnew/main.cpp:666: undefined reference to `avcodec_close(AVCodecContext*)'<br>/home/nauro/work/AllViewProject/Season_2/VPCnew/main.cpp:609: undefined reference to `avcodec_open(AVCodecContext*, AVCodec*)'<br>/home/nauro/work/AllViewProject/Season_2/VPCnew/main.cpp:610: undefined reference to `avcodec_open(AVCodecContext*, AVCodec*)'<br>collect2: ld returned 1 exit status<br>make: *** [VPCnew] Ошибка 1<br>nauro@nauro:~/work/AllViewProject/Season_2/VPCnew$ <br><br _mce_bogus="1"></div></BODY></HTML>