Search code examples
c++qtstatic-librariesapr

Adding libraries to project


I'm new to Qt, and got following error to my C++ project:

fatal error: apr_pools.h: No such file or directory

I installed apr from https://apr.apache.org/compiling_unix.html and compiled it by executing:

 ./configure
 make
 make install

But I have no idea now how to link proper files to my project.


Solution

  • I solved my problem by adding external library. The result in .pro file is as below:

    unix:!macx: LIBS += -L/usr/local/apr/lib/ -lapr-1
    
    INCLUDEPATH += /usr/local/apr/include/apr-1
    DEPENDPATH += /usr/local/apr/include/apr-1
    

    But anyway thanks everyone for their time and good intentions :)