I have a .lib file but i don't know to use this file in Linux In windows i used it by LIBS += mylib.lib in .pro file
please help me
thanks
I have a .lib file but i don't know to use this file in Linux In windows i used it by LIBS += mylib.lib in .pro file
please help me
thanks
Library files on Linux are typically libsomething.a (static) or libsomething.so (dynamic) not something.lib. You access library files the same way on Linux as you do on Windows. However, the name conventions are different:Is the .lib file from a Windows library? If so, then it isn't useable under Linux.Qt Code:
LIBS += -L/path/to/search -lsomethingTo copy to clipboard, switch view to plain text mode
Is the .lib file from a Windows library? If so, then it isn't useable under Linux.
You will need to find/build the library in the Linux environment.
thanks for answer
this is my LIBS += -L/home/nthung/NVR_Demo_04_06_2010/NVR 8_6_V3/usr/lib -llibxvidcore it still don't run in the L/home/nthung/NVR_Demo_04_06_2010/NVR 8_6_V3/usr/lib I have 4 files
libxvidcore.a
libxvidcore.so
libxvidcore.so.4
libxvidcore.so.4.2\thaks
The lib part of the library file name is implied. You also need to quote the space in the path.
Qt Code:
LIBS += $$quote(-L/home/nthung/NVR_Demo_04_06_2010/NVR 8_6_V3/usr/lib) -lxvidcoreTo copy to clipboard, switch view to plain text mode
Bookmarks