zeboidlund
zeboidlund

Reputation: 10137

Linking to Shared Library in Qt

I've just created tinyxml as a shared library, and would like to figure out how to link it. How is this accomplished?

Upvotes: 7

Views: 13970

Answers (2)

Victor
Victor

Reputation: 411

If you your library resides in the project directory, the following line may come in handy:

LIBS += -L$${PWD}

Upvotes: 0

kechap
kechap

Reputation: 2087

You have to add includepath and libs in your pro file.

Something like the following. Just change your paths.

LIBS += -ltinyxml

LIBS += -L/libs/tinyxml/lib

INCLUDEPATH += /libs/tinyxml/include/

Upvotes: 9

Related Questions