To me, that output looks kind of strange because the headers in /usr/include/ should be the systems headers, C++ ones going in /usr/include/c++/n.m/ and generally work.
========
My system has both Qt 3.3.8 and Qt 4.3.1 installed and could compile and run the same test app fine with GNU Make and the systems compiler.
Code:
Terry@dixie$ vim main.cpp 2:59
Terry@dixie$ qmake-qt4 -project 2:59
Terry@dixie$ qmake-qt4 2:59
Terry@dixie$ ls 2:59
Makefile main.cpp qt4-helloworld.pro
Terry@dixie$ gmake 2:59
c++ -c -pipe -O2 -fno-strict-aliasing -pipe -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/share/qt4/mkspecs/freebsd-g++ -I. -I/usr/local/include/QtCore -I/usr/local/include/QtCore -I/usr/local/include/QtGui -I/usr/local/include/QtGui -I/usr/local/include -I. -I. -I. -I/usr/local/include -o main.o main.cpp
c++ -pthread -o qt4-helloworld main.o -L/usr/local/lib -lQtGui -L/usr/local/lib -lpng -lSM -lICE -pthread -pthread -lXi -lXrender -lXrandr -lXfixes -lXcursor -lXinerama -lfreetype -lfontconfig -lXext -lX11 -lQtCore -lz -lm -pthread -lgthread-2.0 -lglib-2.0 -liconv
Terry@dixie$ ls 3:00
Makefile main.o qt4-helloworld.pro
main.cpp qt4-helloworld*
Terry@dixie$ ./qt4-helloworld 3:00
Terry@dixie$ 3:00
Note that my ~/.shrc.local (which is sourced by my ~/.zshrc) sets the variables needed:
Code:
# QT: needed in order to compile QT programs...
export QMAKESPEC='freebsd-g++'
export QTDIR='/usr/X11R6/include/'
much like hydrapolic told you.
__________________
My
Journal
Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.