Project

General

Profile

Actions

Emulator Issues #5392

closed

undefined refrence, ubuntu 12.04

Added by supermariolinux over 12 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

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.


Related issues 1 (0 open1 closed)

Is duplicate of Emulator - Emulator Issues #5266: Compile Fails on Debian Wheezy due to missing libav mathematics.h header file.Fixed

Actions
Actions #1

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.

Actions #2

Updated by supermariolinux over 12 years ago

thank you, that worked :)

Actions #3

Updated by skidau over 12 years ago

  • Status changed from New to Duplicate
Actions

Also available in: Atom PDF