Results 1 to 16 of 16

Thread: build lib and dll with qmake

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #15
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Thanks
    8
    Thanked 127 Times in 121 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: build lib and dll with qmake

    Quote Originally Posted by jh View Post
    thanx for the hint. i tried CONFIG += dll but it still does
    not work. the dll is build but still the .lib is not build.
    but anyway the compiler tries to copy the .lib which is not build. do i have to
    build an static version first?

    Generieren von Code...
    link /LIBPATH:"c:\Qt\4.1.4-com\lib" /NOLOGO /INCREMENTAL:NO /INCREMENTAL:NO /DLL /OUT:"release\model.dll" @C:/DOKUME~1/jh/LOKALE~1/Temp\nm21.tmp
    copy /y "release\model.lib" "c:\01. - Arbeit\C++\shared_libs\basic\libs\model.lib"
    Das System kann die angegebene Datei nicht finden.
    copy /y "release\model.dll" "c:\01. - Arbeit\C++\shared_libs\basic\libs\model.dll"
    1 Datei(en) kopiert.
    I've never used MSVC but by comparing the two build commands (your own and the above one) it is obvious than the /implib switch is missing (BTW M$ switch syntax sucks a great deal... :P ). If you're sure that this hasn't been caused by a manipulation of yours you should report the bug to Trolltech and waiting for a fix you can always try this workaround :
    Qt Code:
    1. QMAKE_LINK_SHLIB_CMD += /implib:$${TARGET}.lib
    To copy to clipboard, switch view to plain text mode 

    Hope this helps.
    Last edited by jacek; 4th March 2007 at 14:46. Reason: changed [code] to [quote]
    Current Qt projects : QCodeEdit, RotiDeCode

  2. The following user says thank you to fullmetalcoder for this useful post:

    jh (4th March 2007)

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.