-
-
Notifications
You must be signed in to change notification settings - Fork 366
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
Fixing the parameters when using dynamic mbedtls lib #2830
Conversation
动态库失败了,好像符号没被导出,可以看下有没有导出的配置,或者让 cmake 强制导出下 |
The dynamic library failed. It seems that the symbols were not exported. You can check whether there is any exported configuration, or ask cmake to force the export. |
Changed to version 3.5.1, and now both static and shared have failed. |
静态库失败,加上bcrypt就行。动态库失败好像是官方的bug,一直没修复 |
Boss, how can cmake force export? |
Then you have to use CMake to generate two configurations |
I don’t understand what it means, please just change the PR |
我没时间,参考其他包 ,走 CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS 强制导出。。这是最后的 fallback 方案。。 一般这种库,肯定有内部的导出宏配置,可以翻下源码 开启下。。 |
I don't have time, so refer to other packages and use CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS to force export. . This is the final fallback solution. . Generally, this kind of library must have internal export macro configuration, which can be opened by opening the source code. . |
试了下搞不定。要不就先现在这样好了, 已经设置了windows上shared是read_only |
I tried it but couldn't figure it out. How about we just leave it like this for now, we have already set shared to be read_only on Windows. |
咦,这里已经有人搞定了, |
Hey, someone has already done it here. |
mingw 也有问题 |
MinGW also has problems |
估计是 |
I guess |
mingw 上还差几个 syslinks 补上应该就好了 |
There are still a few syslinks missing on mingw. It should be enough to make them up. |
剩下的 mingw x86 问题,似乎是新版本引入的 Mbed-TLS/mbedtls#8334 可以看下能否打 patch 修复,或者等下个 release |
可以了 #2849 |
编译mbedtls动态库的时候一直出来静态库,看了下CMakeLists.txt,之前用的参数错了
![image](https://private-user-images.githubusercontent.com/97490782/283090045-0ce5f67a-f7d4-4d03-8fa1-7db5732e0f70.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg4MDMyNTYsIm5iZiI6MTcxODgwMjk1NiwicGF0aCI6Ii85NzQ5MDc4Mi8yODMwOTAwNDUtMGNlNWY2N2EtZjdkNC00ZDAzLThmYTEtN2RiNTczMmUwZjcwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE5VDEzMTU1NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWEwOTgyYjQ1NDlkYzVmMjZlOWJiODcyYjUyYmE3MzA0ZGI3YjVkODkzZjUyODRmOWEyNWVlYmM3MGQ5ZGRiOWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.LAlHhcBk-0TFhP72vTMhUYJFeYR5YhNaWp3iEvkefls)