Compiling Audacity code from GitHub

I am working on compiling Audacity for ASIO. I followed the instructions for Compiling Audacity for Windows.
I was successful in compiling the wxwidget 3.0.2 dll’s

But I have not been able to compile the Audacity 2.1.2 code from GitHub.

I have tried on different pc’s with the same results.

Weather I add the wxwidget dll’s to the Debug and/or Release folder, or not at all, I get the following errors:

Error 1 error C1083: Cannot open include file: ‘wx/defs.h’: No such file or directory c:…\visual studio 2013\projects\audacity\lib-src\filedialog\filedialog.h 20 1 filedialog
Error 2 error C1083: Cannot open include file: ‘zlib.h’: No such file or directory c:…\visual studio 2013\projects\audacity\lib-src\libid3tag\util.c 29 1 libid3tag
Error 3 error C1083: Cannot open include file: ‘wx/wxprec.h’: No such file or directory c:…\visual studio 2013\projects\audacity\lib-src\filedialog\win\filedialogprivate.cpp 23 1 filedialog
Error 4 error C1083: Cannot open include file: ‘wx/wx.h’: No such file or directory c:…\visual studio 2013\projects\audacity\src\audacityheaders.h 30 1 Audacity

Any help with this is greatly appreciated.

Did you set the WXWIN environment variable and restart the computer before building Audacity?


Gale

Yes,

As instructed, I ran both:

set WXWIN =C:\wxWidgets-3.0.2
set ASIOSDK_DIR=C:\ASIOSDK2

and restarted. Same errors…

Did you build the correct version of widgets for which you are compiling Audacity?

If yes, have you tried building Audacity without the ASIOSDK_DIR set? If that works, then including ASIO support could be the problem. I don’t know if anyone has tested ASIO building with wx3.0.2.


Gale

I’ve tried:
With environment variables set for ASIO and WXWIN
With wxWidget dll’s with Debug and Release build
Without wxwidget dll’s with Debug and Release build
With out environment variable ASIO
With out environment variable WXWIN
And all of the above with wxWidget version 2.8.12

Getting started building the current Audacity code: says
Only wxWidgets 3.0.2 is now supported - obtain this from the top of http://wxwidgets.org/downloads/.

and I did.

I have followed the instructions to the letter.

Is there another place to get the Source Code?
I just want to start by compiling Audacity without any modifications.

Sorry I can’t help much with this as I’m on Linux, but just to say that GitHub is the official repository and all official Audacity releases come from the code in GitHub. The current ZIP download from GitHub “should” work correctly - there’s still a few bugs to be fixed before the next release, but it is “stable”. The link to the current ZIP package is here: https://github.com/audacity/audacity

You have not answered this:

I don’t know if you batch built wxWidgets but to keep it simple to begin with, I suggest you compile the Release version of Audacity. That requires you compile the “DLL Release” version of wxWidgets.

If you want to compile the Debug version of Audacity, you must compile the “DLL Debug” version of wxWidgets.

If you have compiled DLL Release of wxWidgets you should have a folder “C:\wxWidgets-3.0.2\build\msw\vc_mswudll”. If you are still stuck, open a command prompt. Execute these commands:

cd C:\wxWidgets-3.0.2\build\msw\vc_mswudll



dir /s /o:d > listing.txt

Attach the file “listing.txt”. Please see here for how to attach files: https://forum.audacityteam.org/t/how-to-attach-files-to-forum-posts/24026/1


Gale

ASIO support shouldn’t make any problem.
I have those devices after compiling with it:

Device ID: 14
Device name: ASIO4ALL v2
Host name: ASIO
Recording channels: 2
Playback channels: 2
Low Recording Latency: 0.011610
Low Playback Latency: 0.011610
High Recording Latency: 0.046440
High Playback Latency: 0.046440
Supported Rates:
    8000
    11025
    16000
    22050
    24000
    32000
    44100
    48000
    88200
    96000
    176400
    192000
==============================
Device ID: 15
Device name: Lexicon IO42
Host name: ASIO
Recording channels: 6
Playback channels: 4
Low Recording Latency: 0.005805
Low Playback Latency: 0.005805
High Recording Latency: 0.005805
High Playback Latency: 0.005805
Supported Rates:
    44100
==============================
Device ID: 16
Device name: UMC ASIO Driver
Host name: ASIO
Recording channels: 2
Playback channels: 4
Low Recording Latency: 0.046440
Low Playback Latency: 0.046440
High Recording Latency: 0.046440
High Playback Latency: 0.046440
Supported Rates:
    44100
    48000
    88200
    96000
==============================

Robert

To start with a clean slate:

Deleted existing wxWidgets folder.
Downloaded fresh version.
Deleted existing audacity folder.

MSVC++ STEP 1:
downloaded a fresh copy of wxWidgets-3.0.2

MSVC++ STEP 3:
downloaded a fresh copy of Audacity from GitHub

MSVC++ STEP 2:
2.1 Build wxWidgets for all configurations of Audacity…"
Opened “C:\wxWidgets-3.0.2\build\msw\wx_dll.dsw” with
Microsoft Visual Studio.
2.2 Copied “audacity\win\wxWidgets_additions\setup.h” to
“C:\wxWidgets-3.0.2\include\wx\msw\setup.h”.
2.3 Build wxWidgets for all configurations of Audacity…"
Copied “audacity-src\win\wxWidgets_additions\window.cpp” to
“C:\wxWidgets-3.0.2\src\msw\window.cpp”.

DLL Release Win32
Build Selections

  • adv
  • base
  • core
  • html
  • net
  • qa
  • xml
  • wxexpat
  • wxjpeg
  • wxpng
  • wxregex
  • wxtiff
  • wxzlib
    Build: 13 succeeded, 0 failed, 0 up-to-date, 0 skipped

MSVC++ STEP 4:
set WXWIN =C:\wxWidgets-3.0.2

MSVC++ STEP 5:
Did not add anything

MSVC++ STEP 6: Build Audacity
Attempted to build Audacity Release Win32
Build: 19 succeeded, 5 failed, 0 up-to-date, 0 skipped
261 errors

I have attached the list you requested along with the build errors.
Again, many thanks for any and all help on this…
Audacity Compile Errors.txt (907 Bytes)
listing.txt (75.1 KB)

Listing.txt looks OK to me.

In the compile errors file you say “set WXWIN =C:\wxWidgets-2.8.12”. Obviously that WXWIN should be “C:\wxWidgets-3.0.2” as you stated farther up. Make sure you don’t have multiple conflicting WXWIN variables. The solution is not set up to allow for that.


Gale

Sorry, I uploaded the wrong error file. The reference to wxWidgets 2.8.12 was just a note.

I uploaded the build errors.

Referring to Robert’s reply: where do you view the devices?
Audacity Build Errors.txt (51.9 KB)

If you want to compile the locale project you will need to obtain msgfmt.exe as per 5.2 in compile.txt.

Apart from locale, which other Audacity projects are not compiling?

Please post the output of set.

Help > Audio Device Info… top right of Audacity.

Gale