GmSSL / OpenSSL-Compatibility-Layer

OpenSSL Compatibility Layer of GmSSL
Apache License 2.0
23 stars 3 forks source link

编译不过去,/opt/OpenSSL-Compatibility-Layer-0.8.1/src/bio.c:14:25: fatal error: gmssl/error.h: No such file or directory #2

Open meguoe opened 5 months ago

meguoe commented 5 months ago

Scanning dependencies of target crypto [ 9%] Building C object CMakeFiles/crypto.dir/src/err.c.o [ 18%] Building C object CMakeFiles/crypto.dir/src/bio.c.o /opt/OpenSSL-Compatibility-Layer-0.8.1/src/bio.c:14:25: fatal error: gmssl/error.h: No such file or directory

include <gmssl/error.h>

1156175523 commented 5 months ago

我遇到跟你一样的情况,编译OpenSSL-Compatibility-Layer-0.8.1需要依赖gmssl 因为我是自定义安装的gmssl,导致编译时找不到gmssl 我是通过修改OpenSSL-Compatibility-Layer-0.8.1根目录的CMakeLists.txt解决 具体改的是如下两项: include_directories(${PROJECT_SOURCE_DIR}/include /usr/local/include) link_directories(/usr/local/lib) ---------------------------> include_directories(${PROJECT_SOURCE_DIR}/include /home/GM/GmSSL/GmSSL-3.1.1-install/include) link_directories(/home/GM/GmSSL/GmSSL-3.1.1-install/lib)

/usr/local/include 和 /usr/local/lib 是默认安装路径

希望对你有所帮助

PikaByter commented 5 months ago

当前的最新版本是和当前最新的gmssl (5b3c897d0e3f09acd68d17d7a586af7f517be29a)配套的,二者都使用重新编译的方式安装,就不会有这样的问题了,你这之后估计还有版本不匹配的问题

PikaByter commented 5 months ago

readme和makefile有点坑

hancm commented 2 months ago

readme和makefile有点坑

请问下这个支持密码卡的sdf接口的ssl吗?

PikaByter commented 2 months ago

readme和makefile有点坑 请问下这个支持密码卡的sdf接口的ssl吗?

抱歉,我没接触过你说的 “密码卡的sdf接口”,因此不能给你准确的回答,需要你自己尝试