|
qt5 and vs2012 |
Posted by sbant on Feb-07-2013 23:52 |
|
Hello
I'm using qt5 with vs2012,
after compile there are many link error
Would you give some suggestion~ |
add |
Posted by sbant on Feb-07-2013 23:59 |
|
the mfcdemo runs ok |
Re: qt5 and vs2012 |
Posted by Peter Kwan on Feb-07-2013 23:59 |
|
Hi sbant,
Link error means the code is using some function, but the included library files do not have those functions. This is typically because the project has not included the necessary library file.
To know which library file is missing in the project configuration, would yo mind to inform me the exact error message?
Regards
Peter Kwan |
Re: qt5 and vs2012 |
Posted by sbant on Feb-08-2013 00:16 |
|
moc_qchartviewer.obj:-1: 错误:LNK2019: unresolved external symbol "__declspec(dllimport)
public: virtual void * __thiscall QLabel::qt_metacast(char const *)" (__imp_?
qt_metacast@QLabel@@UAEPAXPBD@Z) referenced in function "public: virtual void *
__thiscall QChartViewer::qt_metacast(char const *)" (?
qt_metacast@QChartViewer@@UAEPAXPBD@Z)
moc_qchartviewer.obj:-1: 错误:LNK2001: unresolved external symbol "__declspec(dllimport)
public: static struct QMetaObject const QLabel::staticMetaObject" (__imp_?
staticMetaObject@QLabel@@2UQMetaObject@@B)
qchartviewer.obj:-1: 错误:LNK2001: unresolved external symbol "public: virtual int __thiscall
QLabel::heightForWidth(int)const " (?heightForWidth@QLabel@@UBEHH@Z)
realtimetrack.obj:-1: 错误:LNK2001: unresolved external symbol "protected: virtual void
__thiscall QComboBox::mousePressEvent(class QMouseEvent *)" (?
mousePressEvent@QComboBox@@MAEXPAVQMouseEvent@@@Z)
total 169 LNK error |
tested |
Posted by sbant on Feb-09-2013 00:34 |
|
sorry,after some tests, I found I forgot to select the Qt Modules (Core Gui Widgets)
so ChartDirector can be used with Qt 5.0.1 with Vs2010 (msvc100)
but when I compile with vs2012(msvc110)
I got this:
error LNK1117: syntax error in option 'manifest:embed'
then I think ChartDirector 5.1.1 can't compile with visual studio 2012(msvc110) |
Re: tested |
Posted by Peter Kwan on Feb-09-2013 01:56 |
|
Hi sbant,
Are you using the QT 5 binary downloaded from the QT official web site, or are you compiling your QT 5 from QT source code yourself?
As far as I know, the official QT 5 binary does not support VS2012 (MSVC110). You may refer to the following page to see which compiler the QT 5 support:
http://qt-project.org/downloads
As of today, on Windows, it only supports VS 2010 and MinGW 4.7.
If you are using the QT Visual Studio plug-in on VS 2012, please remember to configure your project to use MSVC100 (not the default MSVC110), so as to ensure it remains compatible with your QT 5.
Please let me know if the above can solve the problem.
Regards
Peter Kwan |
Re: tested |
Posted by sbant on Feb-10-2013 16:42 |
|
yes, I compiling QT 5 with the source(MSVC110) , cause my project orginal in MSVC110,
and then can't use with ChartDirector
I have tested using Qt 5.0.1 for Windows 32-bit (VS 2010) and set my project to
MSVC100,it runs well
I wish ASE can provide a way to use with MSVC110 compiled QT5, thanks~ |
|