After setting correct wxwidgets and use correct setup.h file, I tried to build Audacity with VS2008. I meeting a linking error with portaudio.
The error is as below
Build Log
Build started: Project: Audacity, Configuration: Debug|Win32
Command Lines
Creating temporary file "c:SourceCodeAudacitywinProjectsAudacityDebugRSP00000180601816.rsp" with contents
[
/OUT:"C:SourceCodeAudacitywinDebugAudacity.exe" /INCREMENTAL /LIBPATH:"C:SourceCodeAudacitywinDebug" /LIBPATH:"C:wxWidgets-2.8.12libvc_dll" /MANIFEST /MANIFESTFILE:"DebugAudacity.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /NODEFAULTLIB:"dsound.lib" /DEBUG /PDB:"C:SourceCodeAudacitywinDebugAudacity.pdb" /SUBSYSTEM:WINDOWS /STACK:8388608 /DYNAMICBASE:NO /MACHINE:X86 expat.lib filedialog.lib libsndfile.lib portaudio-v19.lib wxbase28ud.lib wxbase28ud_net.lib wxmsw28ud_adv.lib wxmsw28ud_core.lib wxmsw28ud_html.lib wxpngd.lib wxzlibd.lib wxjpegd.lib wxtiffd.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib oleacc.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
".DebugAboutDialog.obj"
".DebugAColor.obj"
".DebugAudacityApp.obj"
".DebugAudacityHeaders.obj"
".DebugAudacityLogger.obj"
".DebugAudioIO.obj"
".DebugAutoRecovery.obj"
".DebugBatchCommandDialog.obj"
".DebugBatchCommands.obj"
".DebugBatchProcessDialog.obj"
".DebugBenchmark.obj"
".DebugBlockFile.obj"
".DebugCaptureEvents.obj"
".DebugDependencies.obj"
".DebugDeviceManager.obj"
".DebugDirManager.obj"
".DebugDither.obj"
".DebugEnvelope.obj"
".DebugFFmpeg.obj"
".DebugFFT.obj"
".DebugFileFormats.obj"
".DebugFileIO.obj"
".DebugFileNames.obj"
".DebugFreqWindow.obj"
".DebugHelpText.obj"
".DebugHistoryWindow.obj"
".DebugImageManipulation.obj"
".DebugInternat.obj"
".DebugInterpolateAudio.obj"
".DebugLabelDialog.obj"
".DebugLabelTrack.obj"
".DebugLangChoice.obj"
".DebugLanguages.obj"
".DebugLegacy.obj"
".DebugLoadModules.obj"
".DebugLyrics.obj"
".DebugLyricsWindow.obj"
".DebugMatrix.obj"
".DebugMenus.obj"
".DebugMix.obj"
".DebugMixerBoard.obj"
".DebugNonGuiThread.obj"
".DebugNoteTrack.obj"
".DebugPitchName.obj"
".DebugPlatformCompatibility.obj"
".DebugPluginManager.obj"
".DebugPrefs.obj"
".DebugPrinting.obj"
".DebugProfiler.obj"
".DebugProject.obj"
".DebugRealFFTf.obj"
".DebugRealFFTf48x.obj"
".DebugResample.obj"
".DebugRingBuffer.obj"
".DebugSampleFormat.obj"
".DebugScreenshot.obj"
".DebugSequence.obj"
".DebugShuttle.obj"
".DebugShuttleGui.obj"
".DebugShuttlePrefs.obj"
".DebugSnap.obj"
".DebugSoundActivatedRecord1.obj"
".DebugSpectrum.obj"
".DebugSplashDialog.obj"
".DebugSseMathFuncs.obj"
".DebugTags.obj"
".DebugTheme.obj"
".DebugTimeDialog.obj"
".DebugTimerRecordDialog.obj"
".DebugTimeTrack.obj"
".DebugTrack.obj"
".DebugTrackArtist.obj"
".DebugTrackPanel.obj"
".DebugTrackPanelAx.obj"
".DebugUndoManager.obj"
".DebugVoiceKey.obj"
".DebugWaveClip.obj"
".DebugWaveTrack.obj"
".DebugWrappedType.obj"
".DebugAmplify.obj"
".DebugAutoDuck.obj"
".DebugBassTreble.obj"
".DebugBiquad.obj"
".DebugChangePitch.obj"
".DebugChangeSpeed.obj"
".DebugChangeTempo.obj"
".DebugClickRemoval.obj"
".DebugCompressor.obj"
".DebugContrast.obj"
".DebugDtmfGen.obj"
".DebugEcho.obj"
".DebugEffect.obj"
".DebugEffectCategory.obj"
".DebugEffectManager.obj"
".DebugEqualization.obj"
".DebugEqualization48x.obj"
".DebugFade.obj"
".DebugFindClipping.obj"
".DebugGenerator.obj"
".DebugInvert.obj"
".DebugLeveller.obj"
".DebugLoadEffects.obj"
".DebugNoise.obj"
".DebugNoiseRemoval.obj"
".DebugNormalize.obj"
".DebugPaulstretch.obj"
".DebugPhaser.obj"
".DebugRepair.obj"
".DebugRepeat.obj"
".DebugReverb.obj"
".DebugReverse.obj"
".DebugSBSMSEffect.obj"
".DebugScienFilter.obj"
".DebugScoreAlignDialog.obj"
".DebugSilence.obj"
".DebugSimpleMono.obj"
".DebugSoundTouchEffect.obj"
".DebugStereoToMono.obj"
".DebugTimeScale.obj"
".DebugTimeWarper.obj"
".DebugToneGen.obj"
".DebugTruncSilence.obj"
".DebugTwoPassSimpleMono.obj"
".DebugWahwah.obj"
".DebugVSTEffect.obj"
".DebugExport.obj"
".DebugExportCL.obj"
".DebugExportFFmpeg.obj"
".DebugExportFFmpegDialogs.obj"
".DebugExportFLAC.obj"
".DebugExportMP2.obj"
".DebugExportMP3.obj"
".DebugExportMultiple.obj"
".DebugExportOGG.obj"
".DebugExportPCM.obj"
".DebugImport.obj"
".DebugImportFFmpeg.obj"
".DebugImportFLAC.obj"
".DebugImportLOF.obj"
".DebugImportMIDI.obj"
".DebugImportMP3.obj"
".DebugImportOGG.obj"
".DebugImportPCM.obj"
".DebugImportRaw.obj"
".DebugRawAudioGuess.obj"
".DebugBatchPrefs.obj"
".DebugDevicePrefs.obj"
".DebugDirectoriesPrefs.obj"
".DebugEffectsPrefs.obj"
".DebugExtImportPrefs.obj"
".DebugGUIPrefs.obj"
".DebugImportExportPrefs.obj"
".DebugKeyConfigPrefs.obj"
".DebugLibraryPrefs.obj"
".DebugMidiIOPrefs.obj"
".DebugModulePrefs.obj"
".DebugMousePrefs.obj"
".DebugPlaybackPrefs.obj"
".DebugPrefsDialog.obj"
".DebugProjectsPrefs.obj"
".DebugQualityPrefs.obj"
".DebugRecordingPrefs.obj"
".DebugSpectrumPrefs.obj"
".DebugThemePrefs.obj"
".DebugTracksPrefs.obj"
".DebugWarningsPrefs.obj"
".DebugAButton.obj"
".DebugASlider.obj"
".DebugAttachableScrollBar.obj"
".DebugErrorDialog.obj"
".DebugExpandingToolBar.obj"
".DebugFileHistory.obj"
".DebugGrabber.obj"
".DebugGrid.obj"
".DebugHtmlWindow.obj"
".DebugImageRoll.obj"
".DebugKeyView.obj"
".DebugLinkingHtmlWindow.obj"
".DebugMeter.obj"
".DebugMultiDialog.obj"
".Debugnumformatter.obj"
".DebugProgressDialog.obj"
".DebugRuler.obj"
".DebugTimeTextCtrl.obj"
".Debugvalnum.obj"
".DebugWarning.obj"
".Debugaudacity.res"
".DebugXMLFileReader.obj"
".DebugXMLTagHandler.obj"
".DebugXMLWriter.obj"
".DebugLoadNyquist.obj"
".DebugNyquist.obj"
".DebugAppCommandEvent.obj"
".DebugBatchEvalCommand.obj"
".DebugCommand.obj"
".DebugCommandBuilder.obj"
".DebugCommandDirectory.obj"
".DebugCommandHandler.obj"
".DebugCommandManager.obj"
".DebugCommandSignature.obj"
".DebugCommandType.obj"
".DebugCompareAudioCommand.obj"
".DebugExecMenuCommand.obj"
".DebugGetAllMenuCommands.obj"
".DebugGetProjectInfoCommand.obj"
".DebugGetTrackInfoCommand.obj"
".DebugHelpCommand.obj"
".DebugImportExportCommands.obj"
".DebugKeyboard.obj"
".DebugMessageCommand.obj"
".DebugOpenSaveCommands.obj"
".DebugPreferenceCommands.obj"
".DebugResponseQueue.obj"
".DebugScreenshotCommand.obj"
".DebugScriptCommandRelay.obj"
".DebugSelectCommand.obj"
".DebugSetProjectInfoCommand.obj"
".DebugSetTrackInfoCommand.obj"
".DebugLegacyAliasBlockFile.obj"
".DebugLegacyBlockFile.obj"
".DebugODDecodeBlockFile.obj"
".DebugODPCMAliasBlockFile.obj"
".DebugPCMAliasBlockFile.obj"
".DebugSilentBlockFile.obj"
".DebugSimpleBlockFile.obj"
".DebugLadspaEffect.obj"
".DebugLoadLadspa.obj"
".DebugControlToolBar.obj"
".DebugDeviceToolBar.obj"
".DebugEditToolBar.obj"
".DebugMeterToolBar.obj"
".DebugMixerToolBar.obj"
".DebugSelectionBar.obj"
".DebugToolBar.obj"
".DebugToolDock.obj"
".DebugToolManager.obj"
".DebugToolsToolBar.obj"
".DebugTranscriptionToolBar.obj"
".DebugLoadVamp.obj"
".DebugVampEffect.obj"
".DebugODComputeSummaryTask.obj"
".DebugODDecodeFFmpegTask.obj"
".DebugODDecodeFlacTask.obj"
".DebugODDecodeTask.obj"
".DebugODManager.obj"
".DebugODTask.obj"
".DebugODTaskThread.obj"
".DebugODWaveTrackTaskQueue.obj"
".DebugLoadLV2.obj"
".DebugLV2Effect.obj"
".DebugLV2PortGroup.obj"
".DebugAudacity.exe.embed.manifest.res"
]
Creating command line "link.exe @c:SourceCodeAudacitywinProjectsAudacityDebugRSP00000180601816.rsp /NOLOGO /ERRORREPORT:PROMPT"
Output Window
Linking...
Creating library C:SourceCodeAudacitywinDebugAudacity.lib and object C:SourceCodeAudacitywinDebugAudacity.exp
portaudio-v19.lib(pa_win_hostapis.obj) : error LNK2001: unresolved external symbol _PaWinWdm_Initialize
C:SourceCodeAudacitywinDebugAudacity.exe : fatal error LNK1120: 1 unresolved externals
Results
Build log was saved at "file://c:SourceCodeAudacitywinProjectsAudacityDebugBuildLog.htm"
Audacity - 2 error(s), 0 warning(s)
Does anybody help me about this?