On 04/30/2011 07:36 PM, Baho Utot wrote:
On 04/30/2011 05:57 PM, David C. Rankin wrote:
../include/qmap.h:607:13: error: ‘ptrdiff_t’ does not name a type kernel/qapplication_x11.cpp: In member function ‘int QApplication::x11ProcessEvent(XEvent*)’:
Yep, your right,
I used your PKGBUILD and it worked fine with gcc 4.6 -- so the answer is clear -- it's me again :p
'make subtools' seems to be the key. I'll have to do more studying to understand the difference between the old way of using:
cd ${QTDIR} make -C qmake || return 1 cd ${QTDIR}/plugins/src/sqldrivers/mysql ${QTDIR}/bin/qmake -o Makefile "INCPATH+=/usr/include/mysql" "LIBS+=-L/usr/lib/mysql -lmysqlclient" mysql.pro cd ${QTDIR}/plugins/src/sqldrivers/psql ${QTDIR}/bin/qmake -o Makefile "INCPATH+=/usr/src/include /usr/include/postgresql/server" "LIBS+=-L/usr/lib -lpq" psql.pro
cd ${QTDIR} # fix the broken makefiles #sed -i 's|[[:space:]]*strip.*doc/html.*$|#|g' src/Makefile make || return 1
At least we know Qt3 is good with gcc 4.6. I'll have more time tomorrow to look at it.