[Qt] My account and problems with lazarus/ qt embedded

Vincent Snijders vsnijders at vodafonevast.nl
Mon Jan 5 22:46:19 CET 2009

Den Jean schreef:
> On Sunday 04 January 2009 14:18:53 zeljko wrote:
>> This is a bug in qtwidgets IFDEF's (it's linux but should be something else
>> (BINUX ? Den ?). Please fill bugreport.
> no bug, you already solved it some time ago by adding IFNDEF QTOPIA.
> I define BINUX in qt4.pas, but the scope of that define remains there.
> svn blame qtwidgets.pas | grep -i -B3 waitfor
>  16818     zeljko   {$IFNDEF QTOPIA}
>  16645     zeljko   {$IFDEF LINUX}
>  16645     zeljko   if QWidget_isWindow(Widget) then
>  16645     zeljko     QtX11WaitForWindowManager(Widget);
> Your IFDEF linux is a bit too strict, the *BSD are in the cold that way.
> But if you would use BINUX, you would need to add -dBINUX on linux or *BSD to 
> compile lazarus/lcl
> But the best solution is perhaps, if you would extend qtdefines.inc to include 
> the definition of BINUX using the fpc defines LINUX and BSD (copy 
> setup of qt4.pas)

I don't know if this is relevant, but AFAIK, BSD is also defined for 
darwin (Mac OS X).


More information about the Qt mailing list