<div dir="ltr"><div><div><div><div>Hello, Johnny.<br></div>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.<br></div>Unfortunately I could not start it. It shows loading... and stays in this stage.<br><br></div></div><span id="result_box" class="" lang="en">I have also no idea how to debug, because I could not start it from Creator. There is no available cmake generator. <br><br></span>I was also not able to build rpm for emulator. I have got <span id="result_box" class="" lang="en"><span class="">Error: No</span> <span class="">compatible</span> <span class=""></span></span><span id="result_box" class="" lang="en"><span class=""><span id="result_box" class="" lang="en"><span class="">architecture</span> <span class="">found.</span></span></span> </span><br><div><span id="result_box" class="" lang="en"><span class=""></span></span> <div><span class="im"></span></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-12-10 23:37 GMT+01:00 JAZEIX Johnny <span dir="ltr"><<a href="mailto:jazeix@gmail.com" target="_blank">jazeix@gmail.com</a>></span>:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hi,<br>
<br>
you can find a first try here :
<a href="https://github.com/petitlapin/GCompris-qt/tree/sailfish" target="_blank">https://github.com/petitlapin/GCompris-qt/tree/sailfish</a><br>
<br>
Using the rpmvalidator tool, I'm still having errors :<br>
* rpm name (for now, I do a manual mv but we can automate it)<br>
* /bin/sh is a non allowed dependency (I think we can play with
the spec file for this point?)<br>
<br>
A warning telling the file is not stripped and an info telling the
rpath is empty.<br>
<br>
I did comment a lot of plugins so I hope they are not needed or
already installed...<br>
-----<br>
If someone wants to try (it's not working yet) :<br>
<br>
I had to install cmake in the mersdk virtualbox:<br>
sb2 -t SailfishOS-armv7hl -m sdk-install -R zypper install cmake<span class=""><br>
<br>
Then inside clone the gcompris repository:<br></span>
git clone <a href="https://github.com/petitlapin/GCompris-qt/tree/sailfish" target="_blank">https://github.com/petitlapin/GCompris-qt/tree/sailfish</a><span class=""><br>
<br>
To run the cmake:<br>
mkdir build_gcompris<br>
cd build_gcompris<br></span>
sb2 -t SailfishOS-armv7hl<span class=""><br>
cmake -DSAILFISHOS=1 -DBUILD_RPM=1 ../gcompris && make
package<br>
<br></span>
-----<br>
I didn't try to deploy it yet (need to find how to do it)...<span class="HOEnZb"><font color="#888888"><br>
<br>
Johnny</font></span><span class=""><br>
<br>
On 12/02/14 10:35, Alex Smirnoff wrote:<br>
</span></div><div><div class="h5">
<blockquote type="cite">
<div dir="ltr">
<div>
<div>Hi.<br>
</div>
If you send me CMake rules file you have created, I could also
try to test and tra to fix the issues.<br>
<br>
</div>
<div>Have you already branch from gcompris git?<br>
</div>
<br>
<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2014-12-02 10:19 GMT+01:00 Johnny
Jazeix <span dir="ltr"><<a href="mailto:jazeix@gmail.com" target="_blank">jazeix@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
thanks for pointing out the verification tool. I managed to
create a<br>
first rpm using CMake/CPack and it shows a lot of errors. I
didn't<br>
have the time to check them (there is the one about file
placements of<br>
rcc/translations which should not be in .../bin/ but
.../share/...,<br>
naming conventions to follow (described in the FAQ)).<br>
<br>
Johnny<br>
<br>
<br>
2014-12-01 22:18 GMT+01:00 <<a href="mailto:smirnoff.al@gmail.com" target="_blank">smirnoff.al@gmail.com</a>>:<br>
<div>
<div>> Hello.<br>
> .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.<br>
><br>
> I have not so much experience with cmake as with
qmake. So for me it is easy to create the .pro .<br>
><br>
> 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.<br>
><br>
> Rpm has nothing special. It is possible to install
any standard rpm, builded for armv7.<br>
> So rpmbuild should be enough.<br>
><br>
> The spec file could be created manually or using
yaml.<br>
><br>
> As about plugins, yes that was jpeg.<br>
> I wanted to add missing path, but the cmake syntax
yet be to learned.<br>
> If jpeg plugin is not needed, that is better. I
willl comment it out.<br>
><br>
> Alex.<br>
><br>
> Am Mo. Dez. 1 10:34:30 2014 GMT+0100 schrieb Johnny
Jazeix:<br>
>> Hi,<br>
>><br>
>> I took a first look this week-end.<br>
>><br>
>> My aim was to create the rpm without using
QtCreator. I first<br>
>> installed cmake on the mersdk virtual machine,
then run it and<br>
>> compile.<br>
>> Some little changes in the source code need to
be made (Sailfish uses<br>
>> Qt5.2). but I think the compilation is ok
(except I didn't try to use<br>
>> sailfish "sdk" where we can enable the
"booster").<br>
>><br>
>> I don't think we can deploy GCompris like that
but we need to create a rpm.<br>
>><br>
>> The rpm package structure looks like:<br>
>> /usr/bin/GCompris<br>
>> /usr/share/GCompris/{data}<br>
>><br>
>> Actually, we do (if I'm not wrong):<br>
>> bin/GCompris<br>
>> bin/{rcc/translations}/{data}<br>
>><br>
>> My next aim was to create the good folders and
put the files in them<br>
>> in order to create the rpm.<br>
>> Sailfish uses the .pro file from QtCreator but
we do not have this so<br>
>> I need to take a look at what it does and see
if we can bypass it (or<br>
>> create it on the fly).<br>
>> I didn't take a good look yet on how runs
rpmbuild and how it's called<br>
>> by QtCreator compiler.<br>
>><br>
>> Do you know which files are needed to run
rpmbuild and where to put<br>
>> the files ? Once we have it, the cmake rules
should be simple :<br>
>> - "make" to compile GCompris<br>
>> - "make sailfish_rpm" which will create the
folders, copy the files<br>
>> and run rpmbuild.<br>
>> ... ("make sailfish_deploy" if needed)<br>
>><br>
>> I also saw that CPack can create rpms<br>
>> (<a href="http://www.cmake.org/cmake/help/v3.1/module/CPackRPM.html" target="_blank">http://www.cmake.org/cmake/help/v3.1/module/CPackRPM.html</a>).
Do you<br>
>> know if the rpm packages needed by Sailfish are
the same as "regular"<br>
>> ones ?<br>
>><br>
>> ------<br>
>><br>
>> For your try, what are the troubles ? Are the
missing plugins the jpeg<br>
>> and xcb ones ? I also had this problem and I
just commented on the<br>
>> src/core/CMakeLists.txt for now...<br>
>><br>
>> When you have some time, can you describe me
what you did so maybe<br>
>> this could help me some way ?<br>
>><br>
>> Thanks,<br>
>><br>
>> Johnny<br>
>><br>
>> 2014-12-01 9:11 GMT+01:00 Alex Smirnoff <<a href="mailto:smirnoff.al@gmail.com" target="_blank">smirnoff.al@gmail.com</a>>:<br>
>> > Yes, Bruno, I have both the interest and
the knowledge. My goal to make it<br>
>> > possible.<br>
>> > If Johnny Jazeix create cmake rules, I
will try to build it and run it in an<br>
>> > emulator and on my Jolla phone.<br>
>> ><br>
>> > Till now I have made already the first
try, but got troubles with qt<br>
>> > plugins.<br>
>> ><br>
>> > Regards.<br>
>> > Alex.<br>
>> ><br>
>> > 2014-11-27 23:48 GMT+01:00 Bruno Coudoin
<<a href="mailto:bruno.coudoin@gcompris.net" target="_blank">bruno.coudoin@gcompris.net</a>>:<br>
>> >><br>
>> >><br>
>> >> Le 27/11/2014 22:09, Alex Smirnoff a
écrit :<br>
>> >><br>
>> >> Hello.<br>
>> >> I would like to know if there is any
activity already to run/port<br>
>> >> gcompris-qt on Sailfish OS?<br>
>> >><br>
>> >><br>
>> >> Hi,<br>
>> >><br>
>> >> You are the first to mention it on the
list and got not private request<br>
>> >> about that either.<br>
>> >><br>
>> >> Do you have the interest and the
knowledge to build GCompris on it?<br>
>> >><br>
>> >> Bruno.<br>
>> >><br>
>> >>
_______________________________________________<br>
>> >> GCompris-devel mailing list<br>
>> >> <a href="mailto:GCompris-devel@kde.org" target="_blank">GCompris-devel@kde.org</a><br>
>> >> <a href="https://mail.kde.org/mailman/listinfo/gcompris-devel" target="_blank">https://mail.kde.org/mailman/listinfo/gcompris-devel</a><br>
>> >><br>
>> ><br>
>> ><br>
>> ><br>
>> > --<br>
>> > Alex Smirnov<br>
>> ><br>
>> >
_______________________________________________<br>
>> > GCompris-devel mailing list<br>
>> > <a href="mailto:GCompris-devel@kde.org" target="_blank">GCompris-devel@kde.org</a><br>
>> > <a href="https://mail.kde.org/mailman/listinfo/gcompris-devel" target="_blank">https://mail.kde.org/mailman/listinfo/gcompris-devel</a><br>
>> ><br>
>><br>
><br>
> --<br>
> Gesendet von meinem Jolla<br>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
<div>
<div dir="ltr">Alex Smirnov<br>
</div>
</div>
</div>
</blockquote>
<br>
</div></div></div>
</blockquote></div><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">Alex Smirnov<br></div></div>
</div>