Building on Mac and tr1/type_traits not found

Building and customizing Audacity from the source code.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Mac OS X
GNU/Linux and Unix-like
Post Reply
Posts: 166
Joined: Wed Jan 06, 2016 10:53 am
Operating System: OS X 10.11 El Capitan or later (macOS)

Building on Mac and tr1/type_traits not found

Post by rachalmers » Tue May 10, 2016 6:55 am

I'm having a problem trying to get past this issue.
The Mac OSX 10.11.4 + 10.11SDK etc etc. I know it's not officially supported - but developers are working on it .. and I'm seeking help from someone who may know about this, and how to get past it. I'm working on it for a week or more now, but have got lost.

This is a screen snap of the output of the error in XCode. The offending .... code is actually in the /usr/local/include/wx-3.0-debug/wx/strvararg.h file, but also in the /usr/local/include/wx-3.1/wx/strvararg.h file.

Now, do I patch the WX file - or set a #define or #ifdef in the Audacity code somewhere.? Does anyone know or have an idea?

Code: Select all

#if defined(HAVE_TYPE_TRAITS)
    #include <type_traits>
#elif defined(HAVE_TR1_TYPE_TRAITS)
    #ifdef __VISUALC__
        #include <type_traits>
        #include <tr1/type_traits>

Site Admin
Posts: 47274
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Building on Mac and tr1/type_traits not found

Post by steve » Tue May 10, 2016 8:17 am

These are the only instructions that I know of that work: ... /Build.txt
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply