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
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.
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
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:
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”.
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)
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.