Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get configuration.h from configuration.h.in in OpenSSL?

Tags:

c++

c++11

openssl

I am working with the OpenSSL library for C++. I used this library in another project and it worked great. I carried it over to another project today and I'm having issues.

Two of the header files are .h.in files: opensslv.h.in and configuration.h.in.

In the first project, this was not an issue. But in my new project it gives me an error on this line #include <openssl/configuration.h> because configuration.h cannot be found:

...\include\openssl\opensslconf.h(14): fatal error C1083: Cannot open include file: 'openssl/configuration.h': No such file or directory

I understand there is no literal configuration.h file but from what I understand that configuration.h.in file should generate a configuration.h file right?

Does anybody have any idea why that might be happening? Maybe I changed something in the project properties?

like image 630
Steele Stonick Avatar asked Sep 13 '25 01:09

Steele Stonick


1 Answers

.h.in is a template for a header file. .in suffix looks similar to autotools template files, but according to their FAQ, OpenSSL uses their own build system based on Perl. Anyway, you should call one of the Configure scripts, and build after that. Docs.

like image 83
Dmitrii Zabotlin Avatar answered Sep 14 '25 15:09

Dmitrii Zabotlin