Results 1 to 4 of 4

Thread: how to add suffix to library like qtcore4_gcc.dll

  1. #1
    Join Date
    Jun 2007
    Posts
    2

    Default how to add suffix to library like qtcore4_gcc.dll

    how to compile qt libarary and add suffix to library like qtcore4_gcc.dll qtcore4_vc.dll


    can you tell me how to diff your library by your difference compiler like vc and mingw



    sorry english is not my mother language.

  2. #2
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: how to add suffix to library like qtcore4_gcc.dll

    Quote Originally Posted by furk View Post
    how to compile qt libarary and add suffix to library like qtcore4_gcc.dll qtcore4_vc.dll
    can you tell me how to diff your library by your difference compiler like vc and mingw
    sorry english is not my mother language.
    I never found a dll by name qtcore4_gcc.dll
    The difference on Mingw and VS is the library extension.
    Mingw build lib libqscintilla2.a and VS libqscintilla2.lib and qt apps shared depend on
    mingwm10.dll and VS a other small dll wo is inside * net framework

    And simple Operator like if (x or z) (x and z) VS not understand only && || can handle..
    and other small thing... on pro file. MINGW handle all code, and not dirty the carpet or nerves on mind.
    if you have trouble to bring qt apps on other pc build qt static...

    http://wiki.qtcentre.org/index.php?t..._Qt_on_Windows
    http://wiki.qtcentre.org/index.php?t...atic_Qt_on_Mac
    http://wiki.qtcentre.org/index.php?t...QTPLUGIN_build

    Or to find out which dll is needet on apps have look at http://www.dependencywalker.com/
    On Mac http://www.hmug.org/man/1/otool.php


    On qt4.3+ profile you can catch compiler like this....
    Qt Code:
    1. exists($$[QT_INSTALL_PLUGINS]/imageformats/libqmng.a) {
    2.  
    3. /* mingw code */
    4. DEFINES += _USE_GCC
    5.  
    6. }
    7.  
    8. exists($$[QT_INSTALL_PLUGINS]/imageformats/libqmng.lib) {
    9.  
    10. /* vscode code */
    11. DEFINES += _USE_VS
    12.  
    13. }
    To copy to clipboard, switch view to plain text mode 






    IMO: my experience tell my MINGW is much easy and simple and on MINGW folder is all needet libs & include ... only back-up the folder to other PC install an append the PATH envoirment.
    Last edited by patrik08; 10th June 2007 at 08:38.

  3. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: how to add suffix to library like qtcore4_gcc.dll

    How about something like this?
    win32-g++: TARGET = $$join(TARGET,,,_mingw)
    win32-msvc*: TARGET = $$join(TARGET,,,_msvc)
    J-P Nurmi

  4. #4
    Join Date
    Jun 2007
    Posts
    2

    Default Re: how to add suffix to library like qtcore4_gcc.dll

    thanks for your replies!
    The difference on Mingw and VS is the library extension.
    Mingw build lib libqscintilla2.a and VS libqscintilla2.lib and qt apps shared depend on
    mingwm10.dll and VS a other small dll wo is inside * net framework
    I think may be there is a difference between gcc and vc,
    for example: boost,

    when you compile boost library, it will add suffix: _vc if you use vc,
    it will add suffix: _gcc

    well, may be the wxwidgets like this.

    perhaps the library which compiled by difference compiler can not be call freelly

Similar Threads

  1. Replies: 4
    Last Post: 18th December 2009, 18:55
  2. Replies: 1
    Last Post: 5th March 2007, 20:50

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.