Project

General

Profile

Actions

Emulator Issues #8848

closed

Dolphin fails to compile on OSX

Added by deaton.dg over 9 years ago.

Status:
Won't fix
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

What's the problem? Describe what went wrong in few words.
Dolphin fails to compile on Mac.

What did you expect to happen instead?
I expected Dolphin to compile.

What steps will reproduce the problem?

git clone https://github.com/dolphin-emu/dolphin.git ./dolphin-emu
cd ./dolphin-emu
mkdir build && cd build && cmake -G Ninja .. && ninja

Which versions of Dolphin did you test on?
Commit 14a0b01854555d23a5990e04f99e79f9aa6a1e7e
Also a few other random ones a few days ago.

Which versions of Dolphin used to work?
I'm not entirely sure since I haven't compiled in awhile, but I think it worked a couple weeks ago.

What are your PC specifications?
OSX 10.10.5, Xcode 6.4

Is there any other relevant information?

It looks like CMake isn't telling the Mac frameworks to link in the right way. It's trying "-framework -lQTKit" when I think it should just be "-framework QTKit".
Here's a compile log.
http://pastebin.com/wNCxeAfv

Actions #2

Updated by comexk over 9 years ago

What are the contents of build/CMakeCache.txt?

For me, QTKit only shows up in LIBAV_STATIC_LDFLAGS, and AFAIK that comes straight from pkg-config (although it's probably cmake's fault somehow...).

Actions #3

Updated by deaton.dg over 9 years ago

Here's the CMake cache.

http://pastebin.com/iWycd0rP

Actions #4

Updated by deaton.dg over 9 years ago

However, I just uninstalled libav and everything seems to work now. I suppose my libav install got messed up somehow? That's strange. Anyway, I appreciate the help. Thanks!

Actions #5

Updated by comexk over 9 years ago

  • Status changed from New to Accepted

Hmm, there's no "-lQTKit" in there, so it's probably somehow an issue with how LIBAV_LDFLAGS or LIBAV_STATIC_LDFLAGS made its way to videoogl_LIB_DEPENDS...

I guess this is probably caused by my commit: https://github.com/dolphin-emu/dolphin/commit/4b060891032bf0d158fb9b2a91a82c45f1fd223f

but the old version was broken as stated in the commit log. And linking libav works for me, even though we're both using OS X and Homebrew.

You're using CMake 3.3 while I'm on 3.2.3. Maybe this is relevant.

Actions #6

Updated by deaton.dg over 9 years ago

I actually wasn't using the libav/ffmpeg from Homebrew. I had built a copy from source as a different project I was messing around with didn't like brew's. Using a libav built from source causes the issue, but having switched back to brew's, Dolphin compiles again.

Actions #7

Updated by comexk over 9 years ago

  • Status changed from Accepted to Won't fix

mm, well, in that case, being lazy, I guess I'm going to close this for now. Thanks for the report.

Actions

Also available in: Atom PDF