Vcpkg: Issue with atlmfc:x64-windows

Created on 10 Sep 2018  路  4Comments  路  Source: microsoft/vcpkg

I can't install vtk[qt] because of the following error:

Starting package 1/31: atlmfc:x64-windows
Building package atlmfc[core]:x64-windows...
CMake Error at ports/atlmfc/portfile.cmake:7 (message):
  Unable to locate 'afxres.h'.  Ensure you have installed the ATL/MFC
  component of Visual Studio.
Call Stack (most recent call first):
  scripts/ports.cmake:71 (include)


Error: Building package atlmfc:x64-windows failed with: BUILD_FAILED

Package: atlmfc:x64-windows
Vcpkg version: 0.0.113-nohash

Most helpful comment

To do so, start the Visual Studio Installer, under the "More" dropdown, click "Modify" and make sure the following boxes are checked:

atl-mfc-installer

All 4 comments

You need to add atl/mfc to your Visual Studio.

To do so, start the Visual Studio Installer, under the "More" dropdown, click "Modify" and make sure the following boxes are checked:

atl-mfc-installer

@Pideeeh Please close this feedback if you resolved your issue with above helps. Thank you!

Installing ATL/MFC is quite confusing. Here's a config that worked for me:

image

For some reason, installing just v14.22 ATL & MFC didn't work (I'd get the "Ensure you have installed the ATL/MFC" error). I needed to select "C++ ATL for latest v142 build tools" and "C++ MFC for latest v142 build tools". The installer seemed to download nothing, but now things work.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

F0I0l0I0P picture F0I0l0I0P  路  3Comments

madkoala picture madkoala  路  3Comments

ghost picture ghost  路  3Comments

tzbo picture tzbo  路  3Comments

cjvaijo picture cjvaijo  路  3Comments