Tongsuo-Project / Tongsuo

铜锁/Tongsuo is a Modern Cryptographic Primitives and Protocols Library
https://www.tongsuo.net
Apache License 2.0
1.16k stars 186 forks source link

编译so报错 #659

Open LisaLiu19920103 opened 1 month ago

LisaLiu19920103 commented 1 month ago

F:\gitworkspace\tongsuo\tongsuolibrary\src\main\cpp\include\openssl\opensslconf.h:14:11: fatal error: 'openssl/configuration.h' file not found F:\gitworkspace\tongsuo\tongsuolibrary\src\main\cpp\include\openssl\conf.h:13:11: fatal error: 'openssl/bio.h' file not found F:\gitworkspace\tongsuo\tongsuolibrary\src\main\cpp\crypto\ct\ct_b64.c:13:10: fatal error: 'openssl/ct.h' file not found F:\gitworkspace\tongsuo\tongsuolibrary\src\main\cpp\crypto\ct\ct_policy.c:14:10: fatal error: 'openssl/ct.h' file not found

dongbeiouba commented 1 month ago

如何构建的?贴一下完整命令

LisaLiu19920103 commented 1 month ago

CMakeLists.txt

在Android Studio里构建的

dongbeiouba commented 1 month ago

CMakeLists.txt

在Android Studio里构建的

部分头文件是需要动态生成的,比如从configuration.h.in生成configuration.h,cmake里面没有体现这些步骤,所以就没有configuration.h文件,当然编译就失败了。

想要使用cmake构建铜锁你需要研究一下Tongsuo项目的构建过程。

LisaLiu19920103 commented 1 month ago

您好,是否有较为详细的指导文件呢?