[Qt-creator] Cannot mix incompatible Qt libraries
Bryan Greenway
rbgreenway at gmail.com
Sun Feb 15 07:41:11 CET 2009
I've suddenly come across this fatal error "Cannot mix incompatible Qt
libraries" under the following situation:
Qtcreator-0.9.2
Ubuntu 8.10
Before installing qtcreator, I had a previous version of Qt 4.4.3 (I think)
on my system that I was attempting to use with CodeBlocks.then Eclipse. I
had no success with CodeBlocks and some success with Eclipse. Then I found
qtcreator and installed it. Everything was going great!
Programmed/compiled/debugged/run all worked fine..that is until I started
trying to do some tcp/ip programming with Qt network stuff. I now get this
fatal error when I make a call to:
socket.connectToHost("localhost", 1002); // where socket is a QTcpSocket
I've included in the header file:
#include <QtNetwork>
#include <QTcpSocket>
#include <QHostAddress>
I noticed that with the qtcreator install, there are some files that appear
to be part of Qt 4.5, and the About box in qtcreator says that it was "Based
on Qt 4.5.0". So, am I getting a conflict between my Qt 4.4.x version and
Qt 4.5.0??
Don't know if it's related, but I thought that maybe I might have a path
problem. I checked under Tools>Options>Qt4. The only listing there is:
Name = System Qt , Path = /usr and this does not allow me to edit the path
(although I can add others). Does this look ok?
Thanks for any help.
Bryan
rbgreenway at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090215/c2139fb0/attachment.html
More information about the Qt-creator-old
mailing list