Which Windows SDK?

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
polksaladannie
Posts: 28
Joined: Mon Sep 03, 2012 6:37 pm
Operating System: Please select

Which Windows SDK?

Post by polksaladannie » Sun Oct 21, 2012 4:28 pm

Hi,

I'm completely new to compiling code, and I'm trying to build Audacity with ASIO following these instructions:
http://www.hometownband.org/Audacity/Co ... acity.html

I'm now at this part:
You will also need the Microsoft SDK (software development kit). Which version you need depends on your operating system. Look here:
Microsoft SDK Overview
to get the appropriate version for your system. Be forewarned, this is a lengthy process with numerous reboots!


Can anyone tell me which Windows SDK I should be downloading? It looks like there's 2008, 2010, and 2012. Given that the instructions say to use Microsoft VC++ 2008, I was thinking to use SDK 2008, but there's a note saying this doesn't support the Express version of VC++ 2008. Thoughts?

Matt

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

Re: Which Windows SDK?

Post by steve » Sun Oct 21, 2012 10:10 pm

I don't work on Windows, but if it helps the Audacity wiki instructions for building Audacity on Windows are here: http://wiki.audacityteam.org/wiki/Developing_On_Windows
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Edgar
Forum Crew
Posts: 2042
Joined: Thu Sep 03, 2009 9:13 pm
Operating System: Windows 10

Re: Which Windows SDK?

Post by Edgar » Mon Oct 22, 2012 4:15 pm

polksaladannie wrote: I'm now at this part:
You will also need the Microsoft SDK (software development kit). Which version you need depends on your operating system. Look here:
Microsoft SDK Overview
to get the appropriate version for your system. Be forewarned, this is a lengthy process with numerous reboots!


Can anyone tell me which Windows SDK I should be downloading? It looks like there's 2008, 2010, and 2012. Given that the instructions say to use Microsoft VC++ 2008, I was thinking to use SDK 2008, but there's a note saying this doesn't support the Express version of VC++ 2008.
I'm the author of the web page to which you are referring. Since I wrote that website the MSD site has changed quite a bit! It looks like they are trying hard to make accessing older tools difficult. Today I did not find any way to actually download the SDK for VC++ 2008 Express. I would suggest installing VC++ 2010 Express and following the messy steps required to get Audacity to compile with it; they can be found in another topic in this forum.

I will spend some more time later today and see if I can track down the SDK for VC++ 2008 Express.

Edgar
Forum Crew
Posts: 2042
Joined: Thu Sep 03, 2009 9:13 pm
Operating System: Windows 10

Re: Which Windows SDK?

Post by Edgar » Mon Oct 22, 2012 4:51 pm

After a bit of searching I find you may still get the old SDK:
http://www.microsoft.com/en-us/download ... x?id=24826
but they strongly suggest otherwise! The service pack 1 for this SDK adds support for VC++ 2008 Express (which answers your original question).

Hopefully the Audacity Developers will be dragged (kicking and screaming) into the modern age and adopt VC++ 2010 Express (2012 is still too buggy) <grin>!

polksaladannie
Posts: 28
Joined: Mon Sep 03, 2012 6:37 pm
Operating System: Please select

Re: Which Windows SDK?

Post by polksaladannie » Mon Oct 22, 2012 11:50 pm

Thanks Edgar!

I had managed to find the correct SDK yesterday. So far so good (I think!). I'm about to begin Step 5 under the Audacity heading, which is where you say "Get & compile the Audacity SVN HEAD." I may be back quite soon with more questions...

Matt

polksaladannie
Posts: 28
Joined: Mon Sep 03, 2012 6:37 pm
Operating System: Please select

Re: Which Windows SDK?

Post by polksaladannie » Tue Oct 23, 2012 12:38 am

Ok, just ran into a bit of a hiccup.

I'm at this stage: 6b) Open the location of the folder in which you just checked out Audacity (not the folder into which you actually checked out Audacity); create a new folder and call it "wxLibs" or anything else which suits you (this will be your wxWidgets working libraries); open that new folder, and within it create a new folder "Unicode Release" (it must be exactly that). Now open your wxWidgets DLL library ( C:wxWidgets-2.8.12libvc_dll ) and copy the following five files into that newly created wxLibsUnicode Release (or whatever you called it) folder:

And I can't find these two files to copy into the Unicode Release folder:

wxbase28u_vc_custom.dll
wxmsw28u_adv_vc_custom.dll

Tell me there's an easy fix for this...

Matt

polksaladannie
Posts: 28
Joined: Mon Sep 03, 2012 6:37 pm
Operating System: Please select

Re: Which Windows SDK?

Post by polksaladannie » Tue Oct 23, 2012 4:28 am

Ok, so I thought I was close, but I keep getting an error in my attempt to build Audacity. Here's the warnings and the error from the log. And Edgar, I saw the post where you recommended Select All and Clean and also deleting the filedialog.lib file, but it didn't seem to make any difference, though I'm sure I'm doing/did something wrong...

Code: Select all

 
[b]c:usersmattdocumentsnew folderlib-srcffmpeglibavutilcommon.h(155) : warning C4244: 'return' : conversion from 'int64_t' to 'int32_t', possible loss of data
ExportFFmpeg.cpp
c:usersmattdocumentsnew folderlib-srcffmpeglibavutilcommon.h(155) : warning C4244: 'return' : conversion from 'int64_t' to 'int32_t', possible loss of data[/b]
ExportCL.cpp
Export.cpp
VSTEffect.cpp
Wahwah.cpp
Compiling...
TwoPassSimpleMono.cpp
TruncSilence.cpp
ToneGen.cpp
TimeWarper.cpp
TimeScale.cpp
StereoToMono.cpp
SoundTouchEffect.cpp
SimplePairedTwoTrack.cpp
SimpleMono.cpp
Silence.cpp
ScoreAlignDialog.cpp
SBSMSEffect.cpp
Reverse.cpp
Repeat.cpp
Repair.cpp
Phaser.cpp
Paulstretch.cpp
Normalize.cpp
NoiseRemoval.cpp
Noise.cpp
Compiling...
LoadEffects.cpp
Leveller.cpp
Invert.cpp
Generator.cpp
FindClipping.cpp
Fade.cpp
Equalization.cpp
EffectManager.cpp
EffectCategory.cpp
Effect.cpp
Echo.cpp
DtmfGen.cpp
Contrast.cpp
Compressor.cpp
ClickRemoval.cpp
ChangeTempo.cpp
ChangeSpeed.cpp
ChangePitch.cpp
BassBoost.cpp
AutoDuck.cpp
Compiling...
Amplify.cpp
WrappedType.cpp
WaveTrack.cpp
WaveClip.cpp
VoiceKey.cpp
UploadDialog.cpp
UndoManager.cpp
TrackPanelAx.cpp
TrackPanel.cpp
TrackArtist.cpp
Track.cpp
TimeTrack.cpp
TimerRecordDialog.cpp
TimeDialog.cpp
Theme.cpp
Tags.cpp
SplashDialog.cpp
Spectrum.cpp
Snap.cpp
ShuttlePrefs.cpp
Compiling...
ShuttleGui.cpp
Shuttle.cpp
Sequence.cpp
Screenshot.cpp
SampleFormat.cpp
RingBuffer.cpp
Resample.cpp
RealFFTf.cpp
Project.cpp
Profiler.cpp
Printing.cpp
Prefs.cpp
PluginManager.cpp
PlatformCompatibility.cpp
PitchName.cpp
NoteTrack.cpp
NonGuiThread.cpp
MixerBoard.cpp
Mix.cpp
Menus.cpp
Compiling...
Matrix.cpp
LyricsWindow.cpp
Lyrics.cpp
LoadModules.cpp
Legacy.cpp
Languages.cpp
LangChoice.cpp
LabelTrack.cpp
LabelDialog.cpp
InterpolateAudio.cpp
Internat.cpp
ImageManipulation.cpp
HistoryWindow.cpp
HelpText.cpp
FreqWindow.cpp
FileNames.cpp
FileIO.cpp
FileFormats.cpp
FFT.cpp
FFmpeg.cpp
[b]c:usersmattdocumentsnew folderlib-srcffmpeglibavutilcommon.h(155) : warning C4244: 'return' : conversion from 'int64_t' to 'int32_t', possible loss of data[/b]
Compiling...
Envelope.cpp
Dither.cpp
DirManager.cpp
DeviceManager.cpp
Dependencies.cpp
CaptureEvents.cpp
BlockFile.cpp
Benchmark.cpp
BatchProcessDialog.cpp
BatchCommands.cpp
BatchCommandDialog.cpp
AutoRecovery.cpp
AudioIO.cpp
AudacityHeaders.cpp
AudacityApp.cpp
AColor.cpp
AboutDialog.cpp
Compiling...
SoundActivatedRecord.cpp
Compiling resources...
Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
Copyright (C) Microsoft Corporation.  All rights reserved.
Linking...
[b]LINK : fatal error LNK1181: cannot open input file 'filedialog.lib'
 Results      Build log was saved at "file://c:UsersMattDocumentsNew FolderwinProjectsAudacityUnicode ReleaseBuildLog.htm"[/b]
Audacity - 1 error(s), 3 warning(s)
Last edited by polksaladannie on Fri Apr 24, 2015 4:06 pm, edited 2 times in total.
Reason: embedded stuff on code tags for readability

Edgar
Forum Crew
Posts: 2042
Joined: Thu Sep 03, 2009 9:13 pm
Operating System: Windows 10

Re: Which Windows SDK?

Post by Edgar » Tue Oct 23, 2012 5:17 pm

polksaladannie wrote:I keep getting an error in my attempt to build Audacity.

Code: Select all

 
c:usersmattdocumentsnew folderlib-srcffmpeglibavutilcommon.h(155) : warning C4244: 'return' : conversion from 'int64_t' to 'int32_t', possible loss of data
[(warning repeated 3 times)...-Ed]
Linking...
LINK : fatal error LNK1181: cannot open input file 'filedialog.lib'
[...-Ed]
Audacity - 1 error(s), 3 warning(s)
First, the warning should be ignored--it is an intentional truncation of data.

As to the link error, for some reason filedialog.lib is not being found; it should be in "winUnicode Release" (or: "winRelease", "winDebug", "winUnicode Debug" depending on the configuration you are building. BTW, which are you building?) . I'm not sure why this is happening but the compile instructions are being worked on the last week or so and things may be broken. I will check out a new, clean SVN in a moment and see what happens...

Edgar
Forum Crew
Posts: 2042
Joined: Thu Sep 03, 2009 9:13 pm
Operating System: Windows 10

Re: Which Windows SDK?

Post by Edgar » Tue Oct 23, 2012 5:50 pm

Is there any chance you are not compiling the whole "solution" (and only building the Audacity "project")? This error is what I would expect to occur in that case. The simplest test is to start VC++, choose the Audacity "Unicode Debug" configuration then (from the toolbar's green triangle button) run Audacity in debug mode. This will make sure everything is compiled.

...I just finished DLing & compiling the current SVN HEAD--12013--all worked fine for me, no problem with filedialog.lib.

Keep me posted here--I have subscribed to this topic and will be around most of the day and all day tomorrow.

polksaladannie
Posts: 28
Joined: Mon Sep 03, 2012 6:37 pm
Operating System: Please select

Re: Which Windows SDK?

Post by polksaladannie » Wed Oct 24, 2012 3:24 am

I'm going to start over...

Post Reply