PDA

View Full Version : how to add suffix to library like qtcore4_gcc.dll



furk
10th June 2007, 05:13
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.

patrik08
10th June 2007, 08:29
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?title=Building_static_Qt_on_Windows
http://wiki.qtcentre.org/index.php?title=Building_static_Qt_on_Mac
http://wiki.qtcentre.org/index.php?title=Link_-static_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....



exists($$[QT_INSTALL_PLUGINS]/imageformats/libqmng.a) {

/* mingw code */
DEFINES += _USE_GCC

}

exists($$[QT_INSTALL_PLUGINS]/imageformats/libqmng.lib) {

/* vscode code */
DEFINES += _USE_VS

}








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.

jpn
10th June 2007, 09:19
How about something like this?


win32-g++: TARGET = $$join(TARGET,,,_mingw)
win32-msvc*: TARGET = $$join(TARGET,,,_msvc)

furk
13th June 2007, 15:11
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