Building on Mac and tr1/type_traits not found

Building and customizing Audacity from the source code.

If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like

Building on Mac and tr1/type_traits not found

Permanent link to this post Posted 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>
    #else
        #include <tr1/type_traits>
    #endif
#endif


Image
rachalmers
 
Posts: 163
Joined: Wed Jan 06, 2016 10:53 am
Operating System: OS X 10.11 El Capitan or later (macOS)

Re: Building on Mac and tr1/type_traits not found

Permanent link to this post Posted by steve » Tue May 10, 2016 8:17 am

These are the only instructions that I know of that work: https://github.com/audacity/audacity/bl ... /Build.txt
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Senior Forum Staff
 
Posts: 43435
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux Debian


Return to Compiling Audacity



Who is online

Users browsing this forum: No registered users and 1 guest