[GCompris-devel] gcompris [Sailfish OS]
Alex Smirnoff
smirnoff.al at gmail.com
Sun Dec 14 22:55:17 UTC 2014
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/gcompris-devel/attachments/20141214/ad0e5c30/attachment.html>
More information about the GCompris-devel
mailing list