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.
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:
exists($$[QT_INSTALL_PLUGINS]/imageformats/libqmng.a) { /* mingw code */ DEFINES += _USE_GCC } exists($$[QT_INSTALL_PLUGINS]/imageformats/libqmng.lib) { /* vscode code */ DEFINES += _USE_VS }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.
How about something like this?
win32-g++: TARGET = $$join(TARGET,,,_mingw)
win32-msvc*: TARGET = $$join(TARGET,,,_msvc)
J-P Nurmi
thanks for your replies!
I think may be there is a difference between gcc and vc,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
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
Bookmarks