Thiago Macieira wrote:
> Paul Floyd wrote:
> 
>>>Time permitting, I'll also give OpenSolaris/solaris-cc, freebsd-g++
>>>and linux-icc a whirl.
>>
>>Well, freebsd-g++ didn't fare too well:
>>
>>[FreeBSD 7.1-RELEASE patch 2]
>>
>>cd src/gui/ && make -f Makefile
>>g++ [snip] -x c++-header -c kernel/qt_gui_pch.h -o
>>.pch/release-shared/QtGui.gch/c++
>>In file included from ../../include/QtCore/qatomic_arch.h:1,
>>...
>>../../include/QtCore/../../src/corelib/arch/qatomic_arch.h:83:4: error:
>>#error "Qt has not been ported to this architecture"
> 
> 
> QtCore compiled but not QtGui?

Yes, QtCore, QtXml and QtNetwork all built.

> What architecture got defined in qconfig.h (src/corelib/global) ? Search 
> for QT_ARCH_* defines.

I guess this is the relevant bit.

/* Machine Architecture */
#ifndef QT_BOOTSTRAPPED
# define QT_ARCH_I386
#else
# define QT_ARCH_I386
#endif

It looks correct to me.

Examining the preprocessed code, I see

# 1 "../../include/QtCore/qatomic_arch.h" 1
# 1 "../../include/QtCore/../../src/corelib/arch/qatomic_arch.h" 1
# 40 "../../include/QtCore/../../src/corelib/arch/qatomic_arch.h"
QT_BEGIN_HEADER

# 1 "../../include/QtCore/qglobal.h" 1
# 43 "../../include/QtCore/../../src/corelib/arch/qatomic_arch.h" 2
# 86 "../../include/QtCore/../../src/corelib/arch/qatomic_arch.h"
QT_END_HEADER
# 1 "../../include/QtCore/qatomic_arch.h" 2
# 203 "../../include/QtCore/../../src/corelib/thread/qbasicatomic.h" 2
# 1 "../../include/QtCore/qbasicatomic.h" 2
# 42 "../../include/QtCore/../../src/corelib/thread/qatomic.h" 2


Other than using QT_BEGIN_HEADER before including QtCore/qglobal.h 
(where QT_BEGIN_HEADER is defined) then I can't see any problem. 
QT_ARCH_I386 doesbn't get undefined anywhere.

Perhaps this is an issue with g++ on FreeBSD (g++ (GCC) 4.2.1 20070719 
[FreeBSD])

I'll do a few more tests (to make sure qconfig.h is being included 
before qatomic_arch.h) after I've updated ports.

Paul
-- 
Paul Floyd                 http://paulf.free.fr

_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback

Reply via email to