[GCompris-devel] gcompris [Sailfish OS]

Johnny Jazeix jazeix at gmail.com
Mon Jan 12 10:31:06 UTC 2015


Hi,

good news to know that QtQuickControls is already ported. But I can't
find QtQuickDialogs in the repo. I need to check on GCompris to see if
we can have a build without dialogs at least to test if we go further
(but we'll need to have it anyways).

Johnny


2015-01-07 23:31 GMT+01:00 Alex Smirnoff <smirnoff.al at gmail.com>:
> Was able to find time to search again.
> Fortunatelly it is already here. I mean qtquicks-controls port
> https://github.com/nemomobile/qtquickcontrols-nemo
>
> Rpm for Sailfish in version 5.2 could be installed from here.
> https://openrepos.net/content/locusf/glacier-homescreen
>
> This is used as part of another grate project.
> I am already in touch with developers.
> So we can go further from this point.
>
> Alex.
>
> 2014-12-18 22:31 GMT+01:00 <smirnoff.al at gmail.com>:
>>
>> Hello.
>> I have asked in Sailfish devel list about qtquick.controls.
>> There is no support at all in SailfishOS. There  also no packages exist in
>> Mer official repo.
>>
>> But never mind. I have no plan to run Gcompris on Jolla phone in  long
>> terms anyway.
>> The goal is Jolla tablet, wich has Intel architecture. And it is much more
>> like to have Controls out of the box on tablet.
>> But we will not have tablet sdk before June next year, so I will try to
>> build controls my self. Then we can decide  where to place it.
>>
>> Alex.
>>
>>
>> Am Di. Dez. 16 10:51:53 2014 GMT+0100 schrieb Johnny Jazeix:
>> > Hi,
>> >
>> > I managed to build the package for the emulator and run it (I pushed
>> > it really faslty this morning so I hope I don't forget anything in the
>> > repo). I have the same as you, it stays in "Loading" state. I ran it
>> > with gdb and saw some errors:
>> > QtQuick.Dialogs and QtQuick.Controls are not installed in the emulator
>> > (and probably on the phone).
>> >
>> > I see from
>> > https://github.com/sailfish-sdk/sdk-harbour-rpmvalidator/blob/1.18/allowed_qmlimports.conf
>> > that these imports are not handled by sailfishOS. I'm not sure on how
>> > to handle this... Do you know if we can install them (I did pkcon but
>> > all the Qt Qml packages seemed to be installed so they don't seem
>> > supported by sailfish)?
>> >
>> > An other solution I see would be to do separate qml code for sailfish
>> > but I don't like this idea at all... ("Write once, compile
>> > everywhere")
>> >
>> > For now, we should ask sailfishOS mailing list how can we handle these
>> > packages. Can you do it or do you want me to do it?
>> >
>> > For connecting to the emulator, I don't have what I did here but does
>> > the password asked is the one you enter in developer settings?
>> > Basically what I did is compile under mersdk vm, copy to the host and
>> > scp the file from my host to the nemo vm.
>> >
>> > Johnny
>> >
>> > 2014-12-15 15:10 GMT+01:00  <smirnoff.al at gmail.com>:
>> > > Yes, emulator has i486 arch.
>> > >  Armv7 target is for real device.
>> > > And yes, there are two ways to deploy   to emulator: Qtcreator and
>> > > scp.
>> > > I was unsuccessful in both for different reasons.
>> > >  I could connect to emulator from QtCreator, but could not run, as
>> > > there is no cmake generator available.
>> > >
>> > > If I try to ssh emulator, it ask me for password.
>> > >
>> > > I've started to learn cmake. I will try also to ask in sailfish
>> > > maillist about possibility to add cmake support for sailfish in qtcreator.
>> > > Because I think this should be the prefered way to use Sailfish IDE.
>> > >
>> > > I am also not sure if it possible to start any application in sailfish
>> > > os in full screen mode.
>> > >
>> > > Am Mo. Dez. 15 13:37:46 2014 GMT+0100 schrieb Johnny Jazeix:
>> > >> Hi,
>> > >>
>> > >> I will push soon a package that not fails at all (I managed to remove
>> > >> the /bin/sh dependency).
>> > >>
>> > >> I thought that the emulator used the armv7hl version ? I'm not sure
>> > >> on
>> > >> how to install the application in the emulator...
>> > >>
>> > >> Can I ssh using nemo
>> > >> (https://sailfishos.org/wiki/SDK_Beta_Qt5_Known_Issues#Emulator) and
>> > >> then scp the file and deploy it manually ? I didn't manage to add a
>> > >> terminal on the emulator...
>> > >>
>> > >> I hope the remaining problems don't come because of SailfishOS
>> > >> overlay
>> > >>
>> > >> (https://sailfishos.org/sailfish-silica/sailfish-application-lifecycle.html).
>> > >> I'll try making changes on gcompris to handle this to see if it
>> > >> causes
>> > >> the problem...
>> > >>
>> > >> Johnny
>> > >>
>> > >> 2014-12-14 23:55 GMT+01:00 Alex Smirnoff <smirnoff.al at gmail.com>:
>> > >> > Hello, Johnny.
>> > >> > Thank you for you work. I was able to build rpm for armv7hl. And
>> > >> > have
>> > >> > successfully installed it on my Jolla. Application icon is on the
>> > >> > place it
>> > >> > should be.
>> > >> > Unfortunately I could not start it. It shows loading...  and stays
>> > >> > in this
>> > >> > stage.
>> > >> >
>> > >> > I have also no idea how to debug, because I could not start it from
>> > >> > Creator.
>> > >> > There is no available cmake generator.
>> > >> >
>> > >> > I was also not able to build rpm for emulator. I have got  Error:
>> > >> > No
>> > >> > compatible architecture found.
>> > >> >
>> > >> > 2014-12-10 23:37 GMT+01:00 JAZEIX Johnny <jazeix at gmail.com>:
>> > >> >>
>> > >> >> Hi,
>> > >> >>
>> > >> >> you can find a first try here :
>> > >> >> https://github.com/petitlapin/GCompris-qt/tree/sailfish
>> > >> >>
>> > >> >> Using the rpmvalidator tool, I'm still having errors :
>> > >> >> * rpm name (for now, I do a manual mv but we can automate it)
>> > >> >> * /bin/sh is a non allowed dependency (I think we can play with
>> > >> >> the spec
>> > >> >> file for this point?)
>> > >> >>
>> > >> >> A warning telling the file is not stripped and an info telling the
>> > >> >> rpath
>> > >> >> is empty.
>> > >> >>
>> > >> >> I did comment a lot of plugins so I hope they are not needed or
>> > >> >> already
>> > >> >> installed...
>> > >> >> -----
>> > >> >> If someone wants to try (it's not working yet) :
>> > >> >>
>> > >> >> I had to install cmake in the mersdk virtualbox:
>> > >> >> sb2 -t SailfishOS-armv7hl -m sdk-install -R zypper install cmake
>> > >> >>
>> > >> >> Then inside clone the gcompris repository:
>> > >> >> git clone https://github.com/petitlapin/GCompris-qt/tree/sailfish
>> > >> >>
>> > >> >> To run the cmake:
>> > >> >> mkdir build_gcompris
>> > >> >> cd build_gcompris
>> > >> >> sb2 -t SailfishOS-armv7hl
>> > >> >> cmake -DSAILFISHOS=1 -DBUILD_RPM=1 ../gcompris && make package
>> > >> >>
>> > >> >> -----
>> > >> >> I didn't try to deploy it yet (need to find how to do it)...
>> > >> >>
>> > >> >> Johnny
>> > >> >>
>> > >> >> On 12/02/14 10:35, Alex Smirnoff wrote:
>> > >> >>
>> > >> >> Hi.
>> > >> >> If you send me CMake rules file you have created, I could also try
>> > >> >> to test
>> > >> >> and tra to fix the issues.
>> > >> >>
>> > >> >> Have you already branch from gcompris git?
>> > >> >>
>> > >> >>
>> > >> >>
>> > >> >> 2014-12-02 10:19 GMT+01:00 Johnny Jazeix <jazeix at gmail.com>:
>> > >> >>>
>> > >> >>> Hi,
>> > >> >>>
>> > >> >>> thanks for pointing out the verification tool. I managed to
>> > >> >>> create a
>> > >> >>> first rpm using CMake/CPack and it shows a lot of errors. I
>> > >> >>> didn't
>> > >> >>> have the time to check them (there is the one about file
>> > >> >>> placements of
>> > >> >>> rcc/translations which should not be in .../bin/ but
>> > >> >>> .../share/...,
>> > >> >>> naming conventions to follow (described in the FAQ)).
>> > >> >>>
>> > >> >>> Johnny
>> > >> >>>
>> > >> >>>
>> > >> >>> 2014-12-01 22:18 GMT+01:00  <smirnoff.al at gmail.com>:
>> > >> >>> > Hello.
>> > >> >>> > .pro is not QtCreator specific. This file is used by qmake, to
>> > >> >>> > generate
>> > >> >>> > classic  makefile. In this sense qmake does absolute the same
>> > >> >>> > as cmake does.
>> > >> >>> >
>> > >> >>> > I have not so much experience with cmake as with qmake. So for
>> > >> >>> > me it is
>> > >> >>> > easy to create the .pro .
>> > >> >>> >
>> > >> >>> > But if f we want to use cmake, the main candidate for
>> > >> >>> > investigation is
>> > >> >>> > .prf. It includes almost  all the libraries needed  on
>> > >> >>> > sailfishos for
>> > >> >>> > ordinary application.
>> > >> >>> >
>> > >> >>> > Rpm has nothing special. It is possible to install any standard
>> > >> >>> > rpm,
>> > >> >>> > builded for armv7.
>> > >> >>> > So rpmbuild should be enough.
>> > >> >>> >
>> > >> >>> > The spec file could be created manually or using yaml.
>> > >> >>> >
>> > >> >>> > As about plugins, yes that was jpeg.
>> > >> >>> > I wanted to add missing path, but the cmake syntax yet  be to
>> > >> >>> > learned.
>> > >> >>> > If jpeg plugin is not needed,  that is better. I willl comment
>> > >> >>> > it out.
>> > >> >>> >
>> > >> >>> > Alex.
>> > >> >>> >
>> > >> >>> > Am Mo. Dez. 1 10:34:30 2014 GMT+0100 schrieb Johnny Jazeix:
>> > >> >>> >> Hi,
>> > >> >>> >>
>> > >> >>> >> I took a first look this week-end.
>> > >> >>> >>
>> > >> >>> >> My aim was to create the rpm without using QtCreator. I first
>> > >> >>> >> installed cmake on the mersdk virtual machine, then run it and
>> > >> >>> >> compile.
>> > >> >>> >> Some little changes in the source code need to be made
>> > >> >>> >> (Sailfish uses
>> > >> >>> >> Qt5.2). but I think the compilation is ok (except I didn't try
>> > >> >>> >> to use
>> > >> >>> >> sailfish "sdk" where we can enable the "booster").
>> > >> >>> >>
>> > >> >>> >> I don't think we can deploy GCompris like that but we need to
>> > >> >>> >> create a
>> > >> >>> >> rpm.
>> > >> >>> >>
>> > >> >>> >> The rpm package structure looks like:
>> > >> >>> >> /usr/bin/GCompris
>> > >> >>> >> /usr/share/GCompris/{data}
>> > >> >>> >>
>> > >> >>> >> Actually, we do (if I'm not wrong):
>> > >> >>> >> bin/GCompris
>> > >> >>> >> bin/{rcc/translations}/{data}
>> > >> >>> >>
>> > >> >>> >> My next aim was to create the good folders and put the files
>> > >> >>> >> in them
>> > >> >>> >> in order to create the rpm.
>> > >> >>> >> Sailfish uses the .pro file from QtCreator but we do not have
>> > >> >>> >> this so
>> > >> >>> >> I need to take a look at what it does and see if we can bypass
>> > >> >>> >> it (or
>> > >> >>> >> create it on the fly).
>> > >> >>> >> I didn't take a good look yet on how runs rpmbuild and how
>> > >> >>> >> it's called
>> > >> >>> >> by QtCreator compiler.
>> > >> >>> >>
>> > >> >>> >> Do you know which files are needed to run rpmbuild and where
>> > >> >>> >> to put
>> > >> >>> >> the files ? Once we have it, the cmake rules should be simple
>> > >> >>> >> :
>> > >> >>> >> - "make" to compile GCompris
>> > >> >>> >> - "make sailfish_rpm" which will create the folders, copy the
>> > >> >>> >> files
>> > >> >>> >> and run rpmbuild.
>> > >> >>> >> ... ("make sailfish_deploy" if needed)
>> > >> >>> >>
>> > >> >>> >> I also saw that CPack can create rpms
>> > >> >>> >> (http://www.cmake.org/cmake/help/v3.1/module/CPackRPM.html).
>> > >> >>> >> Do you
>> > >> >>> >> know if the rpm packages needed by Sailfish are the same as
>> > >> >>> >> "regular"
>> > >> >>> >> ones ?
>> > >> >>> >>
>> > >> >>> >> ------
>> > >> >>> >>
>> > >> >>> >> For your try, what are the troubles ? Are the missing plugins
>> > >> >>> >> the jpeg
>> > >> >>> >> and xcb ones ? I also had this problem and I just commented on
>> > >> >>> >> the
>> > >> >>> >> src/core/CMakeLists.txt for now...
>> > >> >>> >>
>> > >> >>> >> When you have some time, can you describe me what you did so
>> > >> >>> >> maybe
>> > >> >>> >> this could help me some way ?
>> > >> >>> >>
>> > >> >>> >> Thanks,
>> > >> >>> >>
>> > >> >>> >> Johnny
>> > >> >>> >>
>> > >> >>> >> 2014-12-01 9:11 GMT+01:00 Alex Smirnoff
>> > >> >>> >> <smirnoff.al at gmail.com>:
>> > >> >>> >> > Yes, Bruno, I have both the interest and the knowledge. My
>> > >> >>> >> > goal to
>> > >> >>> >> > make it
>> > >> >>> >> > possible.
>> > >> >>> >> > If Johnny Jazeix create cmake rules, I will try to build it
>> > >> >>> >> > and run
>> > >> >>> >> > it in an
>> > >> >>> >> > emulator and on my Jolla phone.
>> > >> >>> >> >
>> > >> >>> >> > Till now I have made already the first try, but got troubles
>> > >> >>> >> > with qt
>> > >> >>> >> > plugins.
>> > >> >>> >> >
>> > >> >>> >> > Regards.
>> > >> >>> >> > Alex.
>> > >> >>> >> >
>> > >> >>> >> > 2014-11-27 23:48 GMT+01:00 Bruno Coudoin
>> > >> >>> >> > <bruno.coudoin at gcompris.net>:
>> > >> >>> >> >>
>> > >> >>> >> >>
>> > >> >>> >> >> Le 27/11/2014 22:09, Alex Smirnoff a écrit :
>> > >> >>> >> >>
>> > >> >>> >> >> Hello.
>> > >> >>> >> >> I would like to know if there is any activity already to
>> > >> >>> >> >> run/port
>> > >> >>> >> >> gcompris-qt on Sailfish OS?
>> > >> >>> >> >>
>> > >> >>> >> >>
>> > >> >>> >> >> Hi,
>> > >> >>> >> >>
>> > >> >>> >> >> You are the first to mention it on the list and got not
>> > >> >>> >> >> private
>> > >> >>> >> >> request
>> > >> >>> >> >> about that either.
>> > >> >>> >> >>
>> > >> >>> >> >> Do you have the interest and the knowledge to build
>> > >> >>> >> >> GCompris on it?
>> > >> >>> >> >>
>> > >> >>> >> >> Bruno.
>> > >> >>> >> >>
>> > >> >>> >> >> _______________________________________________
>> > >> >>> >> >> GCompris-devel mailing list
>> > >> >>> >> >> GCompris-devel at kde.org
>> > >> >>> >> >> https://mail.kde.org/mailman/listinfo/gcompris-devel
>> > >> >>> >> >>
>> > >> >>> >> >
>> > >> >>> >> >
>> > >> >>> >> >
>> > >> >>> >> > --
>> > >> >>> >> > Alex Smirnov
>> > >> >>> >> >
>> > >> >>> >> > _______________________________________________
>> > >> >>> >> > GCompris-devel mailing list
>> > >> >>> >> > GCompris-devel at kde.org
>> > >> >>> >> > https://mail.kde.org/mailman/listinfo/gcompris-devel
>> > >> >>> >> >
>> > >> >>> >>
>> > >> >>> >
>> > >> >>> > --
>> > >> >>> > Gesendet von meinem Jolla
>> > >> >>
>> > >> >>
>> > >> >>
>> > >> >>
>> > >> >> --
>> > >> >> Alex Smirnov
>> > >> >>
>> > >> >>
>> > >> >
>> > >> >
>> > >> > --
>> > >> > Alex Smirnov
>> > >>
>> > >
>> > > --
>> > > Gesendet von meinem Jolla
>> >
>>
>> --
>> Gesendet von meinem Jolla
>
>
>
>
> --
> Alex Smirnov


More information about the GCompris-devel mailing list