Ticket #31 (closed defect: fixed)
Cannot open include file afxres.h
Reported by: | michelpons | Owned by: | jasper |
---|---|---|---|
Priority: | major | Milestone: | 1.1 extension maintenance |
Component: | Build script | Version: | 2.1.2 |
Keywords: | Cc: |
Description
Running the python script to build the tlb/pia distribution leads to failures:
1-0-0.rc(10): fatal error RC1015: cannot open include file 'afxres.h'. [C:\Users\CTO\Documents\TLB-PIA\CAPE-OPEN IDL\1-
0-0\1-0-0.vcxproj]
Done Building Project "C:\Users\CTO\Documents\TLB-PIA\CAPE-OPEN IDL\1-0-0\1-0-0.vcxproj" (Rebuild target(s)) -- FAILED.
1-1-0.rc(10): fatal error RC1015: cannot open include file 'afxres.h'. [C:\Users\CTO\Documents\TLB-PIA\CAPE-OPEN IDL\1-
1-0\1-1-0.vcxproj]
Change History
comment:2 Changed 3 years ago by michelpons
The documentation developed to explain how to create the TLB/PIA distribution states "Download Visual Studio Community 2019 from the Microsoft website and install it with the C# workload.". I don't mind having to install additional features of Visual Studio Community 2019 provided this does not impact other builds. Should specific features be necessary for building the CAPE-OPEN TLB/PIA distribution, this should be documented.
comment:3 Changed 3 years ago by michelpons
Individual component MFC/AFX is not listed as such within the individual components that can be installed in the Visual Studio Community 2019 edition under version 16.7.7 (currently installed). Searching for AFX does not lead to any available individual component. Searching for MFC lists two dozens or so components proposed. Is there a specific one to be picked?
This can be resolved either by installing MFC/AFX (requires firing the visual studio installer and selection of the MFC/AFX component), or I can change the .rc files not to depend on the afxres header file, but after that Visual Studio does not like editing it - it needs to be edited by hand.
Let me know which of these options you prefer.