Results 1 to 3 of 3

Thread: What is the format of library ?

  1. #1
    Join Date
    Jul 2011
    Location
    BRAZIL-RIO DE JANEIRO
    Posts
    47
    Thanks
    33
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default What is the format of library ?

    Hi fiends,

    I wish know under WIN XP, what must the extencion format of library added to directive LIBS at <project>.PRO file ?

    I´m not sure if is the DLL or LIB one.


    Thanks in advance.

    +++

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: What is the format of library ?

    Qt Code:
    1. LIBS += -L/some/search/path -lname
    To copy to clipboard, switch view to plain text mode 
    will do the right thing on whatever platform AFAICT. If you are explicitly naming a library file then you should use the actual name of the file:
    Qt Code:
    1. LIBS += /some/search/path/libname.so // UNIX shared library
    2. LIBS += /some/search/path/libname.a // UNIX static library
    3. LIBS += /some/search/path/name.dll // windows dynamic library
    4. LIBS += /some/search/path/name.lib // windows import or static library
    5. LIBS += some Mac specific file naming ...
    To copy to clipboard, switch view to plain text mode 
    with appropriate selection by build environment.

  3. The following user says thank you to ChrisW67 for this useful post:

    andre_teprom (28th July 2011)

  4. #3
    Join Date
    Jul 2011
    Location
    BRAZIL-RIO DE JANEIRO
    Posts
    47
    Thanks
    33
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: What is the format of library ?

    Hi,

    I´m under WINDOWS, so the options I must to choice are :

    Qt Code:
    1. LIBS += /some/search/path/name.dll // windows dynamic library
    2. LIBS += /some/search/path/name.lib // windows import or static library
    To copy to clipboard, switch view to plain text mode 

    However, I have both files ( .DLL / .LIB) with same name, but respectivelly inside different folders ( \BIN - \LIB ).

    What criteria must be adopted to select the appropriate format ?
    I could select anyone ?


    +++

Similar Threads

  1. Qt to Matlab (mat format) export data to Matlab .mat format -v4
    By windsword in forum Qt-based Software
    Replies: 4
    Last Post: 26th February 2013, 20:01
  2. Replies: 2
    Last Post: 3rd June 2011, 07:39
  3. Replies: 5
    Last Post: 1st June 2011, 08:28
  4. Replies: 2
    Last Post: 19th February 2011, 11:26
  5. Replies: 1
    Last Post: 14th January 2011, 11:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.