Skip to content

I fix cpython,but when i rebuild On Windows,It's can't find openssl #127862

@hariji814

Description

@hariji814

Bug report

Bug description:

1、the error was

  fileutils.c
F:\AIPC-packge\modify_python\Yanthon-3.10.10\Include\decrypt_source_file.h(6,10): error C1083: 无法打开包括文件: “openssl/aes.h
”: No such file or directory [F:\AIPC-packge\modify_python\Yanthon-3.10.10\PCbuild\pythoncore.vcxproj]
  (编译源文件“../Python/fileutils.c”)

  formatter_unicode.c
  正在编译...
  frozen.c
  decrypt_source_file.c
F:\AIPC-packge\modify_python\Yanthon-3.10.10\Include\decrypt_source_file.h(6,10): error C1083: 无法打开包括文件: “openssl/aes.h
”: No such file or directory [F:\AIPC-packge\modify_python\Yanthon-3.10.10\PCbuild\pythoncore.vcxproj]
  (编译源文件“../Python/decrypt_source_file.c”)

  future.c
  getargs.c
  getcompiler.c
  getcopyright.c
  getopt.c
  getplatform.c
  getversion.c
  hamt.c
  hashtable.c
  import.c
  importdl.c
  initconfig.c
  marshal.c
  modsupport.c
  mysnprintf.c
  mystrtoul.c
  pathconfig.c
  preconfig.c
  正在编译...
  pyarena.c
  pyctype.c
  pyfpe.c
  pylifecycle.c
  pymath.c
  pytime.c
  pystate.c
  pystrcmp.c
  pystrhex.c
  pystrtod.c
  dtoa.c
  Python-ast.c
  pythonrun.c
  suggestions.c
  structmember.c
  symtable.c
  sysmodule.c
  thread.c
  traceback.c
  zlibmodule.c
  正在编译...
  adler32.c
  compress.c
  crc32.c
  infback.c
  inffast.c
  inflate.c
  inftrees.c
  trees.c
  uncompr.c
  zutil.c
  dl_nt.c

生成失败。

F:\AIPC-packge\modify_python\Yanthon-3.10.10\PCbuild\pythoncore.vcxproj(534,5): warning MSB3073: 命令“"C:\Program Files\G
it\cmd\git.exe" name-rev --name-only HEAD > "F:\AIPC-packge\modify_python\Yanthon-3.10.10\PCbuild\obj\310amd64_Release\
pythoncore\gitbranch.txt"”已退出,代码为 128。
F:\AIPC-packge\modify_python\Yanthon-3.10.10\PCbuild\pythoncore.vcxproj(535,5): warning MSB3073: 命令“"C:\Program Files\G
it\cmd\git.exe" rev-parse --short HEAD > "F:\AIPC-packge\modify_python\Yanthon-3.10.10\PCbuild\obj\310amd64_Release\pyt
honcore\gitversion.txt"”已退出,代码为 128。
F:\AIPC-packge\modify_python\Yanthon-3.10.10\PCbuild\pythoncore.vcxproj(536,5): warning MSB3073: 命令“"C:\Program Files\G
it\cmd\git.exe" describe --all --always --dirty > "F:\AIPC-packge\modify_python\Yanthon-3.10.10\PCbuild\obj\310amd64_Re
lease\pythoncore\gittag.txt"”已退出,代码为 128。
F:\AIPC-packge\modify_python\Yanthon-3.10.10\Include\decrypt_source_file.h(6,10): error C1083: 无法打开包括文件: “openssl/aes.h
”: No such file or directory [F:\AIPC-packge\modify_python\Yanthon-3.10.10\PCbuild\pythoncore.vcxproj]
F:\AIPC-packge\modify_python\Yanthon-3.10.10\Include\decrypt_source_file.h(6,10): error C1083: 无法打开包括文件: “openssl/aes.h
”: No such file or directory [F:\AIPC-packge\modify_python\Yanthon-3.10.10\PCbuild\pythoncore.vcxproj]
F:\AIPC-packge\modify_python\Yanthon-3.10.10\Include\decrypt_source_file.h(6,10): error C1083: 无法打开包括文件: “openssl/aes.h
”: No such file or directory [F:\AIPC-packge\modify_python\Yanthon-3.10.10\PCbuild\pythoncore.vcxproj]
    3 个警告
    3 个错误

已用时间 00:00:43.09

2、My code was

#ifndef _DECRYPY_SOURCE_FILE
#define _DECRIPT_SOURCE_FILE
#include <Python.h>
#include <math.h>

#include <openssl/aes.h>

CPython versions tested on:

3.10

Operating systems tested on:

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-windowsbuildThe build process and cross-build

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions