user1550798
user1550798

Reputation: 106

Qt - How to Build one Dynamic Library in a project which depends on other dynamic library

I have Two Dynamic Library library1.so library2.so (Using library1.so , path is absolute)

in which library2.so is using library1.so, so when i am building my project which is using library2.so(absolute path) its giving error for all the methods(undefined reference) in library1.so

Upvotes: 2

Views: 223

Answers (1)

Darryl Miles
Darryl Miles

Reputation: 4631

In your qmake config you can add arbitrary libs:

LIBS += -llibrary2

OR

LIBS += /abspath/to/library2.so

Upvotes: 1

Related Questions