Talk:Building On Windows

From Audacity Wiki
Revision as of 16:24, 10 August 2020 by PeterSampson (talk | contribs) (remove stale P1 link - text remains)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Peter 07Jul10 - user Nick Gawronski [email protected] wrote on the devel email list re updating/correcting this page.
  • Hi, I went to the page and found several issues with the building process that should really be fixed on the wiki.
  • First, lots of URLS exist that have no links directly to them on the page. It would be a lot easier if these were normal html links so users could just select the link. *Second, no components are listed for Microsoft Visual C are mentioned it would be useful if such components that you need to select are listed. Third, when trying to build wxWidgets in the solution file when I tried to build the library no mention is made in the documentation that it requires the windows 8.1 SDK and no directions on how to fix this error on windows 10 pro 64 bits.
    • I even built the library using the command line directions but at the end of the build process no output location was given as to where the library compiled files were located.
  • Fourth the git clone command does not even point to the proper git location for the audacity sources so copying the command out of the page and pasting it into the command prompt gives me an error.
    • Also, Looking on that build page there are directions for mac components on there should those not be moved to their own section and not mixed with the windows components? *Fixing this build page on the wiki would be useful as well as stating if building the library wxWidgets from the command line as talked about in the project's documentation is supported by audacity.
  • Adding a command line building option for audacity for those of us who like to build using the command line and a makefile would also be useful or directions on how to generate one from the current files in the audacity sources.
  • Can someone please get back to me on this issue as I would like to test out the latest development sources and build the project from source to see if it works well with windows 10 pro 64 bits?
    • Including prebuilt binaries of the proper version of wxWidgets would also be useful as the links in that documentation do not work.
Henric wrote:
  • If you want to build from the command line, then I would suggest

putting the wxWdigets source in lib-src/wxWidgets. That way the environment variable is not necessary (although, it takes precedence if it exists). Then build wxWidgets with,

   msbuild /m lib-src\wxWidgets\build\msw\wx_vc15.sln "/p:Configuration=DLL Release;Platform=Win32;PlatformToolset=v141" /target:adv,base,core,html,net,qa,wxexpat,wxjpeg,wxpng,wxtiff,wxzlib,xml

and Audacity with:

  msbuild /m win/audacity.sln /p:Configuration=Release;Platform=Win32;PlatformToolset=v141

Replace v141 with v142 if you have VS2019 installed.

wxWidgets tries to pick a reasonable SDK, but falls back the (ancient) 8.1 SDK if it doesn't recognize the Visual Studio version (specifying "PlatformToolset=v141" should be enough). 17763 is used by the appveyor build and is the default installed with the latest version of Visual Studio 2017 (see "appveyor.yml" in the Audacity repo's root directory). The default is set in the root directory's, but can be overridden from the msbuild command line by setting it with,


It is probably a good idea to build both wxWidgets and Audacity with the same Windows SDK.

And yes, that build page should probably be updated.

Defaulting to Portable Settings

 UH?  These instructions are for Mac.
 1. Within add the directories:
    Portable Settings
    Portable Settings/AutoSave

 2. Set permissions on these two directories to 777
    chmod 777 "Portable Settings"
    chmod 777 "Portable Settings/AutoSave"

Optional Features

Some functionality in Audacity is currently turned on in its default
configuration, but requires that extra libraries be downloaded
separately to use it. 

To change the libraries enabled in Audacity, edit  
"win\configwin.h" and comment or uncomment the entries.

You might also try modifying the features enabled in 

Supporting ASIO

ASIO (from Steinberg) is a sound card interface protocol that is faster
than standard WMME. Unlike WMME, not all soundcard drivers support it.

Because ASIO is a proprietary, closed standard, we (or any third party)
cannot distribute its SDK. That means we cannot distribute builds of
Audacity that support ASIO, because Audacity is licensed under the GPL 
(, which requires we
distribute all source code. 

So, although you can build your own copies of Audacity with 
ASIO support, for personal use, you cannot distribute them without 
violating the Audacity license and the ASIO license. 
If you build ASIO support into Audacity, do not distribute that build. 

For ASIO support, get the ASIO SDK from Steinberg 
install at C:\ASIOSDK, then define an environment variable called

The value should be the full path to the base directory of the
ASIO SDK, e.g.,


Updating GitIdent

 The Audacity "About" box can contain a link to the git commit at which 
 Audacity was built. To create this, run this batch script in /mac/scripts/
 using the git-bash command  line
 If you do this, you are responsible for making sure the ident is correct
 in future builds.  The script overwrites RevisionIdent.h in the src directory.
 If you make further changes to your local copy after this step, or merge a
 more recent version from git, this file, and hence the ident in the build, 
 stays the same, and so would be misleading.
 To reset RevisionIdent.h you could do:
   git reset --hard origin/master

Preparing Languages

In the MSVC project languages are not built by default, so be careful you are not using an out of date version of the translations for release.
  1.  In the MSVC project, click on 'locale' project and build.

It looks like this step is historic and no longer needs to be done.
 1. Open the "gl_ES", "ko_KR" and "pt" folders in turn and move the "" file 
    in each to the "gl", "ko" and pt_PT folders respectively.
 2. Delete the "gl_ES", ko_KR and "pt" folders.
 3. COPY (do not move) from "eu" into "eu_ES".