I have Qtversion 3.3.4 and Qt version 4.1.2 installed. qmake produce only trash: For testing, I change th directory to the first tutorial from the qt examples. qmake -v QMake version: 2.00a Using Qt version 4.1.2 in /usr/lib/qt4 /usr/bin/qmake is from qt4, but the produced Makefile is only trash. Qt3 and QT4 Path are mixed. The Includes are QT3, libs QT4. Here only the first and some other importand lines: #########################################################################$ # Makefile for building: t1 # Generated by qmake (2.00a) (Qt 4.1.2) on: Wed May 3 02:11:10 2006 # Project: t1.pro # Template: app # Command: /usr/qt/3/bin/qmake -unix -o Makefile t1.pro #########################################################################$ INCPATH = -I/usr/share/doc/qt-4.1.2/mkspecs/linux-g++ -I. -I/usr/qt/3/include -I/usr/include/freetype2 -I.moc/release-shared-mt -I/usr/include -I. LIBS = $(SUBLIBS) -L/usr/lib/mysql -L/usr/qt/3/lib -L/usr/lib -lQtGui -lQtCore -ldl -lSM -lICE -lpthread -lGLU -lGL QMAKE = /usr/qt/3/bin/qmake Why /usr/qt/3/bin/qmake ??? I've called /usr/bin/qmake thats from version 4.1.2 Why qt3 includes??? Why QT4 libs but qt3libs search path??? QT3 an QT4 are both unusable, not a nice situation for developing.... http://bugs.gentoo.org/show_bug.cgi?id=130834 is the same problem...
*** Bug 132074 has been marked as a duplicate of this bug. ***
*** Bug 132073 has been marked as a duplicate of this bug. ***
*** Bug 132075 has been marked as a duplicate of this bug. ***
I don't understand what you're trying to do, but if you explicitly want to run Qt3's qmake, just call "/usr/qt/3/bin/qmake". if you want to run Qt4's, call /usr/bin/qmake. Doesn't seem that difficult.
I don't want to run /usr/qt/3/bin/qmake. If I run /usr/bin/qmake, it produce unusable Makefiles with mixed QT3 and QT4 parts.
If I do the same on my system, I get: ############################################################################# # Makefile for building: t1 # Generated by qmake (2.00a) (Qt 4.1.2) on: Wed May 3 08:05:36 2006 # Project: t1.pro # Template: app # Command: /usr/bin/qmake -unix -o Makefile t1.pro ############################################################################# INCPATH = -I/usr/share/doc/qt-4.1.2/mkspecs/linux-g++ -I. -I/usr/include/q t4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. QMAKE = /usr/bin/qmake So something else must be going on on your system.
What is your QTDIR set as?
default $QTDIR is /usr/qt/3, but I export it to /usr/qt/4
That is incorrect. There is no /usr/qt/4 in existance, and Qt4 does not use the QTDIR variable. Leave it set to /usr/qt/3
The QTDIR is not the problem. That's something other
can't reproduce. I have to assume you've modified something on your system, since nobody else seems to have this problem.
I have the same Problem with QT-3.3.6 and QT-4.2.1 on a new fresh system (without any modifications...)