The patch I submitted to fix the include order problem was wrong. It put the 
Qt4 include directories after the "platform" directories. On FreeBSD this
consists of /usr/local/include, which inadvertently puts Qt3 includes before 
Qt4.

Here is a new patch against 4.0.0. I still need to finish testing this. If it 
all works fine, I'll check it into area51. I'll also test this on Linux, and 
try to get it in for 4.0.2.

-- 
David Johnson
--- ../cmake/modules/FindKDE4Internal.cmake.orig   2008-02-01 22:39:59.000000000 +0000
+++ ../cmake/modules/FindKDE4Internal.cmake        2008-02-01 22:40:07.000000000 +0000
@@ -1024,7 +1024,7 @@

 #add the found Qt and KDE include directories to the current include path
 #the ${KDE4_INCLUDE_DIR}/KDE directory is for forwarding includes, eg. #include <KMainWindow>
-set(KDE4_INCLUDES ${QT_INCLUDES} ${KDE4_INCLUDE_DIR} ${KDE4_INCLUDE_DIR}/KDE ${_KDE4_PLATFORM_INCLUDE_DIRS} )
+set(KDE4_INCLUDES ${KDE4_INCLUDE_DIR} ${KDE4_INCLUDE_DIR}/KDE ${QT_INCLUDES} ${_KDE4_PLATFORM_INCLUDE_DIRS} )

 set(KDE4_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS} -DQT_NO_STL -DQT_NO_CAST_TO_ASCII -D_REENTRANT -DKDE_DEPRECATED_WARNINGS )
_______________________________________________
kde-freebsd mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-freebsd

Reply via email to