I just updated my source tree to Juce 7.0.5. However, when I try to build Projucer with VS2019, I get the following error:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.24.28314\include\memory(1764,1): error C2027: use of undefined type 'juce::AndroidDocument::Pimpl' (compiling source file ..\..\Source\ProjectSaving\jucer_ProjectSaver.cpp)
The same error happens on most of the source files in the Projucer solution. I’m building this directly after pulling from github, with no changes. Is the build broken or have I done something wrong?
I ended up moving to VS2022 and Projucer now builds correctly.
Are you using the VS2019 or VS2022 exporter?

I was using the VS2022 as my IDE but the VS2019 exporter for the longest time, and had to always “Retarget Solution” to build. I got a different error, but the cause might be the same.
The error I got:
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(456,5): error MSB8020: The build tools for Visual Studio 2019 (Platform Toolset = 'v142') cannot be found. To build using the v142 build tools, please install Visual Studio 2019 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".
1>Done building project "SMPLComp_SharedCode.vcxproj" -- FAILED.
2>------ Build started: Project: SMPLComp_StandalonePlugin, Configuration: Debug x64 ------
2>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(456,5): error MSB8020: The build tools for Visual Studio 2019 (Platform Toolset = 'v142') cannot be found. To build using the v142 build tools, please install Visual Studio 2019 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".
2>Done building project "SMPLComp_StandalonePlugin.vcxproj" -- FAILED.
I created a new exported for VS2022 and it work’s correctly now.
1 Like