Hi Jonas, This example might help you https://github.com/sailfishos/sdk-sdl-project-example .
BR, Martin ________________________________________ From: Devel [devel-boun...@lists.sailfishos.org] on behalf of Jonas Aaberg [c...@lithops.se] Sent: Tuesday, January 30, 2018 11:24 AM To: Zhang Bird Cc: Sailfish OS Developers Subject: Re: [SailfishDevel] "Unnamed application is not responding" - How to respond from C and python? Yes, some help would be great! Maybe create a wrapper util? Like -- sfos_wrap "python3 mypygame.py" -- Although, a flag in .desktop is probably prettier. BR, Jonas On Sat, 27 Jan 2018 16:47:48 +0800 Zhang Bird <0312birdzh...@gmail.com> wrote: > To be honest, "harbour-pygame_breakout.cpp" is uglycode. > I had the same question with you, and i didn't have a perfect > solution so i used uglycode :( > > I tried pyotherside <http://pyotherside.readthedocs.io/en/latest/> > with qml, but it not support for SDL2 currently. > So, we need some help ;) > > > 2018-01-27 14:58 GMT+08:00 Jonas Aaberg <c...@lithops.se>: > > > > > > > Hi, > > > > I tested two of my programs on SailfishOS: > > - texttv (https://bitbucket.org/gmelchett/texttv) written in > > python, using pygame_sdl2 > > - endlessman (https://bitbucket.org/gmelchett/endlessman/) written > > in C using SDL2 (Needs some CFLAG changes to compile on Xperia X > > due to gcc 4.x) > > > > Both works nicely on SailfishOS, except that I repeatedly get > > "Unnamed application is not responding" with a some seconds in > > between. Is there a way to respond from python and C? Or can I > > somehow mark my programs as "don't communicate" with them to make > > SailfishOS ignore them? Special option in .desktop? > > > > Or must there be some kind of wrapper, like this one: > > > > https://github.com/0312birdzhang/harbour-pygame_breakout/blob/master/src/ > > harbour-pygame_breakout.cpp > > > > > > Btw, I didn't manage to get it to compile, to me the error looks > > like the code is outdated (I'm completely green to QT and C++.. So > > some help then would be appreciated!) > > > > > > Best regards, > > Jonas > > _______________________________________________ > > SailfishOS.org Devel mailing list > > To unsubscribe, please send a mail to devel-unsubscribe@lists. > > sailfishos.org _______________________________________________ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org _______________________________________________ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org