Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译不过去,/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 this issue Jun 12, 2024 · 5 comments

Comments

@meguoe
Copy link

meguoe commented Jun 12, 2024

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
Copy link

我遇到跟你一样的情况,编译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
Copy link

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

@PikaByter
Copy link

readme和makefile有点坑

@hancm
Copy link

hancm commented Sep 24, 2024

readme和makefile有点坑

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

@PikaByter
Copy link

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants