S
S
Sergey Lagner2014-08-26 07:04:18
Qt
Sergey Lagner, 2014-08-26 07:04:18

How to include autotools library in qmake project?

Good afternoon.
I am developing an application in Qt. Platforms Desktop(Windows, Linux), Android. I want to include a library that uses autotools for assembly. The library itself is in C, without external dependencies. The question is, how can this be done?
Of particular interest is switching configurations in QtCreator. For example, I can switch to arm android kit and accordingly I want the library to be reconfigured, rebuilt and linked with the project.
I found it myself only https://qt-project.org/wiki/QmakeInvokeAutotools
It seems to have repeated everything as there, but it refuses to work. I'm new to the build process through autotools, so it's hard to understand what's going on and where it breaks. Maybe someone knows an example of solving a similar problem or a good article on this topic.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
EXL, 2014-08-26
@lagner

Your best bet would be to move from the autotools build system to QMake/QBS. I did it this way:
For each platform, I configured the library by saving the "config.h" files. Then I built the library on each platform, saving the build log to a file: make &> make.logBased on the data and files received, I wrote a platform-independent "*.pro" file with pens, fully integrating the library into the project and getting rid of the monstrous autotools. It took about 1.5-hours, there were about 50 "*.c" and "*.h" files in the library.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question