Dolphin, the GameCube and Wii emulator - Forums
Error when compiling in OSX 10.5 - 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: Support (https://forums.dolphin-emu.org/Forum-support)
+--- Thread: Error when compiling in OSX 10.5 (/Thread-error-when-compiling-in-osx-10-5)



Error when compiling in OSX 10.5 - shawnanastasio - 12-19-2009

Hi peps,
i am trying to compile dolphin svn r4710 on my intel mac running leopard. i have successfully compiled older revisions but when i try to compile this one i get an error. here i what it says:
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: Build/Darwin-i386-release
Compiling Build/Darwin-i386-release/Source/Core/AudioCommon/Src/CoreAudioSoundStream.o
Source/Core/AudioCommon/Src/Mixer.h:29: warning: 'class CMixer' has virtual functions but non-virtual destructor
Source/Core/AudioCommon/Src/CoreAudioSoundStream.cpp: In function 'OSStatus callback(void*, AudioUnitRenderActionFlags*, const AudioTimeStamp*, UInt32, UInt32, AudioBufferList*)':
Source/Core/AudioCommon/Src/CoreAudioSoundStream.cpp:29: warning: unused variable 'remaining'
Source/Core/AudioCommon/Src/CoreAudioSoundStream.cpp: In member function 'bool CoreAudioSound::CoreAudioInit()':
Source/Core/AudioCommon/Src/CoreAudioSoundStream.cpp:91: error: 'kAudioUnitProperty_ShouldAllocateBuffer' was not declared in this scope
scons: *** [Build/Darwin-i386-release/Source/Core/AudioCommon/Src/CoreAudioSoundStream.o] Error 1
scons: building terminated because of errors.
can someone please help?
thx in advance.


RE: Error when compiling in OSX 10.5 - shawnanastasio - 12-20-2009

anyone? any help?


RE: Error when compiling in OSX 10.5 - matthijn - 12-20-2009

I have looked for the value of 'kAudioUnitProperty_ShouldAllocateBuffer' and it should be 51 as far as i know, compiling over here goes much further now (had the same error).

Anyways, in the file
Source/Core/AudioCommon/Src/CoreAudioSoundStream.cpp

On line 91 replace 'kAudioUnitProperty_ShouldAllocateBuffer' with 51 (thats what i did, and it got much further, actualy it is still compiling with no critical errors)

5 minutes of compiling later, I do get some errors, but dont think it has to do with this. So i'll be looking further.


RE: Error when compiling in OSX 10.5 - shawnanastasio - 12-21-2009

thanks soo much but now i get this error:

Compiling Build/Darwin-i386-release/Source/Core/Common/Src/ExtendedTrace.o
Compiling Build/Darwin-i386-release/Source/Core/Common/Src/FileSearch.o
Compiling Build/Darwin-i386-release/Source/Core/Common/Src/FileUtil.o
Source/Core/Common/Src/FileUtil.cpp:537:25: error: operator '&&' has no right operand
scons: *** [Build/Darwin-i386-release/Source/Core/Common/Src/FileUtil.o] Error 1
scons: building terminated because of errors.
thx