Visual Studio 2012 Post-Build Errors

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
Post Reply
davidfrogley
Posts: 1
Joined: Tue Mar 04, 2014 3:07 am
Operating System: Please select

Visual Studio 2012 Post-Build Errors

Post by davidfrogley » Tue Mar 04, 2014 3:15 am

Building latest version of Audacity in Visual Studio 2012 with ASIO SDK (latest) and wxWidgets 2.8.12. Got soruces from TortoiseSVN sync. Getting the following post-build errors:

Error 108 error MSB3721: The command "copy /Y "......plug-insanalyze.ny" ....ReleasePlug-insanalyze.ny" exited with code 1. C:UsersDavidDesktopaudacity-read-onlywinny.targets 45
Error 109 error MSB3721: The command "copy /Y "......plug-insanalyze.ny" ....DebugPlug-insanalyze.ny" exited with code 1. C:UsersDavidDesktopaudacity-read-onlywinny.targets 45

Upon inspection, I noticed that the file "analyze.ny" doesn't exist. Is the build process supposed to create this file? Or is it supposed to be included in the sources?

Thanks,

Dave

schmide
Posts: 11
Joined: Sun Oct 06, 2013 1:01 am
Operating System: Please select

Re: Visual Studio 2012 Post-Build Errors

Post by schmide » Tue Mar 04, 2014 7:20 am

I've done a fair amount of work getting vc2012 wxWidgets 3.0 working.

You can get it to build and run by removing analyze.ny from the vcxproj file and adding OpenSaveCommands.cpp.h to the src/commands subproject.

However at least for me it will not load or save an audio file.

I have and I believe Edgar has gotten vc2012 to work almost fully with wxWidgets3.0. For me there are some missing texts so it isn't perfect. I remember seeing that Edgar is even 64bit?

Talking with the higher ups, VC2012 and wx3.0 will be scheduled for the release after the next release. So prob a few months from now.

Is there a reason you need to use vc2012? Because your best bet is to use vc2008 with wx2.8.

Andrew

Edgar
Forum Crew
Posts: 1520
Joined: Thu Sep 03, 2009 9:13 pm
Operating System: Windows 7
Contact:

Re: Visual Studio 2012 Post-Build Errors

Post by Edgar » Tue Mar 04, 2014 4:57 pm

davidfrogley wrote: Error 108 error MSB3721: The command "copy /Y "......plug-insanalyze.ny" ....ReleasePlug-insanalyze.ny" exited with code 1. C:UsersDavidDesktopaudacity-read-onlywinny.targets 45
analyze.ny is in the process of being removed from the source. It is a "do-nothing" example Nyquist plug-in. For some reason your project still has a reference to the file – it should not have this reference. The simplest solution would be to get an old copy of analyze.ny and place it in the plug-ins folder (this folder is in the root folder along with src/, tests/ etc.). Alternately, you could edit both the Release and Debug Visual Studio Projects. Another alternative would be to make a copy of any of the other Nyquist plug-ins and rename it.

schmide
Posts: 11
Joined: Sun Oct 06, 2013 1:01 am
Operating System: Please select

Re: Visual Studio 2012 Post-Build Errors

Post by schmide » Tue Mar 04, 2014 10:12 pm

This should get it up and running.

Basically removes analyze.ny and adds SseMathFuncs.cpp.h and OpenSaveCommands.cpp.h (Steve Parry's Jan 13 patch).

Andrew
Attachments
Audacityvcxproj.7z
Attached file contains files Audacity.vcxproj and Audacity.vcxproj.filters files go in win\Projects\Audacity
(9.8 KiB) Downloaded 107 times

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

Re: Visual Studio 2012 Post-Build Errors

Post by steve » Wed Mar 05, 2014 3:42 am

Getting round the "analyze.ny" issue should be simple if you use VS2008:
View menu > "Solution Explorer..." > plug-ins folder, and just delete "analyze.ny".

As Edgar wrote, "analyze.ny" is a redundant file that is being removed. It was originally a demonstration Nyquist plug-in that does nothing.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

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

Re: Visual Studio 2012 Post-Build Errors

Post by Gale Andrews » Sat Mar 08, 2014 10:27 pm

Analyze.ny has now been removed from the two vcxproj files: http://code.google.com/p/audacity/source/detail?r=13067 .

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

Post Reply