Compiling Audacity code from GitHub

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

Compiling Audacity code from GitHub

Permanent link to this post Posted by gspeedtech » Thu Oct 15, 2015 7:47 pm

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.
gspeedtech
 
Posts: 5
Joined: Thu Oct 15, 2015 5:49 pm
Operating System: Please select

Re: Compiling Audacity code from GitHub

Permanent link to this post Posted by Gale Andrews » Thu Oct 15, 2015 8:21 pm

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


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual
Gale Andrews
Quality Assurance
 
Posts: 26087
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Compiling Audacity code from GitHub

Permanent link to this post Posted by gspeedtech » Thu Oct 15, 2015 8:29 pm

Yes,

As instructed, I ran both:

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

and restarted. Same errors...
gspeedtech
 
Posts: 5
Joined: Thu Oct 15, 2015 5:49 pm
Operating System: Please select

Re: Compiling Audacity code from GitHub

Permanent link to this post Posted by Gale Andrews » Thu Oct 15, 2015 8:49 pm

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
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual
Gale Andrews
Quality Assurance
 
Posts: 26087
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Compiling Audacity code from GitHub

Permanent link to this post Posted by gspeedtech » Thu Oct 15, 2015 11:06 pm

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.
gspeedtech
 
Posts: 5
Joined: Thu Oct 15, 2015 5:49 pm
Operating System: Please select

Re: Compiling Audacity code from GitHub

Permanent link to this post Posted by steve » Thu Oct 15, 2015 11:57 pm

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
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 46982
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Compiling Audacity code from GitHub

Permanent link to this post Posted by Gale Andrews » Fri Oct 16, 2015 12:23 am

You have not answered this:
Gale Andrews wrote:Did you build the correct version of widgets for which you are compiling Audacity?

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:
Code: Select all
cd C:\wxWidgets-3.0.2\build\msw\vc_mswudll

Code: Select all
dir /s /o:d > listing.txt

Attach the file "listing.txt". Please see here for how to attach files: http://forum.audacityteam.org/viewtopic.php?f=49&t=64936.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual
Gale Andrews
Quality Assurance
 
Posts: 26087
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Compiling Audacity code from GitHub

Permanent link to this post Posted by Robert J. H. » Fri Oct 16, 2015 1:29 pm

ASIO support shouldn't make any problem.
I have those devices after compiling with it:
Code: Select all
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
Robert J. H.
 
Posts: 1813
Joined: Thu May 31, 2012 8:33 am
Operating System: Windows 7

Re: Compiling Audacity code from GitHub

Permanent link to this post Posted by gspeedtech » Fri Oct 16, 2015 11:22 pm

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...
Attachments
listing.txt
wxWidgets build list
(75.05 KiB) Downloaded 45 times
Audacity Compile Errors.txt
Audacity build errors
(907 Bytes) Downloaded 54 times
gspeedtech
 
Posts: 5
Joined: Thu Oct 15, 2015 5:49 pm
Operating System: Please select

Re: Compiling Audacity code from GitHub

Permanent link to this post Posted by Gale Andrews » Sat Oct 17, 2015 7:23 pm

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
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual
Gale Andrews
Quality Assurance
 
Posts: 26087
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Next

Return to Compiling Audacity



Who is online

Users browsing this forum: No registered users and 2 guests