User forums > Help

QT3 on windows

<< < (3/3)

iw2nhl:
I use Qt3 with Visual Studio 6.
The line added to the dsp file (the project file of VS) to link the libs is (release and debug version):

--- Code: ---[RELEASE VERSION]
# ADD LINK32 "qt-mt334.lib" "qtmain.lib" "kernel32.lib" "user32.lib" "gdi32.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "imm32.lib" "winmm.lib" "wsock32.lib" "winspool.lib" "kernel32.lib" "user32.lib" "gdi32.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "imm32.lib" "winmm.lib" "wsock32.lib" "winspool.lib" "opengl32.lib" "glu32.lib" "delayimp.lib" delayimp.lib /nologo /subsystem:windows /machine:IX86 /libpath:"$(QTDIR)\lib" /DELAYLOAD:comdlg32.dll /DELAYLOAD:oleaut32.dll /DELAYLOAD:winmm.dll /DELAYLOAD:wsock32.dll /DELAYLOAD:winspool.dll
[DEBUG VERSION]
# ADD LINK32 "qt-mt334.lib" "qtmain.lib" "kernel32.lib" "user32.lib" "gdi32.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "imm32.lib" "winmm.lib" "wsock32.lib" "winspool.lib" "kernel32.lib" "user32.lib" "gdi32.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "imm32.lib" "winmm.lib" "wsock32.lib" "winspool.lib" "opengl32.lib" "glu32.lib" "delayimp.lib" /nologo /subsystem:windows /debug /machine:IX86 /pdbtype:sept /libpath:"$(QTDIR)\lib"

--- End code ---
May be it is too long, but you can see that the Qt3 lib is "qt-mt334.lib". You should have a similar library that must be added to your project options. Note that "334" is the version (I use 3.3.4), that may change. Note also that "mt" means multi-threaded and also this depends on how you compiled your library (mt is the default mode).
I hope this helps!

Alessandro

stblack:
Uhm... I believe this is the point.
I did again "compile-MinGW.bat" to see if it was lissed womething during the compilation process, and at the end I see :

--- Code: ---"The Qt library is now built in ./lib"
"The Qt examples are built in the directories in ./examples"
"The Qt tutorials are built in the directories in ./tutorial"
ECHO disattivato.
"Enjoy!   - the Trolltech team"
ECHO disattivato.
mingw32-make[1]: Leaving directory `C:/installqt3'
C:\installqt3>dir /lib
Formato del parametro non corretto - "lib".

C:\installqt3>dir \lib
 Il volume nell'unità C è MAIN
 Numero di serie del volume: 505E-1421

 Directory di C:\

File non trovato

C:\installqt3>dir .\lib
 Il volume nell'unità C è MAIN
 Numero di serie del volume: 505E-1421

 Directory di C:\installqt3\lib

23/01/2007  11.07    <DIR>          .
23/01/2007  11.07    <DIR>          ..
23/01/2007  11.04        86.952.820 libdesignercore.a
25/01/2007  12.42               901 libdesignercore.prl
23/01/2007  11.07        10.586.662 libeditor.a
25/01/2007  12.42               854 libeditor.prl
23/01/2007  10.44           791.062 libqassistantclient.a
25/01/2007  12.42               865 libqassistantclient.prl
25/01/2007  12.41               865 libqnp.prl
23/01/2007  10.43        16.442.468 libqt-mt.a
23/01/2007  10.03           379.432 libqtmain.a
25/01/2007  12.42               848 libqtmain.prl
23/01/2007  10.46           455.492 libqui.a
25/01/2007  12.42               854 libqui.prl
25/01/2007  12.42               769 qt-mt.prl
23/01/2007  10.44         9.310.208 qt-mt3.dll
16/01/2007  18.06                64 README
              15 File    124.924.164 byte
               2 Directory   9.861.849.088 byte disponibili
--- End code ---

No .lib ! Searching for any .lib files I don't find something similar to yours libs.

What do you think about it?

Stefano

stahta01:
You are using GCC he was using MSVC.
The normal library naming is different.
GCC is in the form libxyz.a
MSVC is in the form xyz.lib
Where the library name is xyz

Tim S

iw2nhl:
Tim is right, try to use the file 'libqt-mt.a'.

Here is my DIR:

--- Code: --- Directory of C:\Qt\3.3.4\lib

04/06/2005  22.01       <DIR>          .
04/06/2005  22.01       <DIR>          ..
04/06/2005  21.56            8.909.468 designercore.lib
04/06/2005  21.49                  838 designercore.prl
04/06/2005  21.56              693.460 editor.lib
04/06/2005  21.49                  787 editor.prl
04/06/2005  21.54               53.838 qassistantclient.lib
04/06/2005  21.49                  798 qassistantclient.prl
04/06/2005  22.01              585.750 qaxcontainer.lib
04/06/2005  21.49                  768 qaxcontainer.prl
04/06/2005  22.01              399.670 qaxserver.lib
04/06/2005  21.49                  772 qaxserver.prl
04/06/2005  21.49                  796 qnp.prl
04/06/2005  21.49                  618 qt-mt.prl
04/06/2005  21.54            4.014.080 qt-mt334.dll
04/06/2005  21.54            3.191.541 qt-mt334.exp
04/06/2005  21.54            5.290.126 qt-mt334.lib
04/06/2005  21.51                5.500 qtmain.lib
04/06/2005  21.49                  781 qtmain.prl
04/06/2005  21.55              533.766 qui.lib
04/06/2005  21.50                  787 qui.prl
04/06/2005  21.48                   76 README
              20 File(s)     23.684.220 bytes
--- End code ---

Navigation

[0] Message Index

[*] Previous page

Go to full version