Talk:Developing On Windows

Gale 24May08 19:19 UTC: James, Thanks for correcting the mistake about what version of wxWidgets to build. Are you sure though that restarting MSVC is enough to pick up changed WXWIN environment variables. It does not work for me. If on XP I change the WXWIN from 2.8.7 to a non-existent path, restart MSVC and build Audacity, it still builds with 2.8.7.
 * James 15:36, 24 May 2008 (PDT): It does work for me. I've just tested precisely as you suggested.  Changing it to fail, and then changing it back to work.  Behaved as I'd want it to.  I'm on XP Pro, SP2.  I have WXWIN in StartMenu->MyComputer->Properties->Advanced->EnvironmentVariables->UserVariablesForClient.  In case this was the difference, I also tried it for WXWIN in StartMenu->MyComputer->Properties->Advanced->EnvironmentVariables->SystemVariables instead, and that works too.  Puzzled why it doesn't work for you.


 * Gale 25May08 19:23 UTC: Looks as if restarting the IDE should be enough on Win2000 and later from the research I have done, it works on my secondary XP box (and resetting the path for the Audacity dll's works at once even on my main XP box). Please verify my hint about winable.h error. I got this error building Widgets 2.8.7 on the other XP box although it has the identical Windows Server 2003 R2 Platform SDK and winable.h is in there (another environment variable problem)? Judging by  it looks as if this error would occur building on Vista (?), but I don't seem to have any problems running Audacity with Widgets built with winable.h disabled.


 * Gale 26May08 18:50 UTC: Leland confirms the winable.h error would arise from using a newer platform SDK, though I'm still not quite sure why this error is in the 2003 R2 platform SDK that I downloaded specially to the other machine to see if it corrected the error. Maybe on the main machine I never installed the SDK explicitly as it came with the ISO containing the full Visual Studio, whereas the older machine already had the SDK before installing Visual Studio? Whatever, Leland confirms we can just disable winable.h when building wxWidegts. Thanks.

wxWidgets version, unicode/ANSI ?
The Wiki says: If you want to work with cutting edge code in Audacity, use wxWidgets 2.8.7.

If you want to work with the latest Audacity code, make sure that amongst the versions of wxWidgets that you compile is the DLL debug (non-unicode) version. "

But Audacity 1.3.7 (Unicode)"Build Information" says that it uses: wxWidgets 2.8.9 (Unicode)

Gale 06 May 09: Sorry the page had got out-of-date and it isn't a priority to update it given it's to some extent a duplication of win/compile.txt in the source code (which is correct). 2.8.9 is correct. Although it has not been extensively tested I think some of us are building with the current 2.8.10 now. I didn't put the stress on non-Unicode and I'm not sure exactly why Debug is preferred to Unicode Debug, though often it is. Maybe James will clarify. For Release purposes (for the general user), a Unicode capable operating system would be provided with a Unicode build.