This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2011年03月18日 18:28 by carljm, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| wininst-no-afxres.h.patch | dbn, 2013年09月10日 13:38 | Workaround needed afxres.h for bdist_wininst | ||
| Messages (7) | |||
|---|---|---|---|
| msg131351 - (view) | Author: Carl Meyer (carljm) * | Date: 2011年03月18日 18:28 | |
By opening up pcbuild.sln in VS2008 Express, I was able to successfully build python and pythonw, but when I tried to build bdist_wininst it failed with "Fatal Error RC1015: cannot open include file afxres.h" Googling turned up a number of comments about how this file is part of MFC, which is really not supposed to be used with VS2008. The recommended "fix" that seemed to work for most people online was to replace "afxres.h" with "windows.h" in the rc file. I did this in PC/bdist_wininst/install.rc, and then it failed with a different error about a missing IDC_STATIC token. I have very little experience with Windows, so it's entirely possible I'm just doing something wrong, but I was asked in #python-dev to file a bug here. |
|||
| msg131367 - (view) | Author: Lorenz Aebi (DaMutz) | Date: 2011年03月18日 22:47 | |
replace the "afxres.h" by the following lines and then it builds: #include <windows.h> #ifndef IDC_STATIC #define IDC_STATIC (-1) #endif but the problem is, that the 'install.rc' file is generated. Unfortunately I do not know how to solve the root cause. |
|||
| msg197439 - (view) | Author: Dan Nicholson (dbn) | Date: 2013年09月10日 13:38 | |
Like the previous users, I've only got VS Express, so I can't tell exactly what happens when you have VS Pro and it generates the install.rc file. However, I might as well post this fuller patch, which I think would do the right thing since it also fixes the part where the regeneration of the '#include "afxres.h"' would happen. I've used this in the installer for both 3.3 and 2.7 and not seen any adverse effects. |
|||
| msg222662 - (view) | Author: Mark Lawrence (BreamoreBoy) * | Date: 2014年07月10日 12:45 | |
You need VS 2010 to build 3.3 see https://docs.python.org/devguide/setup.html#windows |
|||
| msg228134 - (view) | Author: (Cybjit) | Date: 2014年10月01日 22:35 | |
Building bdist_wininst with VS2010 Express also gives RC1015. With this patch it works. |
|||
| msg228139 - (view) | Author: Steve Dower (steve.dower) * (Python committer) | Date: 2014年10月01日 23:30 | |
We could add an afxres.h file alongside install.rc that includes the code posted by Lorenz Aebi. That will avoid the auto-generation issue, though it may be overwritten if VS does actually generate code for it. (I had thought that file was generated on project creation and not automatically changed after that, but I could be wrong.) |
|||
| msg384817 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2021年01月11日 12:51 | |
The distutils bdist_wininst command has been removed in Python 3.10: see bpo-42802. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:15 | admin | set | github: 55807 |
| 2021年01月11日 12:51:05 | vstinner | set | status: open -> closed nosy: + vstinner messages: + msg384817 resolution: wont fix stage: resolved |
| 2019年04月26日 18:23:40 | BreamoreBoy | set | nosy:
- BreamoreBoy |
| 2014年10月01日 23:50:57 | brian.curtin | set | nosy:
- brian.curtin |
| 2014年10月01日 23:30:34 | steve.dower | set | messages: + msg228139 |
| 2014年10月01日 23:14:43 | BreamoreBoy | set | nosy:
+ tim.golden, zach.ware, steve.dower type: compile error |
| 2014年10月01日 22:35:53 | Cybjit | set | nosy:
+ Cybjit messages: + msg228134 |
| 2014年07月10日 12:45:37 | BreamoreBoy | set | nosy:
+ BreamoreBoy messages: + msg222662 |
| 2013年09月10日 13:38:58 | dbn | set | files:
+ wininst-no-afxres.h.patch nosy: + dbn messages: + msg197439 keywords: + patch |
| 2011年08月03日 00:16:03 | ned.deily | set | nosy:
+ loewis, brian.curtin |
| 2011年03月18日 22:47:07 | DaMutz | set | nosy:
+ DaMutz messages: + msg131367 |
| 2011年03月18日 18:28:45 | carljm | create | |