Building Audacity on Visual Studio 2015

From Audacity Wiki
Revision as of 07:19, 15 April 2016 by Rachalmers (talk | contribs) (Progress to date. Opening Comments)
Jump to: navigation, search

This is a sandbox type of page for those interested in VS 2015 to work with.

On this and other pages, I will be detailing just what I am doing to try and get Audacity to compile cleanly and successfully on Windows 10 using Visual Studio 2015 and it's related SDKs.

However, as at Friday 15th April, 2016, I have the compile down to 21 out of 24 parts building successfully. Those not building are

  1. libnyquist
  2. libsndfile
  3. lv2

Their problems are in the main, these types of problems.

  • 22>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925): warning C4005: 'snprintf': macro redefinition
  • 22>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925): note: command-line arguments: see previous definition of 'snprintf'
  • 22>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927): fatal error C1189: #error: Macro definition of snprintf conflicts with Standard Library function declaration

I have applied this,

  #if _MSC_VER < 1900
       #define snprintf _snprintf

to everywhere I can find a #define - and it made some little difference.... but the error persists. At the moment, I can't find the culprits.

So as of today, I have 655 Errors, 558 Warnings. Meaning 21 successful and 3 not.

I will detail what I have done so far to get to this stage in the next little while.