A
A
Asya2019-10-03 23:02:39
Qt
Asya, 2019-10-03 23:02:39

How to add a library to Qt?

I need to include the openbabel library in my qt project for desktop devices,
tell me how to do it? I downloaded open-babel-2-4-0.zip
and try to connect like this, but it doesn't work:

LIBS += \
    -L$$E:/libs/openbabel-openbabel-2-4-0/include/openbabel -lopenbabel

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Armenian Radio, 2019-10-04
@asyaevloeva

Almost right. Fixes:
LIBS+=-l/path/to/file/lib
INCLUDEPATH+=/path/to/folder/c/includes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question