[Qt-creator] Cannot mix incompatible Qt libraries

Bryan Greenway rbgreenway at gmail.com
Mon Feb 16 19:03:36 CET 2009


 

Thanks for your responses!  I'll try to respond to all of them here.

 

I seem to have a partial Qt install in /usr/local/lib vs a more complete
(and apparently later version) in /usr/lib/.  I'm not quite sure how it got
there, but I'm sure I did it somehow.  Can I just delete the Qt files from
that directory?  I attached a screen shot showing the file listings in both
/usr/lib and /usr/local/lib.  

 

I've attached screen shots of the Tools>Options>Qt4 dialog.  I have a couple
of observations: 1-the path is not editable for System Qt and is set to
/usr.  2 - When I highlight System Qt in the list box, a not appears that
says "Found Qt version 4.4.3 using mkspec /usr/share/Qt4/mkspecs/linux-g++".
I looked in that directory, but only found two files: qmake.conf and
qplatformdefs.h.

 

It was suggested that I might have $QTDIR set.I'm sorry, but I'm new to
linux.  Is this an environment variable or something inside of Qtcreator?
How do I check/change this?

 

Here is the entire listing from Qtcreator's Compile output window after
performing a Clean All and Rebuild All on my project.  I don't see the
linker line that starts with "g++ -Wl,-z,origin" as suggested.

 

Thanks VERY much for your help!

Bryan

rbgreenway at gmail.com

 

 

Running build steps for project Block1...

Starting: /usr/bin/make clean -w 

make: Entering directory `/home/rbgreenway/Dev/Block1'

/usr/bin/make -f Makefile.Debug clean

make[1]: Entering directory `/home/rbgreenway/Dev/Block1'

rm -f debug/moc_dialog.cpp

rm -f ui_dialog.h

rm -f debug/main.o debug/dialog.o debug/positionecef.o debug/positiongeod.o
debug/drs_msg.o debug/moc_dialog.o

rm -f *~ core *.core

make[1]: Leaving directory `/home/rbgreenway/Dev/Block1'

/usr/bin/make -f Makefile.Release clean

make[1]: Entering directory `/home/rbgreenway/Dev/Block1'

rm -f release/moc_dialog.cpp

rm -f ui_dialog.h

rm -f release/main.o release/dialog.o release/positionecef.o
release/positiongeod.o release/drs_msg.o release/moc_dialog.o

rm -f *~ core *.core

make[1]: Leaving directory `/home/rbgreenway/Dev/Block1'

make: Leaving directory `/home/rbgreenway/Dev/Block1'

Exited with code 0.

Creating gdb macros library...

Starting: /usr/bin/qmake-qt4 /home/rbgreenway/Dev/Block1/Block1.pro -spec
/usr/share/qt4/mkspecs/linux-g++ -r CONFIG+=debug_and_release CONFIG+=debug 

Exited with code 0.

Starting: /usr/bin/make debug -w 

make: Entering directory `/home/rbgreenway/Dev/Block1'

/usr/bin/make -f Makefile.Debug

make[1]: Entering directory `/home/rbgreenway/Dev/Block1'

/usr/bin/uic-qt4 dialog.ui -o ui_dialog.h

Warning: name layoutWidget is already used

Warning: name layoutWidget is already used

Warning: name layoutWidget is already used

Warning: name layoutWidget is already used

Warning: name layoutWidget is already used

Warning: name layoutWidget is already used

Warning: name layoutWidget is already used

Warning: name layoutWidget is already used

Warning: name layoutWidget is already used

'' isn't a valid widget

g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB
-DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork
-I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui
-I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXml
-I/usr/include/qt4/QtSql -I/usr/include/qt4/QtSql -I/usr/include/qt4 -Idebug
-I. -o debug/main.o main.cpp

g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB
-DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork
-I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui
-I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXml
-I/usr/include/qt4/QtSql -I/usr/include/qt4/QtSql -I/usr/include/qt4 -Idebug
-I. -o debug/dialog.o dialog.cpp

g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB
-DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork
-I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui
-I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXml
-I/usr/include/qt4/QtSql -I/usr/include/qt4/QtSql -I/usr/include/qt4 -Idebug
-I. -o debug/positionecef.o positionecef.cpp

g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB
-DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork
-I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui
-I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXml
-I/usr/include/qt4/QtSql -I/usr/include/qt4/QtSql -I/usr/include/qt4 -Idebug
-I. -o debug/positiongeod.o positiongeod.cpp

g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB
-DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork
-I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui
-I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXml
-I/usr/include/qt4/QtSql -I/usr/include/qt4/QtSql -I/usr/include/qt4 -Idebug
-I. -o debug/drs_msg.o drs_msg.cpp

/usr/bin/moc-qt4 -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB
-DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I.
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtNetwork
-I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml
-I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtSql
-I/usr/include/qt4 -Idebug -I. dialog.h -o debug/moc_dialog.cpp

g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB
-DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork
-I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui
-I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXml
-I/usr/include/qt4/QtSql -I/usr/include/qt4/QtSql -I/usr/include/qt4 -Idebug
-I. -o debug/moc_dialog.o debug/moc_dialog.cpp

g++ -Wl,--no-undefined -o Block1 debug/main.o debug/dialog.o
debug/positionecef.o debug/positiongeod.o debug/drs_msg.o debug/moc_dialog.o
-L/usr/lib -lQtSql -lQtXml -lQtGui -lQtNetwork -lQtCore -lpthread

make[1]: Leaving directory `/home/rbgreenway/Dev/Block1'

make: Leaving directory `/home/rbgreenway/Dev/Block1'

Exited with code 0. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090216/d6908904/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot-Options.png
Type: image/png
Size: 40270 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090216/d6908904/attachment.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot-1.png
Type: image/png
Size: 482094 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090216/d6908904/attachment-0001.png 


More information about the Qt-creator-old mailing list