Dolphin, the GameCube and Wii emulator - Forums
Errors compiling Dolphin under Mac OS - Printable Version

+- Dolphin, the GameCube and Wii emulator - Forums (https://forums.dolphin-emu.org)
+-- Forum: Dolphin Emulator Discussion and Support (https://forums.dolphin-emu.org/Forum-dolphin-emulator-discussion-and-support)
+--- Forum: Development Discussion (https://forums.dolphin-emu.org/Forum-development-discussion)
+--- Thread: Errors compiling Dolphin under Mac OS (/Thread-errors-compiling-dolphin-under-mac-os)



Errors compiling Dolphin under Mac OS - flashkraker - 03-09-2012

Ive seen this posted elsewhere but I didn't really find an answer on how to get around this.

When I go to compile Dolphin I get:



Cloning into dolphin-emu...
remote: Counting objects: 118927, done.
remote: Finding sources: 100% (118927/118927), done.
remote: Total 118927 (delta 90042)
Receiving objects: 100% (118927/118927), 124.30 MiB | 3.15 MiB/s, done.
Resolving deltas: 100% (90042/90042), done.
scons: Reading SConscript files ...
Delete("Src/scmrev.h")
scons: done reading SConscript files.
scons: Building targets ...
scons: Nothing to be done for `SConstruct'.
Install file: "Externals/Cg/Cg.framework/Cg" as "Binary/Darwin-x86_64/Dolphin.app/Contents/Frameworks/Cg.framework/Cg"
Install directory: "Externals/Cg/Cg.framework/Resources" as "Binary/Darwin-x86_64/Dolphin.app/Contents/Frameworks/Cg.framework/Resources"
createPlist(["Binary/Darwin-x86_64/Dolphin.app/Contents/Info.plist"], [{'CFBundleShortVersionString': '3.0-441', 'CFBundleIconFile': 'Dolphin.icns', 'LSRequiresCarbon': True, 'CFBundleIdentifier': 'com.dolphin-emulator.dolphin', 'CFBundleDocumentTypes': [{'CFBundleTypeName': 'Nintendo GC/Wii file', 'CFBundleTypeRole': 'Viewer', 'CFBundleTypeIconFile': 'Dolphin.icns', 'CFBundleTypeExtensions': ('ciso', 'dol', 'elf', 'gcm', 'gcz', 'iso', 'wad')}], 'CFBundleExecutable': 'Dolphin', 'LSMinimumSystemVersion': '10.5.4', 'CFBundlePackageType': 'APPL', 'CFBundleVersion': '3.0', 'CFBundleLocalizations': []}])
Compiling Build/Darwin-x86_64-release/Source/Core/DolphinWX/Src/ARCodeAddEdit.o
sh: /Developer/usr/bin/llvm-g++: No such file or directory
scons: *** [Build/Darwin-x86_64-release/Source/Core/DolphinWX/Src/ARCodeAddEdit.o] Error 127
scons: building terminated because of errors.



RE: Errors compiling Dolphin under Mac OS - scummos - 03-09-2012

You don't have the compiler installed or it is installed in the wrong place. scons tells you:
Code:
sh: /Developer/usr/bin/llvm-g++: No such file or directory



RE: Errors compiling Dolphin under Mac OS - flashkraker - 03-09-2012

(03-09-2012, 11:19 AM)scummos Wrote: You don't have the compiler installed or it is installed in the wrong place. scons tells you:
Code:
sh: /Developer/usr/bin/llvm-g++: No such file or directory

I fixed the first error. That has to do with Xcode 4.3 being installed in the Applications folder rather than Developer.

It ran for quite sometime but now I get another error:


Archiving Build/Darwin-x86_64-release/Source/Core/Core/libcore.a
sh: ar: command not found
scons: *** [Build/Darwin-x86_64-release/Source/Core/Core/libcore.a] Error 127
scons: building terminated because of errors.



Ideas?



RE: Errors compiling Dolphin under Mac OS - Shonumi - 03-09-2012

I guess it's because your shell can't find the ar command. According to Apple's dev pages it should have been part of Xcode. Might wanna check your installation again. Dunno too much about OS X, but it's a Unix OS. Try this command from the terminal:

Code:
which ar

See if it prints out a path to the executable. If it does, then that means it's at least installed on your computer. It could just be that it's not installed where your shell expects it.


RE: Errors compiling Dolphin under Mac OS - delroth - 03-09-2012

You should also use cmake instead of scons. We do not support scons build anymore AFAIK.


RE: Errors compiling Dolphin under Mac OS - scummos - 03-09-2012

(03-09-2012, 01:56 PM)Shonumi Wrote: I guess it's because your shell can't find the ar command. According to Apple's dev pages it should have been part of Xcode. Might wanna check your installation again. Dunno too much about OS X, but it's a Unix OS. Try this command from the terminal:

Code:
which ar

See if it prints out a path to the executable. If it does, then that means it's at least installed on your computer. It could just be that it's not installed where your shell expects it.

That doesn't make a lot of sense. which will find exactly the same things the shell will find too, as it searches in the same places. In other words, I don't think you'll ever get any information from which if bash tells you "command not found".


RE: Errors compiling Dolphin under Mac OS - Shonumi - 03-10-2012

(03-09-2012, 08:37 PM)scummos Wrote: That doesn't make a lot of sense. which will find exactly the same things the shell will find too, as it searches in the same places. In other words, I don't think you'll ever get any information from which if bash tells you "command not found".

Ah, you're right. Which only checks the $PATH variable. A more accurate way to see if the program is anywhere on your system would be to use the find command. To avoid any permission errors, try running this as an admin/superuser/root or whatever OS X refers to:

Code:
find / -maxdepth 5 -name ar


You can increase the maxdepth argument to (possibly) get more results. It should give you a list of files that are named "ar", if any exist on your system. If one of them turns out to be the ar command you need, you could try adding that to your $PATH variable.


RE: Errors compiling Dolphin under Mac OS - scummos - 03-10-2012

ar is an archiver program, maybe it just isn't installed, regardless of what the documentation says about whether it should be or not. I'd just try googling that.