[Qt-interest] Issues building ActiveQt with shared configuration

Eli Hooten elir.hooten at gmail.com
Mon Jul 18 22:56:48 CEST 2011


List,

I am trying to develop a project using ActiveQt with Visual Studio in
Windows XP. When I attempt to build my project, it get various LNK2001
(unresolved external symbol) errors involving ActiveQt classes. Example:

DirectShowVideoPlayer.lib(DirectShowWidget.obj) : error LNK2001: unresolved
external symbol "public: virtual __thiscall QAxWidget::~QAxWidget(void)"
(??1QAxWidget@@UAE at XZ)
1>DirectShowVideoPlayer.lib(DirectShowWidget.obj) : error LNK2019:
unresolved external symbol "public: __thiscall QAxWidget::QAxWidget(class
QWidget *,class QFlags<enum Qt::WindowType>)" (??0QAxWidget@@QAE at PAVQWidget
@@V?$QFlags at W4WindowType@Qt@@@@@Z) referenced in function "public:
__thiscall DirectShowWidget::DirectShowWidget(class QAxWidget *)"
(??0DirectShowWidget@@QAE at PAVQAxWidget@@@Z)
1>DirectShowVideoPlayer.lib(DirectShowWidget.obj) : error LNK2001:
unresolved external symbol "public: virtual struct QMetaObject const *
__thiscall QAxWidget::metaObject(void)const " (?metaObject at QAxWidget
@@UBEPBUQMetaObject@@XZ)
1>DirectShowVideoPlayer.lib(DirectShowWidget.obj) : error LNK2001:
unresolved external symbol "public: virtual void * __thiscall
QAxWidget::qt_metacast(char const *)" (?qt_metacast at QAxWidget@@UAEPAXPBD at Z)
1>DirectShowVideoPlayer.lib(DirectShowWidget.obj) : error LNK2001:
unresolved external symbol "public: virtual int __thiscall
QAxWidget::qt_metacall(enum QMetaObject::Call,int,void * *)"
(?qt_metacall at QAxWidget@@UAEHW4Call at QMetaObject@@HPAPAX at Z)
1>DirectShowVideoPlayer.lib(DirectShowWidget.obj) : error LNK2001:
unresolved external symbol "protected: virtual void __thiscall
QAxWidget::connectNotify(char const *)" (?connectNotify at QAxWidget@@MAEXPBD at Z
)

And various others for the other QAx classes.

I'm assuming I've done something wrong in setting up my project, and when
consulting the Qt documentation at:
http://doc.qt.nokia.com/latest/activeqt.html#activeqt, it reads:

 "To build the static libraries, change into the activeqt directory
(usually QTDIR/src/activeqt), and run qmake and your make tool in both the
container and the control subdirectory. The libraries qaxcontainer.lib and
qaxserver.lib will be linked into QTDIR/lib.

If you are using a shared configuration of Qt enter the plugin subdirectory
and run qmake and your make tool to build a plugin that integrates the
QAxContainer <http://doc.qt.nokia.com/latest/qaxcontainer.html> module into Qt
Designer <http://doc.qt.nokia.com/latest/designer-manual.html#qt-designer>."

I'm using a shared configuration of Qt, but cannot find the ''plugin''
subdirectory. If I assume this is the "plugins" subdirectory located at
QTDIR\plugins, I see no .pro file
to run qmake on. There is no makefile either.

In short, how do I build ActiveQt. And once built, how do I setup my .pro
files to resolve my linker issues?

Thanks,

EH
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110718/76e352aa/attachment.html 


More information about the Qt-interest-old mailing list