Text archives Help
- From: tom fogal <tfogal@alumni.unh.edu>
- To: iv3d-users@sci.utah.edu
- Subject: [IV3D-USERS] Re: failed to compile against Qt4.5
- Date: Fri, 01 May 2009 17:48:06 -0600
deronghu@gmail.com *//* <deronghu@gmail.com> writes:
>
As i tried, it's some difficult to compile ImageVis3D against Qt4.5
>
>
1. In some place, it is using $(QTDIR32)/ for project setting.
>
but in some place it is using $(QTDIR32) without "/". Such as
>
$(QTDIR32)lib. I think it is better as $(QTDIR32)/lib for consistent.
>
currently i have to set QTDIR32 with path followed by "/".
Yes; this a known issue. The intent is that your environment variable
should include the trailing slash, as you've figured out.
I'll talk to the relevant party and see if I can convince them into
adding the trailing slash into the project files.
>
2. QT4.5 library name has added "4".
>
such as QtOpenGLd.lib is changed as QtOpenGLd4.lib. that cause some
>
troub
>
le
>
for linking. in some file Tuvok_QtPlugins.h, it has some codes like:
>
#ifdef _DEBUG
>
#pragma comment( lib, "qjpegd.lib" )
>
#pragma comment( lib, "qtiffd.lib" )
>
#pragma comment( lib, "qgifd.lib" )
>
...
>
I have to add '4' to make it pass through.
Hrm. To clarify, you modified Tuvok_QtPlugins only to get around a
link error, correct (that is, not a compile error)?
>
3. in the final step, i got some error like:
>
>
>Linking...
>
1> Creating library ..\Build\Win32\Debug\ImageVis3D-32.lib and object
>
..\Build\Win32\Debug\ImageVis3D-32.exp
>
1>main.obj : error LNK2019: unresolved external symbol "class QObject *
>
__cde
>
cl
[snip]
You haven't built a static Qt. Do note that you need to run Qt's
`configure' with the `-static' option. I'd suggest using the
Win-StaticQt.bat script to compile Qt, but I happen to know that it
won't compile Qt-4.5.1 at the moment.
You can try defining QT_SHARED in an attempt to get around this (as
well as issue #2, actually). We don't currently support shared Qt
builds, though.
We're working on getting a working Win-StaticQt.bat for 4.5+. If you'd
like to get going ASAP, I'd suggest grabbing the latest in the 4.4
series, which should build/work fine.
Sorry you're running into issues with ImageVis3D!
Best,
-tom
Archive powered by MHonArc 2.6.16.