I asked a similar question on the TSS foums here. However I am having a similar problem with compiling TPM code on VS2017. The error is 'cannot open file libeay32mdd.lib'. I have installed openssl in C:/Program Files/OpenSSL and put the bin and include folders in the system path. Howver, I am still getting the error. Any ideas?
Regards
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
So I figured out the problem. I initially installed openSSL 1.1.0. This version does not have the required libraries. I removed this and installed v1.0.2 and the error is gone. However, then I started getting unresolved symbol errors. Adding legacy_stdio_definitions.lib to the linker fixed that. But my troubles are not over yet ;). I am getting the following error now:
LNK2019 unresolved external symbol __imp____iob_func referenced in function _OPENSSL_stderr
For now, I can't seem to understand what this means. The search continues. :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OpenSSL 1.1 changed the names of the link libraries. The gcc makefile11.mak should work. For VS, go into the linker input configuration and change the libraries (for debug) to libcrypto32mdd.lib;libssl32mdd.lib
I have no problem with openssl 1.0. In my experience supporting other users, weird errors are usually caused by an incomplete uninstall causing clashes, especially if it was at one time installing in an unusual location. I've supported similar errors where multiple versions of VS had been installed and not completely uninstalled. As with the TSS thread, I suggest you completely uninstall and start over.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I uninstalled OpenSSL1.0.2 and installed OpenSSL1.1.0 in C:\Program Files\OpenSSL. Relevant paths had already been set before exactly as the documentation says. I renamed the library dependancies to libcrypto32mdd.lib;libssl32mdd.lib and it compiled without error. Thanks a lot.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I asked a similar question on the TSS foums here. However I am having a similar problem with compiling TPM code on VS2017. The error is 'cannot open file libeay32mdd.lib'. I have installed openssl in C:/Program Files/OpenSSL and put the bin and include folders in the system path. Howver, I am still getting the error. Any ideas?
Regards
So I figured out the problem. I initially installed openSSL 1.1.0. This version does not have the required libraries. I removed this and installed v1.0.2 and the error is gone. However, then I started getting unresolved symbol errors. Adding legacy_stdio_definitions.lib to the linker fixed that. But my troubles are not over yet ;). I am getting the following error now:
LNK2019 unresolved external symbol __imp____iob_func referenced in function _OPENSSL_stderr
For now, I can't seem to understand what this means. The search continues. :)
Ok. Completely uninstalling everything and starting over again. Will report soon.
I uninstalled OpenSSL1.0.2 and installed OpenSSL1.1.0 in C:\Program Files\OpenSSL. Relevant paths had already been set before exactly as the documentation says. I renamed the library dependancies to libcrypto32mdd.lib;libssl32mdd.lib and it compiled without error. Thanks a lot.