[Qt] Qt Embedded
Terry Kemp
klc at klc.net.nz
Wed Oct 1 22:03:43 CEST 2008
On Wed, 2008-10-01 at 18:43 +0200, Den Jean wrote:
> On Wednesday 01 October 2008 03:11:28 Terry Kemp wrote:
> > qtx11waitforwindowmanager is in the x86_64 .so but not the arm .so
> > I assume this is correct with QTOPIA defined.
>
> I only define LINUX and QTOPIA, Qt has much more refinement.
>
> This is one is available if Q_WS_X11 is defined
>
> #if defined(Q_WS_X11)
> extern void qt_x11_wait_for_window_manager(QWidget *mainWin);
> qt_x11_wait_for_window_manager(mainWin);
> #endif
>
> Here are my current platform definitions:
>
> "BINUX" = ["Q_WS_X11","Q_OS_LINUX","Q_OS_UNIX"]
> "MSWINDOWS" = ["Q_WS_WIN"]
> "DARWIN" = ["Q_WS_MAC","Q_OS_UNIX"]
> "QTOPIA" = ["Q_WS_QWS", "Q_OS_LINUX","Q_OS_UNIX", "QT_NO_SESSIONMANAGER"]
>
> So if you compile with the define QTOPIA and not with BINUX then it should not be there.
>
> for the lcl code: use BINUX(qt4.pas) and not LINUX(fpc) to surround these calls.
>
In qt4.pas BINUX gets defined...
{$IF DEFINED(LINUX) or DEFINED(FREEBSD) or DEFINED(NETBSD)}
{$DEFINE BINUX}
QtIntf = 'libqt4intf.so';
{$ENDIF}
So is LINUX defined automatically (predefined somewhere?) if using
arm-linux and if so is BINUX defined as well as QTOPIA if I compile with
-dQTOPIA (for lcl)
More information about the Qt
mailing list