sbooth/SFBAudioEngine — Issue #11: Problems compiling
Author: ivgalic
Created: 2012-02-01 23:45:32+00:00
State: open

Hi,

I'm trying to compile the SFBAudioEngine framework for Mac, but it fails with these errors:

SFBAudioEngine/Metadata/MP4Metadata.cpp: In function 'void DisableMP4v2Logging()':
SFBAudioEngine/Metadata/MP4Metadata.cpp:44: error: 'MP4_LOG_NONE' was not declared in this scope
SFBAudioEngine/Metadata/MP4Metadata.cpp:44: error: 'MP4LogSetLevel' was not declared in this scope

And a million of these:

In file included from /usr/include/c++/4.2.1/istream:845,
from /usr/include/c++/4.2.1/sstream:44,
from /Users/nightition/Development/other/SFBAudioEngine/Logger.h:34,
from /Users/nightition/Development/other/SFBAudioEngine/Decoders/MonkeysAudioDecoder.cpp:41:
/usr/include/c++/4.2.1/bits/istream.tcc:123:35: error: macro "min" requires 2 arguments, but only 1 given
/usr/include/c++/4.2.1/bits/istream.tcc:124:45: error: macro "max" requires 2 arguments, but only 1 given
/usr/include/c++/4.2.1/bits/istream.tcc:143:33: error: macro "min" requires 2 arguments, but only 1 given
/usr/include/c++/4.2.1/bits/istream.tcc:144:43: error: macro "max" requires 2 arguments, but only 1 given
/usr/include/c++/4.2.1/bits/istream.tcc:438:48: error: macro "max" requires 2 arguments, but only 1 given
/usr/include/c++/4.2.1/bits/istream.tcc:441:53: error: macro "min" requires 2 arguments, but only 1 given
/usr/include/c++/4.2.1/bits/istream.tcc:449:47: error: macro "max" requires 2 arguments, but only 1 given
/usr/include/c++/4.2.1/bits/istream.tcc:489:48: error: macro "max" requires 2 arguments, but only 1 given
/usr/include/c++/4.2.1/bits/istream.tcc:493:53: error: macro "min" requires 2 arguments, but only 1 given
/usr/include/c++/4.2.1/bits/istream.tcc:501:47: error: macro "max" requires 2 arguments, but only 1 given
/usr/include/c++/4.2.1/bits/istream.tcc:507:53: error: macro "max" requires 2 arguments, but only 1 given
/usr/include/c++/4.2.1/bits/istream.tcc:806:43: error: macro "max" requires 2 arguments, but only 1 given

I first compiled all of the required frameworks myself and then realized you uploaded an archive :) It didn't help with the MP4 errors, and of course neither did it help for the template-related ones.

I'm using Xcode 4.2 on Lion. Changing between LLVM GCC 4.2 and LLVM 3.0 didn't help.

Any ideas?

Thanks,
Ivan