Project

General

Profile

Actions

Emulator Issues #808

closed

Dolphin svn compilation and launch broken on Mac OS X

Added by qmathe over 15 years ago.

Status:
Fixed
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 version of the product are you using? On what operating system?
SVN trunk r2813 on Mac OS X 10.5.6 x86

Compilation is currently broken on Mac OS X...

First, there is a typo in the include of CFURL.h as explained by soren.jorvang here: http://code.google.com/p/dolphin-emu/wiki/MacOSX_Build

I corrected this CFURL include statement, but it now fails on OpenAL:

Compiling Build/Darwin-i386-release/Source/Core/AudioCommon/Src/AudioCommon.o
In file included from Source/Core/AudioCommon/Src/AudioCommon.cpp:23:
Source/Core/AudioCommon/Src/OpenALStream.h:31:19: error: AL/al.h: No such file or directory
Source/Core/AudioCommon/Src/OpenALStream.h:32:20: error: AL/alc.h: No such file or
directory

I installed openal with macports, but the directory which contains the headers is
/opt/local/include/openal and not /opt/local/include/AL. I worked around this problem by
making a symbolic link /opt/local/include/AL on the openal directory.

Then it fails with another error:

Source/Core/AudioCommon/Src/OpenALStream.cpp: In member function 'virtual bool
OpenALStream::Start()':
Source/Core/AudioCommon/Src/OpenALStream.cpp:35: error: invalid conversion from 'char*' to
'ALCubyte*'
Source/Core/AudioCommon/Src/OpenALStream.cpp:35: error: initializing argument 1 of
'ALCdevice* alcOpenDevice(ALCubyte*)'
scons: *** [Build/Darwin-i386-release/Source/Core/AudioCommon/Src/OpenALStream.o] Error
1

I was able to work around that by disabling OpenAL with an #undef HAVE_OPENAL in Source/Core/Common/Src/Common.h

Then everything compiles fine, however Dolphin crashes on launch with an issue that seems
similar to: http://code.google.com/p/dolphin-emu/issues/detail?id=462

Here is the logging output:
17:47:367 N: BOOT Loading Settings from ./User/Config/Dolphin.ini
handler instance 0x0
17:47:433 N: BOOT Starting application
17:47:433 N: BOOT Loading Settings from ./User/Config/Dolphin.ini
17:47:510 W: COMMON IsDirectory: stat failed on
./USER/WII/TITLE/00000001/00000002/CONTENT: No such file or directory

… and the backtrace:
Reason: KERN_INVALID_ADDRESS at address: 0xfffffff4
0x95486a9c in std::string::assign ()
(gdb) bt
#0 0x95486a9c in std::string::assign ()
#1 0x95486b71 in std::string::assign ()
#2 0x15083cc9 in IniFile::Get ()
#3 0x1508bee5 in AudioCommonConfig::Load ()
#4 0x15061f91 in CConfig::Load ()
#5 0x15061fbf in CConfig::CConfig ()
#6 0x150911d4 in __static_initialization_and_destruction_0 ()
#7 0x150911ef in global constructors keyed to g_Config ()
#8 0x8fe12f36 in
__dyld__ZN16ImageLoaderMachO18doModInitFunctionsERKN11ImageLoader11LinkContextE ()
#9 0x8fe0e7e3 in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEj ()
#10 0x8fe0e8c9 in __dyld__ZN11ImageLoader15runInitializersERKNS_11LinkContextE ()
#11 0x8fe02202 in __dyld__ZN4dyld15runInitializersEP11ImageLoader ()
#12 0x8fe0bbdd in __dyld_dlopen ()
#13 0x95046202 in dlopen ()
#14 0x000f62e9 in DynamicLibrary::Load ()
#15 0x00102065 in Common::CPlugin::CPlugin ()
#16 0x00068ec4 in CPluginInfo::CPluginInfo ()
#17 0x0006a118 in CPluginManager::ScanForPlugins ()
#18 0x00013e71 in CFrame::CFrame ()
#19 0x00048380 in DolphinApp::OnInit ()
#20 0x00048fae in wxAppConsole::CallOnInit ()
#21 0x008224ab in wxEntry ()
#22 0x00047b42 in main ()

Actions

Also available in: Atom PDF