Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Qt program with GUI issue
@ 2011-10-26 12:59 Yegor Yefremov
  2011-10-26 15:01 ` Yegor Yefremov
  2011-10-26 15:17 ` Eric Bénard
  0 siblings, 2 replies; 5+ messages in thread
From: Yegor Yefremov @ 2011-10-26 12:59 UTC (permalink / raw)
  To: buildroot

I'm trying to get my program integrated into BR. So far I managed to successfully build and install it, but as soon as I run it (with -qws option) I get trouble:

GUI will be shown, but at the same time background/wallpaper goes green (I made nothing to make this happen). When I move my mouse, the pointer seems to draw over GUI, so that real gray background will show up at the places where mouse pointer went through.

Is there any simple QT based project I could try to integrate as a reference? I tried CuteCom, but it is fully Qt4 compatible.

Another issue if I don't supply -qws param, I get following error messages:

QWSSocket::connectToLocalFile could not connect:: No such file or directory

My system:
ARM Cortex-A8
WindowsManager: Fluxbox

Yegor

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] Qt program with GUI issue
  2011-10-26 12:59 [Buildroot] Qt program with GUI issue Yegor Yefremov
@ 2011-10-26 15:01 ` Yegor Yefremov
  2011-10-26 15:19   ` Will Wagner
  2011-10-26 15:17 ` Eric Bénard
  1 sibling, 1 reply; 5+ messages in thread
From: Yegor Yefremov @ 2011-10-26 15:01 UTC (permalink / raw)
  To: buildroot

Am 26.10.2011 14:59, schrieb Yegor Yefremov:
> I'm trying to get my program integrated into BR. So far I managed to successfully build and install it, but as soon as I run it (with -qws option) I get trouble:
> 
> GUI will be shown, but at the same time background/wallpaper goes green (I made nothing to make this happen). When I move my mouse, the pointer seems to draw over GUI, so that real gray background will show up at the places where mouse pointer went through.
> 
> Is there any simple QT based project I could try to integrate as a reference? I tried CuteCom, but it is fully Qt4 compatible.
> 
> Another issue if I don't supply -qws param, I get following error messages:
> 
> QWSSocket::connectToLocalFile could not connect:: No such file or directory
> 
> My system:
> ARM Cortex-A8
> WindowsManager: Fluxbox

I managed to get RenameX (http://dev.creabox.biz/RenameX/index.php) compiled, but when started I get the same result. 

So I think it has something to do with an interface between Qt and X11. Can someone, who managed to create/use a Qt based graphical application, share his/her experience/.config?

Regards,
Yegor

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] Qt program with GUI issue
  2011-10-26 12:59 [Buildroot] Qt program with GUI issue Yegor Yefremov
  2011-10-26 15:01 ` Yegor Yefremov
@ 2011-10-26 15:17 ` Eric Bénard
  1 sibling, 0 replies; 5+ messages in thread
From: Eric Bénard @ 2011-10-26 15:17 UTC (permalink / raw)
  To: buildroot

Hi Yegor,

Le 26/10/2011 14:59, Yegor Yefremov a ?crit :
> I'm trying to get my program integrated into BR. So far I managed to
> successfully build and install it, but as soon as I run it (with -qws
> option) I get trouble:
>
> GUI will be shown, but at the same time background/wallpaper goes green (I
> made nothing to make this happen). When I move my mouse, the pointer seems
> to draw over GUI, so that real gray background will show up at the places
> where mouse pointer went through.
>
> Is there any simple QT based project I could try to integrate as a
> reference? I tried CuteCom, but it is fully Qt4 compatible.
>
> Another issue if I don't supply -qws param, I get following error
> messages:
>
> QWSSocket::connectToLocalFile could not connect:: No such file or
> directory
>
> My system: ARM Cortex-A8 WindowsManager: Fluxbox
>
you are trying to run a qtembedded project (with its own graphic server)
in a windows manager running under X : this means both write to the
framebuffer leading to your problem (qt draws the interface and the green
background and when you move the mouse X refresh the area with it's content
(and thus fluxbox's one)).

The solution is :
- either to kill X and run your application with qws then that will work (you
may need to add some parameters in the environment variable QWS_MOUSE_PROTO 
for the input devices)
- either to compile your application with qt for X and run it under X (but I
think buildroot doesn't support QT for X so you are on your own here)

Eric

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] Qt program with GUI issue
  2011-10-26 15:01 ` Yegor Yefremov
@ 2011-10-26 15:19   ` Will Wagner
  2011-10-27 13:26     ` Yegor Yefremov
  0 siblings, 1 reply; 5+ messages in thread
From: Will Wagner @ 2011-10-26 15:19 UTC (permalink / raw)
  To: buildroot

On 26/10/2011 16:01, Yegor Yefremov wrote:
> Am 26.10.2011 14:59, schrieb Yegor Yefremov:
>> I'm trying to get my program integrated into BR. So far I managed to successfully build and install it, but as soon as I run it (with -qws option) I get trouble:
>>
>> GUI will be shown, but at the same time background/wallpaper goes green (I made nothing to make this happen). When I move my mouse, the pointer seems to draw over GUI, so that real gray background will show up at the places where mouse pointer went through.
>>
>> Is there any simple QT based project I could try to integrate as a reference? I tried CuteCom, but it is fully Qt4 compatible.
>>
>> Another issue if I don't supply -qws param, I get following error messages:
>>
>> QWSSocket::connectToLocalFile could not connect:: No such file or directory
>>
>> My system:
>> ARM Cortex-A8
>> WindowsManager: Fluxbox
>

Hi Yegor,

It sounds like you are trying to run a Qt embedded app with the X window 
system. This is not possible, Qt embedded works without X using the 
frame buffer directly. The reason you have to use -qws when running your 
app is that specifies that the process should act as a window server. It 
is this window server that is filling the screen green (This is the qws 
default) and the mouse draw error will be it interfering with X.

You either should remove X from your target or you need to build the X11 
version of Qt. Although cross compiling Qt for X11 is not officially 
supported (in both Qt and buildroot) I have got it working (for x86 at 
least) and submitted a patch a few weeks back. Got some feedback on it 
that suggested it need changes for others archs but it should be a good 
starting point. If you need more help getting the X11 cross compile 
working I'll try to help.

Will


-- 
------------------------------------------------------------------------
Will Wagner                                     will_wagner at carallon.com
Development Manager                      Office Tel: +44 (0)20 7371 2032
Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA
------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] Qt program with GUI issue
  2011-10-26 15:19   ` Will Wagner
@ 2011-10-27 13:26     ` Yegor Yefremov
  0 siblings, 0 replies; 5+ messages in thread
From: Yegor Yefremov @ 2011-10-27 13:26 UTC (permalink / raw)
  To: buildroot

Am 26.10.2011 17:19, schrieb Will Wagner:
> On 26/10/2011 16:01, Yegor Yefremov wrote:
>> Am 26.10.2011 14:59, schrieb Yegor Yefremov:
>>> I'm trying to get my program integrated into BR. So far I managed to successfully build and install it, but as soon as I run it (with -qws option) I get trouble:
>>>
>>> GUI will be shown, but at the same time background/wallpaper goes green (I made nothing to make this happen). When I move my mouse, the pointer seems to draw over GUI, so that real gray background will show up at the places where mouse pointer went through.
>>>
>>> Is there any simple QT based project I could try to integrate as a reference? I tried CuteCom, but it is fully Qt4 compatible.
>>>
>>> Another issue if I don't supply -qws param, I get following error messages:
>>>
>>> QWSSocket::connectToLocalFile could not connect:: No such file or directory
>>>
>>> My system:
>>> ARM Cortex-A8
>>> WindowsManager: Fluxbox
>>
>
> Hi Yegor,
>
> It sounds like you are trying to run a Qt embedded app with the X window system. This is not possible, Qt embedded works without X using the frame buffer directly. The reason you have to use -qws when running your app is that specifies that the process should act as a window server. It is this window server that is filling the screen green (This is the qws default) and the mouse draw error will be it interfering with X.
>
> You either should remove X from your target or you need to build the X11 version of Qt. Although cross compiling Qt for X11 is not officially supported (in both Qt and buildroot) I have got it working (for x86 at least) and submitted a patch a few weeks back. Got some feedback on it that suggested it need changes for others archs but it should be a good starting point. If you need more help getting the X11 cross compile working I'll try to help.

Thank you for explanations. Now I see the difference. So I got it running in Qt Embedded mode.

As to X11, I tried your patch, but it produces compiler errors for ARM so it really have to be reworked to properly support other platforms. As for now I'll try to finish my testing app first and then we could fix the patch.

Yegor

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-10-27 13:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-26 12:59 [Buildroot] Qt program with GUI issue Yegor Yefremov
2011-10-26 15:01 ` Yegor Yefremov
2011-10-26 15:19   ` Will Wagner
2011-10-27 13:26     ` Yegor Yefremov
2011-10-26 15:17 ` Eric Bénard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox