QT_ARCH_ARM
-
Hi
I'm trying to compile my app under a raspberry pi board using latest qt 4.8.6 and 5.3.0... so far everythings works fine and I have just an error due to a qreal pointer when linking to an external library... the question is: can I trust on Q_ARCH_ARM in order to change some code at compile time ?
if I'm not wrong, Q_ARCH_ARM is defined on ARM but undocumented...
best regards Giampaolo
-
Hi,
I would say no, I can't even find that define however, you can use
@#ifdef arm@
or in Qt 5 there's seem to be Q_PROCESSOR_ARM
Hope it helps
-
Hi
thanks for your help...
sorry... it's QT_ARCH_ARM and not Q_ARCH_ARM...
in qt4 it is checked in src/corelib/global/qglobal.h...
...
#elif defined(QT_NO_FPU) || defined(QT_ARCH_ARM) || defined(QT_ARCH_WINDOWSCE) || defined(QT_ARCH_SYMBIAN)
...but you are right, it seems never defined...
Giampaolo