[Qt-interest] [Issue N257294] Unresolved symbols when linking projects that use ActiveQt
Constantin Makshin
dinosaur-rus at users.sourceforge.net
Thu Jul 16 14:27:14 CEST 2009
(Note: All files listed below can be found in the attached archive.)
1) I build 32-bit, 64-bit desktop and WM5 PocketPC versions of Qt.
The compilation process is semi-automated and performed using
"compile_msvc.cmd" script.
All used "qmake.conf" files are also customized to use as many
optimization options as possible and properly handle the situation where
all compiled versions of Qt reside in the same top-level directory.
Both Qt itself and Qt applications (except AciveQt ones when default
"qaxcontainer.prf" and "qaxserver.prf" files are used) compile and work
without any problems.
2) I use wrapper scripts for both QMake (see "qmake32.cmd" and
"qmake64.cmd") and NMake ("nmake32.cmd" and "nmake64.cmd").
This lets me easily use any of the available Qt and compiler versions from
any instance of command prompt.
3) No, only Visual Studio 2008 SP1 with Windows Server 2008 SDK.
4) Qt compilation process is described above. It may look somewhat
[over]complicated, but I'm used to it and, what is more important, it
works.
On Thu, 16 Jul 2009 13:12:44 +0400, <qt-bugs at trolltech.com> wrote:
> Hi,
>
> Please send the original "Makefile.Release", the attached 'nmake.txt'
> doesn't help. I am able to build the 'comapp' without any problem here.
> Answering the following questions might help identifying the problem you
> are facing.
>
> 1) Are you building 64Bit version of Qt?
> 2) Do you set "QMAKESPEC" on your own? If not, the current version can
> be found from the "QTDIR\mkspecs\default\qmake.conf" file.
> 3) Do you have multiple versions of Visualstudio installed?
> 4) Are you building Qt from the "Visual 2008 Command Prompt" (or 64bit
> version of it) ?
>
> The libraries you added to the qaxserver.prf should be automatically
> picked by qmake. So I am trying to figure out what went wrong there.
>
> If you can do a configure again, please send the output
>
> Best Regards
> Prasanth
>
>
> On Wednesday, 15. Jul 2009 18:03 Constantin Makshin wrote:
>> The following tests were performed on "comapp" example.
>>
>> With original "qaxserver.prf" file "LIBS" variable is set to
>> "f:\Qt\lib\QAxServer.lib f:\Qt\lib\QtGui4.lib f:\Qt\lib\QtCore4.lib
>> release\comapp.res" and compilation fails due to lots of unresolved
>> symbols (see attached "nmake.txt").
>>
>> With my version of "qaxserver.prf" "LIBS" variable is equal to
>> "advapi32.lib gdi32.lib ole32.lib oleaut32.lib user32.lib
>> f:\Qt\lib\QAxServer.lib f:\Qt\lib\QtGui4.lib f:\Qt\lib\QtCore4.lib
>> release\comapp.res" and the example compiles successfully.
>>
>> On Mon, 13 Jul 2009 17:05:19 +0400, <qt-bugs at trolltech.com> wrote:
>> > Hi,
>> >
>> > It looks like your build environment is missing something.
>> >
>> > Are you able to build ActiveQt examples? Check your
>> > Makefile.Debug(or
>> > .release), whether these libraries are included in 'LIBS' variable.
>> >
>> > Try 'configure' again from the 'visual studio command prompt' (32 or
>> > 64)
>> > & build Qt. I am not able to reproduce this in our setup.
>> >
>> > Best Regards
>> > Prasanth
>> >
>> > On Saturday, 27. Jun 2009 23:36 dinosaur-rus at users.sourceforge.net
>> > wrote:
>> >> You are receiving this mail because Constantin Makshin
>> >> dinosaur-rus at users.sourceforge.net
>> >> is sending a bugreport to you from www.trolltech.com.
>> >>
>> >> Product: Qt
>> >>
>> >> Function: BuildSystem
>> >>
>> >> Version: 4.5.2
>> >>
>> >> Platform: WindowsXP
>> >> Windows XP Professional x64 Edition SP2
>> >>
>> >> Compiler: MSVC
>> >> Visual Studio 2008 SP1
>> >>
>> >> Short description: Unresolved symbols when linking projects that
>> >> use
>> >> ActiveQt
>> >>
>> >> Did:
>> >> Compile some project that uses ActiveQt.
>> >>
>> >> Expected to see:
>> >>
>> >>
>> >> Got instead:
>> >> Linking errors due to unresolved WinAPI symbols.
>> >>
>> >> More details:
>> >> The attached archive contains:
>> >> 1) example project that uses QAxServer library;
>> >> 2) diff file with fix for this problem.
--
Constantin "Dinosaur" Makshin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: activeqt.zip
Type: application/zip
Size: 14132 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090716/c1c96042/attachment.zip
More information about the Qt-interest-old
mailing list