Check your include directories to see if they contain any such filename, and either add it to your INCLUDES project file variable, or modify your QMAKESPEC *.conf file to use the correct path to Qt.
Obvious spotted problem:
-L/usr/share/qt3/lib
-I/usr/share/qt3/mkspecs/linux-g++
-I/usr/include/qt3
Yes, I realized that. My question is, how do I fix it? How I reroute it to qt4? Where is the QMAKESPEC *.conf file? And how do I check the include directories? Sorry for being so ignorant, but I really just started trying to work with qt yesterday....
I tried adding the following to ~/.bashrc:
export QTDIR=/usr/share/qt4
export QMAKESPEC=linux-g++
export QTDIR=/usr/share/qt4
export QMAKESPEC=linux-g++
To copy to clipboard, switch view to plain text mode
But then when I try qmake, it repeatedly outputs QFile:: open: No file name specified. And if I remove the QTDIR line, it tells me (because I removed qt3):
Could not find mkspecs for your QMAKESPEC after trying:
/usr/mkspecs
/usr/share/qt3/mkspecs
/usr/share/qt3
Could not find mkspecs for your QMAKESPEC after trying:
/usr/mkspecs
/usr/share/qt3/mkspecs
/usr/share/qt3
To copy to clipboard, switch view to plain text mode
Please help?
edit: I tried setting QMAKESPEC=/usr/share/qt4/mkspecs/linux-g++ but now I get:
Project LOAD(): Feature qt_config cannot be found.
Project LOAD(): Feature qt_config cannot be found.
To copy to clipboard, switch view to plain text mode
I hope I didn't screw something up when I removed qt3....
Bookmarks