Text archives Help
- From: Jens Krueger <jens@sci.utah.edu>
- To: iv3d-users@sci.utah.edu
- Subject: [IV3D-USERS] Re: Re: Building imagevis on Vista 32-bit with Qt 4.6.3
- Date: Wed, 29 Sep 2010 11:40:18 -0600
Just as a side note, it is not that Trolltech/Nokia renamed the libs at one
point and we are still using old names that should be fixed, but Qt uses the
"4: in the name only for dynamic libs and a name without the version number
for statically linked libraries. As we prefer to link statically (otherwise
we would have to rely on the correct Qt version to be installed on the target
systems which has caused all kinds of trouble in the past) we use the ones
without the "4". That is also the reason you can't find for instance the JPEG
lib as that is only created in a static build.
Cheers
Jens
Am 29.09.2010 um 09:45 schrieb tom fogal:
>
Alark Joshi <alark1@gmail.com> writes:
>
> Hello,
>
>
>
> I have downloaded and installed Qt 4.6.3 SDK for Windows from
>
> http://qt.nokia.com/downloads/.
>
>
We don't support the SDK, only building from source.
>
>
Not that you won't be able to get it to work, just that we're not
>
experienced here and will be little help ;)
>
>
There's a .bat to compile from source under Scripts/.
>
>
Also note that Qt 4.7 is out.
>
>
> When I tried to Build the Visual Studio Project after 'qmake
>
> -recursive', it keeps looking for QtOpenGL.lib, QtGui.lib, whereas
>
> the library files that come with Qt 4.5.x onwards have a '4' appended
>
> to the library name. So QtOpenGL.lib is now QtOpenGL4.lib and so on.
>
> Similary, qjpeg.lib is now qjpeg4.lib.
>
>
If you want to use the sdk, you should make sure to delete all our
>
distributed .sln and .vcproj files before you run `qmake'. I would
>
*hope* that version of the Qt SDK would build QtOpenGL4.lib/dll as well
>
as have its qmake look for QtOpenGL4.lib/dll. If not, would you mind
>
filing a bug w/ Qt [1]?
>
>
> I went through every project and fixed the library names to look for
>
> Qt*4.lib, but when I ask it to look for qjpeg4.lib, it gives me the
>
> following error.
>
>
>
> Creating library Build\ImageVis3D.lib and object Build\ImageVis3D.exp
>
> 2>main.obj : error LNK2001: unresolved external symbol "class QObject
>
> * __cdecl qt_plugin_instance_qjpeg(void)"
>
>
We expect the JPEG, PNG, TIFF, etc. libraries to be statically linked
>
in to Qt, which it is not if you're using the binary SDK. Try defining
>
QT_SHARED in all your project files and rebuilding everything.
>
>
-tom
>
>
[1] http://bugreports.qt.nokia.com/secure/Dashboard.jspa
Archive powered by MHonArc 2.6.16.