[Qt-creator] Latest git creator branches require up-to-date Qt
Hi, it happened once more: An API change in the QtDeclarative module required some changes in QuickDesigner creator. A fix has been pushed to the 2.0 branch already, and will soon be integrated back to master. This means that as soon as you pull the master or 2.0 branch from creator, you've to also pull/compile a new Qt from qt.git/4.7 branch, and vice versa. You can also revert the commits inside creator locally: git revert -n b2cb2f6e git revert -n f0cb98463 Or you just disable the qmldesigner plugin in src/plugins/plugins.pro :) Kai -- Kai Koehne Software Engineer Nokia, Qt Development Frameworks Nokia gate5 GmbH Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B Umsatzsteueridentifikationsnummer: DE 812 845 193 Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
[Qt-creator] Problems building with Qt Creator
Hi all, I'm doing a simple login dialog and since I tried to use QTcpSockets I've been having some problems building my project. I receive these errors: logindialog.obj:: error: unresolved external symbol __declspec(dllimport) public: virtual __thiscall QTcpSocket::~QTcpSocket(void) (__imp_??1QTcpSocket@@u...@xz) referenced in function public: virtual __thiscall LoginDialog::~LoginDialog(void) (??1LoginDialog@@u...@xz) logindialog.obj:: error: unresolved external symbol __declspec(dllimport) public: __thiscall QTcpSocket::QTcpSocket(class QObject *) (__imp_??0QTcpSocket@@q...@pavqobject@@@Z) referenced in function public: __thiscall LoginDialog::LoginDialog(class QWidget *) (??0LoginDialog@@q...@pavqwidget@@@Z) debug\Backoffice.exe:: error: 2 unresolved externals I'm using Qt Creator in Windows XP 32 bits. From what I found online, similar problems were solved by reinstalling Qt, adding settings to the .obj file, disabling shadow building in the pro.user file... I tried the last two solutions, none worked. The best I got was no errors but the building stopped and consequently was not completed. Anyone know how to solve this. If anyone knows, please sahre it with me, because my work is getting delayed :| I will include the project files as attachments, since it's only a login dialog and there's only a few lines of code on it. Thanks in advance, João This message was sent using IMP, the Internet Messaging Program. #include logindialog.h #include ui_logindialog.h LoginDialog::LoginDialog(QWidget *parent) : QDialog(parent), ui(new Ui::LoginDialog) { ui-setupUi(this); ui-lineEdit_2-setEchoMode(QLineEdit::Password); } LoginDialog::~LoginDialog() { delete ui; } void LoginDialog::clearButtonClickedHandler() { ui-lineEdit-clear(); ui-lineEdit_2-clear(); ui-lineEdit_3-clear(); } void LoginDialog::connectToServer() { //QString server = ui-label_3-text(); //if(server==) //tcpSocket.connectToHost(QHostAddress::LocalHost, 6178); //else //tcpSocket.connectToHost(server, 6178); } #ifndef LOGINDIALOG_H #define LOGINDIALOG_H #include QDialog #include QtNetwork/QTcpSocket #include QtNetwork/QHostAddress #include QString namespace Ui { class LoginDialog; } class LoginDialog : public QDialog { Q_OBJECT public: explicit LoginDialog(QWidget *parent = 0); ~LoginDialog(); public slots: void clearButtonClickedHandler(); void connectToServer(); private: Ui::LoginDialog *ui; QTcpSocket tcpSocket; }; #endif // LOGINDIALOG_H logindialog.ui Description: application/designer #include QtGui/QApplication #include logindialog.h int main(int argc, char *argv[]) { QApplication a(argc, argv); LoginDialog w; w.show(); return a.exec(); } Backoffice.pro Description: Binary data ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Problems building with Qt Creator
Hi João! Please be aware that this mailing list is about developing Qt creator (not developing with Qt Creator:-). It would be appreciated, if you were to direct more generic Qt-related questions to the qt-interst mailing list instead. On 13.07.2010 14:05, ext j...@student.dei.uc.pt wrote: logindialog.obj:: error: unresolved external symbol __declspec(dllimport) public: virtual __thiscall QTcpSocket::~QTcpSocket(void) (__imp_??1QTcpSocket@@u...@xz) referenced in function public: virtual __thiscall LoginDialog::~LoginDialog(void) (??1LoginDialog@@u...@xz) These are linker errors: It fails to find the QtNetwork library (which contains the QTcpSocket class). From what I found online, similar problems were solved by reinstalling Qt, adding settings to the .obj file, disabling shadow building in the pro.user file... Don't trust the internet: Those suggestions are just voodoo and do not help with the issue:-) Try changing QT += core gui to QT += core gui network in your .pro file instead. Best Regards, Tobias -- Tobias Hunger Software Engineer Nokia, Qt Development Frameworks Nokia gate5 GmbH Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B Umsatzsteueridentifikationsnummer: DE 812 845 193 Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Problems building with Qt Creator
On 07/13/2010 02:05 PM, ext j...@student.dei.uc.pt wrote: Hi all, I'm doing a simple login dialog and since I tried to use QTcpSockets I've been having some problems building my project. I receive these errors: logindialog.obj:: error: unresolved external symbol __declspec(dllimport) public: virtual __thiscall QTcpSocket::~QTcpSocket(void) (__imp_??1QTcpSocket@@u...@xz) referenced in function public: virtual __thiscall LoginDialog::~LoginDialog(void) (??1LoginDialog@@u...@xz) logindialog.obj:: error: unresolved external symbol __declspec(dllimport) public: __thiscall QTcpSocket::QTcpSocket(class QObject *) (__imp_??0QTcpSocket@@q...@pavqobject@@@Z) referenced in function public: __thiscall LoginDialog::LoginDialog(class QWidget *) (??0LoginDialog@@q...@pavqwidget@@@Z) debug\Backoffice.exe:: error: 2 unresolved externals Your problem has nothing to do with Qt Creator. The symbols are not found because you are not linking in Qt's network libraries, which contain QTcpSocket. Add QT += network to your project file. Christian ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Problems building with Qt Creator
Actually this would have failed if you had been building without Qt Creator as well. Your project isn't linking to QtNetwork because you need to add network to the QT += line. /s/ Adam On Tue, Jul 13, 2010 at 7:05 AM, j...@student.dei.uc.pt wrote: Hi all, I'm doing a simple login dialog and since I tried to use QTcpSockets I've been having some problems building my project. I receive these errors: logindialog.obj:: error: unresolved external symbol __declspec(dllimport) public: virtual __thiscall QTcpSocket::~QTcpSocket(void) (__imp_??1QTcpSocket@@u...@xz) referenced in function public: virtual __thiscall LoginDialog::~LoginDialog(void) (??1LoginDialog@@u...@xz) logindialog.obj:: error: unresolved external symbol __declspec(dllimport) public: __thiscall QTcpSocket::QTcpSocket(class QObject *) (__imp_??0QTcpSocket@@q...@pavqobject@@@Z) referenced in function public: __thiscall LoginDialog::LoginDialog(class QWidget *) (??0LoginDialog@@q...@pavqwidget@@@Z) debug\Backoffice.exe:: error: 2 unresolved externals I'm using Qt Creator in Windows XP 32 bits. From what I found online, similar problems were solved by reinstalling Qt, adding settings to the .obj file, disabling shadow building in the pro.user file... I tried the last two solutions, none worked. The best I got was no errors but the building stopped and consequently was not completed. Anyone know how to solve this. If anyone knows, please sahre it with me, because my work is getting delayed :| I will include the project files as attachments, since it's only a login dialog and there's only a few lines of code on it. Thanks in advance, João This message was sent using IMP, the Internet Messaging Program. ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Problems building with Qt Creator
On Tue, Jul 13, 2010 at 02:30:00PM +0200, Hunger Tobias (Nokia-MS/Berlin) wrote: Please be aware that this mailing list is about developing Qt creator (not developing with Qt Creator:-). in fact, this list is currently both about development of and with creator. however, the topics should indeed be actually creator-related, i.e., qt and c++ problems which are also present if using only command line tools are off-topic. ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Problems building with Qt Creator
So, many thanks for all the quick (and useful) answers! :] And most important, I solved (and understood) the problem. Tobias, I really thought this list was the right one for these issues, next time I'll check qt-inte...@trolltech.com (I don't even knew that existed). Thanks again, João Quoting Coda Highland c...@bobandgeorge.com: Actually this would have failed if you had been building without Qt Creator as well. Your project isn't linking to QtNetwork because you need to add network to the QT += line. /s/ Adam On Tue, Jul 13, 2010 at 7:05 AM, j...@student.dei.uc.pt wrote: Hi all, I'm doing a simple login dialog and since I tried to use QTcpSockets I've been having some problems building my project. I receive these errors: logindialog.obj:: error: unresolved external symbol __declspec(dllimport) public: virtual __thiscall QTcpSocket::~QTcpSocket(void) (__imp_??1QTcpSocket@@u...@xz) referenced in function public: virtual __thiscall LoginDialog::~LoginDialog(void) (??1LoginDialog@@u...@xz) logindialog.obj:: error: unresolved external symbol __declspec(dllimport) public: __thiscall QTcpSocket::QTcpSocket(class QObject *) (__imp_??0QTcpSocket@@q...@pavqobject@@@Z) referenced in function public: __thiscall LoginDialog::LoginDialog(class QWidget *) (??0LoginDialog@@q...@pavqwidget@@@Z) debug\Backoffice.exe:: error: 2 unresolved externals I'm using Qt Creator in Windows XP 32 bits. From what I found online, similar problems were solved by reinstalling Qt, adding settings to the .obj file, disabling shadow building in the pro.user file... I tried the last two solutions, none worked. The best I got was no errors but the building stopped and consequently was not completed. Anyone know how to solve this. If anyone knows, please sahre it with me, because my work is getting delayed :| I will include the project files as attachments, since it's only a login dialog and there's only a few lines of code on it. Thanks in advance, João This message was sent using IMP, the Internet Messaging Program. ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator This message was sent using IMP, the Internet Messaging Program. ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator