Facing linking libs on linux platform
-
I am facing lib linking issues with my project on Linux platform.
Following is my lib path code :
LIBS += "-L/mnt/c/Work/Alpha/3rdParty/quazip/lib/64bit/" -llibquazip
and I have these libs at /mnt/c/Work/Alpha/3rdParty/quazip/lib/64bit/ placed :
libquazip.a
libquazip.so
libquazip.so.1
libquazip.so.1.0
libquazip.so.1.0.0I know I have placed both static and dynamic libs. If possible can someone explain to me how to link them in pro files one at a time?
Error occurred : :-1: error: cannot find -llibquazip
-
Hi
I think it might be the lib naming thing. (linux thing)
https://forum.qt.io/topic/79697/linking-to-a-shared-object-in-linuxso maybe
LIBS += -L/mnt/c/Work/Alpha/3rdParty/quazip/lib/64bit/ -quazip -
Thanks i think that -llibquazip was creating issue. I updated it to -lquazip and it started working.
-
@jineshmehta
Hi
Yes that was what i meant. maybe badly explained.
In linux, even the actual file name does start with libXX, then you
do not included when used as link name. and just use XX