Page 2 of 2

Re: Can not build audacity 2.0.3 with wxWidgets 2.8.12

Posted: Mon Mar 18, 2013 1:38 am
by agrbalan
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é

Re: Can not build audacity 2.0.3 with wxWidgets 2.8.12

Posted: Mon Mar 18, 2013 4:15 am
by agrbalan
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é

Re: Can not build audacity 2.0.3 with wxWidgets 2.8.12

Posted: Tue Mar 19, 2013 8:20 am
by Gale Andrews
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