wxWidgets 3.1.3 - Windows Build

Building and customizing Audacity from the source code.
Forum rules
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
roadsterUK
Posts: 185
Joined: Sat Apr 15, 2017 8:00 pm
Operating System: Windows 10

wxWidgets 3.1.3 - Windows Build

Post by roadsterUK » Sat Jun 13, 2020 2:47 pm

Instructions for compiling under windows seem to be in flux at the moment and I noticed that the version of wxWidgets required for the next release is now 3.1.3 so I thought I would update. Following wiki instructions ( well partly at least ) I downloaded the "for audacity" version from github using the zip file. Unfortunately this doesn't actually work if you also use the most recent Visual Studio to build using the 2019/version 16 and try to build from within the VS graphic user interface. I'm sure the pruning of the source and library stuff that Audacity doesn't need has been done with good intentions but unfortunately even after you take all the projects that are not required out of the configuration there are still a few unresolved references to them in the base and core projects.

Instead I took the entire download from the main wxWidgets site then removed the unwanted projects leaving just the seven needed ones plus the custom project and this worked perfectly, albeit I have only tried compiling audacity 2.4.1 as released.

The required wx dlls ( hence projects ) are :-
core
base
adv
net
html
xml
qa

I've noted them here because the latest compile instructions no longer mention the required dlls. There may well be some reasons why more knowledgeable persons than me know this is a bad way to go about it but I thought it wouldn't hurt to say what worked and what didn't.

leeepm
Posts: 5
Joined: Fri Jun 12, 2020 12:32 pm
Operating System: Windows 10

Re: wxWidgets 3.1.3 - Windows Build

Post by leeepm » Mon Jun 15, 2020 2:15 pm

Hi,

I built 3.1.3 using Visual Studio 2017 professional using the solution file. I had no problems. However I cloned the git repo rather than downloading the zip. See my previous post for the commit ID I used. Was it only failing for Visual Studio 2019 for you?

roadsterUK
Posts: 185
Joined: Sat Apr 15, 2017 8:00 pm
Operating System: Windows 10

Re: wxWidgets 3.1.3 - Windows Build

Post by roadsterUK » Wed Jun 17, 2020 8:18 am

leeepm wrote:
Mon Jun 15, 2020 2:15 pm
Hi,

I built 3.1.3 using Visual Studio 2017 professional using the solution file. I had no problems. However I cloned the git repo rather than downloading the zip. See my previous post for the commit ID I used. Was it only failing for Visual Studio 2019 for you?
I only tried VS2019 community edition so once I got something that worked I went no further. I wonder if an active git environment downloads any extra required files on demand?

Apesbrain
Posts: 95
Joined: Sat Dec 04, 2010 4:58 pm
Operating System: Windows 10

Re: wxWidgets 3.1.3 - Windows Build

Post by Apesbrain » Sat Jul 11, 2020 5:01 pm

Glad I found this thread. Got wxWidgets built on the third try after cloning from git rather than using downloaded zip.

Why is there no longer an AUDACITY.SLN file??? Every time I try to compile with the Inno application, it gives me a new and different error to solve. Now I see I'm supposed to use CMake? This used to be easy and now I've wasted over an hour just trying to build the solution file and I'm still not there. What exactly are the configuration settings for CMake? All this for an ASIO build. Thanks.

steve
Site Admin
Posts: 81257
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: wxWidgets 3.1.3 - Windows Build

Post by steve » Sat Jul 11, 2020 5:05 pm

Apesbrain wrote:
Sat Jul 11, 2020 5:01 pm
Why is there no longer an AUDACITY.SLN file??? Every time I try to compile with the Inno application, it gives me a new and different error to solve. Now I see I'm supposed to use CMake? This used to be easy and now I've wasted over an hour just trying to build the solution file and I'm still not there. What exactly are the configuration settings for CMake?
Did you look at the build.txt included in the source code?https://github.com/audacity/audacity/bl ... /build.txt
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Apesbrain
Posts: 95
Joined: Sat Dec 04, 2010 4:58 pm
Operating System: Windows 10

Re: wxWidgets 3.1.3 - Windows Build

Post by Apesbrain » Sat Jul 11, 2020 5:24 pm

First, thanks for your reply and sorry for my frustrated tone. I've built for ASIO a dozen times before this, but can't quite get this new process. I am up to this step:

Code: Select all

78  2) Open the CMake GUI. 
79      Set the 'Where is the source code' location to where your copy of the git repo is. 
80      Set the 'Where to build the binaries' to where you want the results. 
81 
 
82     Click on configure. 
83     (notice where it found / did not find wxWidgets if it did not find wxwidgets check  
84     that you set WXWIN coreectly) 
My environment variable is set correctly. I don't see any reference to wxWidgets in the CMake Configuration:

Clipboard01.jpg
Clipboard01.jpg (120.15 KiB) Viewed 1314 times

Apesbrain
Posts: 95
Joined: Sat Dec 04, 2010 4:58 pm
Operating System: Windows 10

Re: wxWidgets 3.1.3 - Windows Build

Post by Apesbrain » Sat Jul 11, 2020 11:13 pm

Ok, got it to pretty much build (2 modules failed) but it's not including ASIO. In CMake, I added ASIOSDK_DIR and WXWIN path entries and configured platform to Win32. Any ideas how to get ASIO in there?

roadsterUK
Posts: 185
Joined: Sat Apr 15, 2017 8:00 pm
Operating System: Windows 10

Re: wxWidgets 3.1.3 - Windows Build

Post by roadsterUK » Sun Jul 12, 2020 8:50 am

Sorry to hear that the new methodology isn't quite working for you yet. Given that everyone working on it is an unpaid volunteer I will refrain from any criticism other than to quote the engineer's motto of " if it ain't broke don't fix it". I'll try the instructions out myself as soon as I can and see if there are any problems in my environment.

Apesbrain
Posts: 95
Joined: Sat Dec 04, 2010 4:58 pm
Operating System: Windows 10

Re: wxWidgets 3.1.3 - Windows Build

Post by Apesbrain » Sun Jul 12, 2020 12:13 pm

Thanks, I think the only thing I'm missing is how to tell CMake to include ASIO in the build solution. I have downloaded ASIO components from Steinberg and put them in my C:\RESOURCES\ASIOSDK2 directory according to previous instruction for compiling Audacity with ASIO. I have also set my ASIOSDK_DIR system environment variable.

There are some README files in the source, but the links back to Portaudio site for instruction on compiling with MSVC are broken. I have googled the topic, but for someone whose only previous experience with compiling is building this ASIO version of Audacity it is not comprehensible. Is it possible to go back to including the AUDACITY.SLN file with the source files? That worked every time.

Again, sorry for the attitude and I appreciate everyone's time and effort.

P.S. In the meantime, I can stick with Audacity 2.4.1 which compiled with ASIO fine using the old procedure.

micsthepick
Posts: 18
Joined: Fri Dec 21, 2018 1:41 am
Operating System: Windows 10

Re: wxWidgets 3.1.3 - Windows Build

Post by micsthepick » Sun Jul 12, 2020 11:48 pm

I've tried building Audacity 2.4.2 also. My process was: git clone audacity/audacity and audacity/wxwidgets (with --recurse-submodules). I've had partial success with MSVC2017. First, I opened wx_vc15, then compiled wxwidgets under RELEASE DLL, then ran CMAKE. CMAKE has no reference to ASIO, and reports GETTEXT_MSGFMT_EXECUTABLE-NOTFOUND, GETTEXT_MSGMERGE_EXECUTABLE-NOTFOUND, wxWidgets_wxrc_EXECUTABLE-NOTFOUND, but still generates a project which can be compiled, and Audacity.exe still launches, even though "mod-null" and "mod-nyq-bench" fail due to linker errors, and ASIO support is not present as expected.
So it appears that I've been able to replicate the efforts by Apesbrain

Post Reply