René Pavlík wrote: > Niels Roest wrote: > >> libdirectfb.so contains both master and slave code. >> >> The first DirectFB application that is started will detect that it is >> the first, and it will create the shared memory object and initialize >> the 'fusion' library. All the next applications will find this shared >> memory object and therefore assume that they are slaves. >> >> The Master is the only application that is able to control non-shareable >> resources. e.g. The graphics drivers must make sure that, if a slave >> wants to access such a resource, the access request is passed to the >> master application, which will perform the access. >> > > Hi, > > I have also difficulties running multiple applications. Can you give me a hint > what not to forget or point me to a working demo? > > I compiled DirectFB in Multi-process core and every time I wanted to run the > second application (which actually run as single), it segfault'ed, ended, or > anything else but not worked. Therefore I tried also the SaWMan and again: I > was > able to run the daemon (application manager) and then I wanted to execute > those > 2 given example slave apps and the first ran ok, but the second one ended > immediately. > > I'm using the SH7723 gfx driver. > > Well, a segfault can be caused by any number of reasons. It sounds like your 2 slave apps do not like each other.
If you for instance try df_window, this will run twice (or any number of times) without a problem, does that work for you? >> The DirectFB-API is unaware of master/slave, so a user of DirectFB does >> not need to know the difference. >> > > Here, how can one specify the region (playground) for the first app's output > and > for the second app's output if they are unaware? This means, how is the demo > with 3 df_andi apps running in "windows" (separate rectangles) being done? > > The little trick here is called 'force-windowed', a DirectFB option, which forces primarly layers to be converted into windows. The exact representation depends on the layout engine of your window manager plugin, or of your window manager. > Thanks for help. > > Best regards, > Rene Pavlik > > -- .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" _______________________________________________ directfb-users mailing list directfb-users@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users