Emulator Issues #5392
closedundefined refrence, ubuntu 12.04
0%
Description
dolphin wont finish compiling on 12.04
i get this error at %100:
./VideoCommon/libvideocommon.a(AVIDump.cpp.o): In function AVIDump::AddFrame(unsigned char*, int, int)': AVIDump.cpp:(.text+0xef): undefined reference to
av_rescale_q(long, AVRational, AVRational)'
collect2: ld returned 1 exit status
make[2]: *** [Binaries/dolphin-emu] Error 1
make[1]: *** [Source/Core/DolphinWX/CMakeFiles/dolphin-emu.dir/all] Error 2
make: *** [all] Error 2
i saw this http://code.google.com/p/dolphin-emu/issues/detail?id=5266#c5 which claims to have fixed it but i can not find the patch they are mentioned, also i would think the problem would be gone almost a month after the patch was submitted.
please help me.
Updated by pauldacheez over 12 years ago
In the first post on Issue 5266:
"Here is the link to the patch:
http://min.us/mboTPJIzZd"
So, open dolphin-emu/Source/Core/VideoCommon/Src/AVIDump.cpp in gedit, and stuff this line in between lines 213 and 214:
#include <libavutil/mathematics.h>
It should look like this:
extern "C" {
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libswscale/swscale.h>
#include <libavutil/mathematics.h>
}
Then it should compile fine.
As to why this patch hasn't been integrated in, I'm not sure. The developers might just not have noticed.