Reputation: 135
How to add LDFLAGS in qt .pro field?
consider Library folder and shared library(.so) is in a dir_path folder.
For example, adding this line is not solving the issue LIBS+= -Ldir_path -llibrary_name
Any suggestions?
Upvotes: 6
Views: 9729
Reputation: 1820
Make sure that you use "TEMPLATE = app" to get the correct behavior. Using the "lib" template would ignore the LIBS variable.
Upvotes: 0