Can not build audacity 2.0.3 with wxWidgets 2.8.12

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
agrbalan
Posts: 18
Joined: Wed Mar 13, 2013 1:43 pm
Operating System: Please select

Re: Can not build audacity 2.0.3 with wxWidgets 2.8.12

Post by agrbalan » Mon Mar 18, 2013 1:38 am

Hi Gale,

I hadn't seen before the link you mentioned ( http://audacity.238276.n2.nabble.com/Ti ... l#a7557180 )

I chose the following solution in order to eliminate the MAX_PATH error:

***** Modify Audacity.h

#ifdef __WXMSW__
#include "configwin.h"
#undef PLATFORM_MAX_PATH
#define PLATFORM_MAX_PATH 260 //-------------- only this line has been changed
#endif

I have no other problems compiling Audacity with ASIO now.

I have seen other people with the MAX_PATH error. Maybe it is a good idea to incorporate one of the solutions to the SVN HEAD version.

Audacity is a great software! Thanks for all developers!

Cheers
André

agrbalan
Posts: 18
Joined: Wed Mar 13, 2013 1:43 pm
Operating System: Please select

Re: Can not build audacity 2.0.3 with wxWidgets 2.8.12

Post by agrbalan » Mon Mar 18, 2013 4:15 am

I would like to add another important observation: When compiling wxWidgets I had to set "wxUSE_ODBC" to 1 in C:wxWidgets-2.8.12includewxmswsetup.h. Then I compile the whole wxWidgets solution in DLL Unicode Release.

Otherwise, I would get errors with the Yield marcro, such as "error C2039: 'Yield' : is not a member of 'wxApp' " while trying to build Audacity

Cheers
André

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Can not build audacity 2.0.3 with wxWidgets 2.8.12

Post by Gale Andrews » Tue Mar 19, 2013 8:20 am

agrbalan wrote:I would like to add another important observation: When compiling wxWidgets I had to set "wxUSE_ODBC" to 1 in C:wxWidgets-2.8.12includewxmswsetup.h. Then I compile the whole wxWidgets solution in DLL Unicode Release.

Otherwise, I would get errors with the Yield marcro, such as "error C2039: 'Yield' : is not a member of 'wxApp' " while trying to build Audacity
Everyone on Audacity Team builds with "wxUSE_ODBC" set to 1, because to enable extra accessibility we replace "wxWidgets-2.8.12includewxmswsetup.h" with the "setup.h" in "audacitywinwxWidgets_additions" which sets "wxUSE_ODBC" to 1. This is as per wincompile.txt ( http://audacity.googlecode.com/svn/auda ... ompile.txt ) .

Did you compile the whole widgets build or only compile the five Widgets solutions recommended in wincompile.txt (namely adv, base, core, html and net)?


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Post Reply