Re: [SailfishDevel] installing extra files via rpm

2013-11-22 Thread Artem Marchenko
How I used to do it in the past building for both Symbian and MeeGo was to
have .pro file hierarchy as you anyway need to have some .pro file
specifics. I know several ways you can go

**.pro level**
1. Just different .pro for the different platforms and that's it
They even might include different .cpp and .qml files though if platform
differences are minor you can use compiler macros on .cpp level keep
different qmls in the different folders (who cares if extra unused qmls are
packaged in).

2. Different top level .pro files including the common part via .pri
*That's the approach I would go for nowadays*

3. Common .pro file including appropriate platform specific part via QMake
macros
Just have a look at the old harmattan's wizard generated .pri files (I
think first Sailfish SDK used similar approach)

**.cpp level**
Preprocessor  macros such as mentioned __ARMEL__ are your friend

**.qml level**
Here is gets tricky as QML doesn't have conditional imports. If I remember
correctly, idea was killed by one of the sailors (J ;)) at times he was
working for Nokia, because "you have Loader, use it for loading
conditionally". So the options I see are

1. Forget about reuse, QML is so easy to work with that you can create new
UI from scratch for every platform. You will anyway want it as UI is
exactly the most platform-specific part of app.
Then you just include different folders on the .pro and .cpp levels
That I believe is the official Qt point of view or close to it. Too bad
it's not very comfortable for my preferred approach that is to put 95% of
everything to QML.

2. Use common QML components (utilizing only common imports, non-UI
components could be good) and inherit then with platform specifics
I used it and it happened to be rather clumsy as all the structures happen
to be quite inter-dependent and there were annoying situations when the
import is the same, but on some platform you have just different property
for the icon path (maybe it doesn't happen in the past-harmattan times).

3. Use common QML components and include them into platform-specific
screens or pages.
This way you still recreate pages per platform but you can use large
reusable blocks inside. *That's the approach I will probably go nowadays*

4. Bonus: have some UI constants class somewhere
I tend to create CommonSettings.qml and inherit SymbianSettings.qml,
SailfishSettings.qml, etc from it. Makes managing UI constants easier.

Well, that was my experience so far.
I hope it helps

Cheers,
Artem.



On Fri, Nov 22, 2013 at 1:09 PM, Luciano Montanaro wrote:

> On Thu, Nov 21, 2013 at 5:10 PM, Andrey Kozhevnikov
>  wrote:
> > check __ARMEL__ or __ARM_ARCH_7__
>
>
> Thank you, Andrey, but that is not what I was referring to.
>
> Basically, I would like to have my package built for sailfish (and
> install the sailfish qml files) when I select a sailfish target, and
> say, the harmattan files when I start it from the nokia sdk. The
> architecture is not enough... I need either to check for a specific
> library being present, or something similar.
>
> Regards,
> Luciano
>
> --
> Luciano Montanaro
>
> Anyone who is capable of getting themselves made President should on
> no account be allowed to do the job. -- Douglas Adams
> ___
> SailfishOS.org Devel mailing list
>



-- 
Artem Marchenko
http://agilesoftwaredevelopment.com
http://twitter.com/AgileArtem
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] installing extra files via rpm

2013-11-22 Thread Luciano Montanaro
On Thu, Nov 21, 2013 at 5:10 PM, Andrey Kozhevnikov
 wrote:
> check __ARMEL__ or __ARM_ARCH_7__


Thank you, Andrey, but that is not what I was referring to.

Basically, I would like to have my package built for sailfish (and
install the sailfish qml files) when I select a sailfish target, and
say, the harmattan files when I start it from the nokia sdk. The
architecture is not enough... I need either to check for a specific
library being present, or something similar.

Regards,
Luciano

-- 
Luciano Montanaro

Anyone who is capable of getting themselves made President should on
no account be allowed to do the job. -- Douglas Adams
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] installing extra files via rpm

2013-11-21 Thread Marcin M.
Is it possible to install files directly via .yaml/.spec (without using the
qmake installs)?

--
Marcin


2013/11/21 Andrey Kozhevnikov 

> check __ARMEL__ or __ARM_ARCH_7__
>
>
> On 21.11.2013 21:37, Luciano Montanaro wrote:
>
>> For the record, I also have problems,. whenever I switch between
>> ARM/486 builds or between sailfish and harmattan.
>>
>> A slightly different topic...
>>
>> Is there a way to detect the kit in use from the qmake file?
>>
>> Currently, I add CONFIG+=sailfish on the build options when I want to
>> build for sailfish... But this setting also gets lost often. If there
>> were a method to detect the toolchain automatically from the qmake
>> file that would be great.
>>
>> Alternatively, is it possible to add the CONFIG+=sailfish option to
>> the .yaml file?
>>
>> Am I the only one that is trying to keep their applicaion buildable
>> for sailfish as well as other targets?
>> How are you dealing with this? Because my application.pro file is
>> getting hard to maintain.
>>
>>
>> On Thu, Nov 21, 2013 at 4:19 PM, Andrey Kozhevnikov
>>  wrote:
>>
>>> i have src/client and src/server and everything is built correctly
>>> automatically.
>>>
>>>
>>> On 21.11.2013 21:05, Artem Marchenko wrote:
>>>
>>> Yes, Qt Creator plugin trying to modify .yaml is a big annoyance to
>>> anybody
>>> with non standard .yaml (I have src/test subprojects and plugin is
>>> apparently able to work with one package only). How I solved it, I just
>>> keep
>>> resetting .yaml to version from version control whenever QtCreator wants
>>> to
>>> be clever and touch .yaml himself. Sure, sometimes I miss it, but most of
>>> the time everything's fine.
>>>
>>> Maybe same will work for you. Or maybe somebody will now post how to kill
>>> this .yaml modification plugin completely :)
>>>
>>> Cheers,
>>> Artem.
>>>
>>>
>>>
>>>
>>> On Thu, Nov 21, 2013 at 3:25 PM, Wim de Vries  wrote:
>>>
 Thanks.
 Removing and adding kits seems to generate new .yaml file based on .pro
 and .pri.



 On 11/21/2013 11:11 AM, Andrey Kozhevnikov wrote:

 create sailfish project, or dont use yaml, use spec.

 On 21.11.2013 16:01, Wim de Vries wrote:

 Hi Artem,
 Thanks for the reply.
 Best way would then to change .yaml, I guess.
 But somehow there is no .yaml in the rpm dir.
 Tried to add an empty one hoping that qmake or rebuild would fill it,
 but
 remains emty.
 Any idea how to get the yaml created?
 Thanks.


 On 11/20/2013 09:45 PM, Artem Marchenko wrote:

 You need to mention these files in .yaml (or user editable part of .spec
 that's generated from .yaml).

 Basically here's what happens:

 1. Your project files are mounted to the virtual build machine
 2. make install copies data to the appropriate "final" folders on the
 build machine (not visible from your PC)
 3. RPM generation happens on build machine. RPM packager puts
 "installed"
 file to one or more (just one for a simple case) RPM packages according
 to
 .yaml/.spec and then it figures that some "installed" files are not
 going
 into any .rpm, so it gives you an error:
 "Installed (but unpackaged) file(s) found:"

 Cheers,
 Artem.



 On Wed, Nov 20, 2013 at 9:45 PM, Wim de Vries 
 wrote:

> Hi,
> I am able to deploy via RPM. Or better, QtCreator is able to do it ;-)
> Still, I need to install some data files as well.
> pro file:
>
> data.files = checklistsdata/*
> OTHER_FILES += \
>  checklistsdata/skyArrow-walkaround \
>  checklistsdata/skyArrowEMERGENCY \
> .
>
> In the .pri:
> data.path = /home/nemo/checklistsdata
> INSTALLS += target qml desktop data
>
> As far as I understand this should be sufficient.
> Still deployment fails.
> Any hints?
> Thanks.
>
> Output when deploying:
>
> nstall -m 755 -p "checklists"
> "/home/deploy/installroot/usr/bin/checklists"
>
> install -m 755 -p /home/mersdk/qt/checklists/main.qml
> /home/deploy/installroot/usr/share/checklists/
>
> cp -f -R /home/mersdk/qt/checklists/pages
> /home/deploy/installroot/usr/share/checklists/
>
> cp -f -R /home/mersdk/qt/checklists/cover
> /home/deploy/installroot/usr/share/checklists/
>
> cp -f -R /home/mersdk/qt/checklists/controls
> /home/deploy/installroot/usr/share/checklists/
>
> install -m 755 -p /home/mersdk/qt/checklists/main.qml
> /home/deploy/installroot/usr/share/checklists/
>
> install -m 755 -p /home/mersdk/qt/checklists/checklists.desktop
> /home/deploy/installroot/usr/share/applications/
>
> install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/eurofox
> /home/deploy/installroot/home/nemo/checklistsdata/
>
> install -m 755 -p
> /home/mersdk/qt/checklists/checklistsdata/eurofoxEMERGENCY
>

Re: [SailfishDevel] installing extra files via rpm

2013-11-21 Thread Wim de Vries

Thanks.
Removing and adding kits seems to generate new .yaml file based on .pro 
and .pri.



On 11/21/2013 11:11 AM, Andrey Kozhevnikov wrote:

create sailfish project, or dont use yaml, use spec.

On 21.11.2013 16:01, Wim de Vries wrote:

Hi Artem,
Thanks for the reply.
Best way would then to change .yaml, I guess.
But somehow there is no .yaml in the rpm dir.
Tried to add an empty one hoping that qmake or rebuild would fill it, 
but remains emty.

Any idea how to get the yaml created?
Thanks.


On 11/20/2013 09:45 PM, Artem Marchenko wrote:
You need to mention these files in .yaml (or user editable part of 
.spec that's generated from .yaml).


Basically here's what happens:

1. Your project files are mounted to the virtual build machine
2. make install copies data to the appropriate "final" folders on 
the build machine (not visible from your PC)
3. RPM generation happens on build machine. RPM packager puts 
"installed" file to one or more (just one for a simple case) RPM 
packages according to .yaml/.spec and then it figures that some 
"installed" files are not going into any .rpm, so it gives you an error:

"Installed (but unpackaged) file(s) found:"

Cheers,
Artem.



On Wed, Nov 20, 2013 at 9:45 PM, Wim de Vries > wrote:


Hi,
I am able to deploy via RPM. Or better, QtCreator is able to do
it ;-)
Still, I need to install some data files as well.
pro file:

data.files = checklistsdata/*
OTHER_FILES += \
checklistsdata/skyArrow-walkaround \
checklistsdata/skyArrowEMERGENCY \
.

In the .pri:
data.path = /home/nemo/checklistsdata
INSTALLS += target qml desktop data

As far as I understand this should be sufficient.
Still deployment fails.
Any hints?
Thanks.

Output when deploying:

nstall -m 755 -p "checklists"
"/home/deploy/installroot/usr/bin/checklists"

install -m 755 -p /home/mersdk/qt/checklists/main.qml
/home/deploy/installroot/usr/share/checklists/

cp -f -R /home/mersdk/qt/checklists/pages
/home/deploy/installroot/usr/share/checklists/

cp -f -R /home/mersdk/qt/checklists/cover
/home/deploy/installroot/usr/share/checklists/

cp -f -R /home/mersdk/qt/checklists/controls
/home/deploy/installroot/usr/share/checklists/

install -m 755 -p /home/mersdk/qt/checklists/main.qml
/home/deploy/installroot/usr/share/checklists/

install -m 755 -p /home/mersdk/qt/checklists/checklists.desktop
/home/deploy/installroot/usr/share/applications/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/eurofox
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/eurofoxEMERGENCY
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO1
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO2
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO3
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO4
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO5
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO6
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO7
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO8
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO9
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/skyArrow
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/skyArrow-walkaround
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/skyArrowEMERGENCY
/home/deploy/installroot/home/nemo/checklistsdata/

+ /usr/lib/rpm/find-debuginfo.sh --strict-build-id
/home/mersdk/qt/checklists/

.


Processing files: checklists-0.1-1.i586

Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <=
4.0-1

Requires: libGLESv2.so.2 libQt5Core.so.5 libQt5Gui.so.5
libQt5Network.so.5 libQt5Qml.so.5 libQt5Quick.so.5 libc.so.6
libc.so.6(GLIBC_2.0) libgcc_s.so.1 libgcc_s.so.1(GCC_3.0)
libm.so.6 libpthread.so.0 libstdc++.so.6
libstdc++.so.6(CXXABI_1.3) libstdc++.so.6(GLIBCXX_3.4)
rtld(GNU_HASH)

Processing files: checklist

Re: [SailfishDevel] installing extra files via rpm

2013-11-21 Thread Andrey Kozhevnikov
i have src/client and src/server and everything is built correctly 
automatically.


On 21.11.2013 21:05, Artem Marchenko wrote:
Yes, Qt Creator plugin trying to modify .yaml is a big annoyance to 
anybody with non standard .yaml (I have src/test subprojects and 
plugin is apparently able to work with one package only). How I solved 
it, I just keep resetting .yaml to version from version control 
whenever QtCreator wants to be clever and touch .yaml himself. Sure, 
sometimes I miss it, but most of the time everything's fine.


Maybe same will work for you. Or maybe somebody will now post how to 
kill this .yaml modification plugin completely :)


Cheers,
Artem.




On Thu, Nov 21, 2013 at 3:25 PM, Wim de Vries > wrote:


Thanks.
Removing and adding kits seems to generate new .yaml file based on
.pro and .pri.



On 11/21/2013 11:11 AM, Andrey Kozhevnikov wrote:

create sailfish project, or dont use yaml, use spec.

On 21.11.2013 16:01, Wim de Vries wrote:

Hi Artem,
Thanks for the reply.
Best way would then to change .yaml, I guess.
But somehow there is no .yaml in the rpm dir.
Tried to add an empty one hoping that qmake or rebuild would
fill it, but remains emty.
Any idea how to get the yaml created?
Thanks.


On 11/20/2013 09:45 PM, Artem Marchenko wrote:

You need to mention these files in .yaml (or user editable part
of .spec that's generated from .yaml).

Basically here's what happens:

1. Your project files are mounted to the virtual build machine
2. make install copies data to the appropriate "final" folders
on the build machine (not visible from your PC)
3. RPM generation happens on build machine. RPM packager puts
"installed" file to one or more (just one for a simple case)
RPM packages according to .yaml/.spec and then it figures that
some "installed" files are not going into any .rpm, so it gives
you an error:
"Installed (but unpackaged) file(s) found:"

Cheers,
Artem.



On Wed, Nov 20, 2013 at 9:45 PM, Wim de Vries
mailto:wsvr...@xs4all.nl>> wrote:

Hi,
I am able to deploy via RPM. Or better, QtCreator is able
to do it ;-)
Still, I need to install some data files as well.
pro file:

data.files = checklistsdata/*
OTHER_FILES += \
checklistsdata/skyArrow-walkaround \
checklistsdata/skyArrowEMERGENCY \
.

In the .pri:
data.path = /home/nemo/checklistsdata
INSTALLS += target qml desktop data

As far as I understand this should be sufficient.
Still deployment fails.
Any hints?
Thanks.

Output when deploying:

nstall -m 755 -p "checklists"
"/home/deploy/installroot/usr/bin/checklists"

install -m 755 -p /home/mersdk/qt/checklists/main.qml
/home/deploy/installroot/usr/share/checklists/

cp -f -R /home/mersdk/qt/checklists/pages
/home/deploy/installroot/usr/share/checklists/

cp -f -R /home/mersdk/qt/checklists/cover
/home/deploy/installroot/usr/share/checklists/

cp -f -R /home/mersdk/qt/checklists/controls
/home/deploy/installroot/usr/share/checklists/

install -m 755 -p /home/mersdk/qt/checklists/main.qml
/home/deploy/installroot/usr/share/checklists/

install -m 755 -p
/home/mersdk/qt/checklists/checklists.desktop
/home/deploy/installroot/usr/share/applications/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/eurofox
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/eurofoxEMERGENCY
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/GEO1
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/GEO2
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/GEO3
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/GEO4
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/GEO5
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/GEO6
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/GEO7
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/GEO8
/home/deploy/installroot/home/nemo/checklistsdata/

install -m

Re: [SailfishDevel] installing extra files via rpm

2013-11-21 Thread Luciano Montanaro
For the record, I also have problems,. whenever I switch between
ARM/486 builds or between sailfish and harmattan.

A slightly different topic...

Is there a way to detect the kit in use from the qmake file?

Currently, I add CONFIG+=sailfish on the build options when I want to
build for sailfish... But this setting also gets lost often. If there
were a method to detect the toolchain automatically from the qmake
file that would be great.

Alternatively, is it possible to add the CONFIG+=sailfish option to
the .yaml file?

Am I the only one that is trying to keep their applicaion buildable
for sailfish as well as other targets?
How are you dealing with this? Because my application.pro file is
getting hard to maintain.


On Thu, Nov 21, 2013 at 4:19 PM, Andrey Kozhevnikov
 wrote:
> i have src/client and src/server and everything is built correctly
> automatically.
>
>
> On 21.11.2013 21:05, Artem Marchenko wrote:
>
> Yes, Qt Creator plugin trying to modify .yaml is a big annoyance to anybody
> with non standard .yaml (I have src/test subprojects and plugin is
> apparently able to work with one package only). How I solved it, I just keep
> resetting .yaml to version from version control whenever QtCreator wants to
> be clever and touch .yaml himself. Sure, sometimes I miss it, but most of
> the time everything's fine.
>
> Maybe same will work for you. Or maybe somebody will now post how to kill
> this .yaml modification plugin completely :)
>
> Cheers,
> Artem.
>
>
>
>
> On Thu, Nov 21, 2013 at 3:25 PM, Wim de Vries  wrote:
>>
>> Thanks.
>> Removing and adding kits seems to generate new .yaml file based on .pro
>> and .pri.
>>
>>
>>
>> On 11/21/2013 11:11 AM, Andrey Kozhevnikov wrote:
>>
>> create sailfish project, or dont use yaml, use spec.
>>
>> On 21.11.2013 16:01, Wim de Vries wrote:
>>
>> Hi Artem,
>> Thanks for the reply.
>> Best way would then to change .yaml, I guess.
>> But somehow there is no .yaml in the rpm dir.
>> Tried to add an empty one hoping that qmake or rebuild would fill it, but
>> remains emty.
>> Any idea how to get the yaml created?
>> Thanks.
>>
>>
>> On 11/20/2013 09:45 PM, Artem Marchenko wrote:
>>
>> You need to mention these files in .yaml (or user editable part of .spec
>> that's generated from .yaml).
>>
>> Basically here's what happens:
>>
>> 1. Your project files are mounted to the virtual build machine
>> 2. make install copies data to the appropriate "final" folders on the
>> build machine (not visible from your PC)
>> 3. RPM generation happens on build machine. RPM packager puts "installed"
>> file to one or more (just one for a simple case) RPM packages according to
>> .yaml/.spec and then it figures that some "installed" files are not going
>> into any .rpm, so it gives you an error:
>> "Installed (but unpackaged) file(s) found:"
>>
>> Cheers,
>> Artem.
>>
>>
>>
>> On Wed, Nov 20, 2013 at 9:45 PM, Wim de Vries  wrote:
>>>
>>> Hi,
>>> I am able to deploy via RPM. Or better, QtCreator is able to do it ;-)
>>> Still, I need to install some data files as well.
>>> pro file:
>>>
>>> data.files = checklistsdata/*
>>> OTHER_FILES += \
>>> checklistsdata/skyArrow-walkaround \
>>> checklistsdata/skyArrowEMERGENCY \
>>> .
>>>
>>> In the .pri:
>>> data.path = /home/nemo/checklistsdata
>>> INSTALLS += target qml desktop data
>>>
>>> As far as I understand this should be sufficient.
>>> Still deployment fails.
>>> Any hints?
>>> Thanks.
>>>
>>> Output when deploying:
>>>
>>> nstall -m 755 -p "checklists"
>>> "/home/deploy/installroot/usr/bin/checklists"
>>>
>>> install -m 755 -p /home/mersdk/qt/checklists/main.qml
>>> /home/deploy/installroot/usr/share/checklists/
>>>
>>> cp -f -R /home/mersdk/qt/checklists/pages
>>> /home/deploy/installroot/usr/share/checklists/
>>>
>>> cp -f -R /home/mersdk/qt/checklists/cover
>>> /home/deploy/installroot/usr/share/checklists/
>>>
>>> cp -f -R /home/mersdk/qt/checklists/controls
>>> /home/deploy/installroot/usr/share/checklists/
>>>
>>> install -m 755 -p /home/mersdk/qt/checklists/main.qml
>>> /home/deploy/installroot/usr/share/checklists/
>>>
>>> install -m 755 -p /home/mersdk/qt/checklists/checklists.desktop
>>> /home/deploy/installroot/usr/share/applications/
>>>
>>> install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/eurofox
>>> /home/deploy/installroot/home/nemo/checklistsdata/
>>>
>>> install -m 755 -p
>>> /home/mersdk/qt/checklists/checklistsdata/eurofoxEMERGENCY
>>> /home/deploy/installroot/home/nemo/checklistsdata/
>>>
>>> install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO1
>>> /home/deploy/installroot/home/nemo/checklistsdata/
>>>
>>> install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO2
>>> /home/deploy/installroot/home/nemo/checklistsdata/
>>>
>>> install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO3
>>> /home/deploy/installroot/home/nemo/checklistsdata/
>>>
>>> install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO4
>>> /home/deploy/installroot/home/nemo/checklistsdata/
>>

Re: [SailfishDevel] installing extra files via rpm

2013-11-21 Thread Andrey Kozhevnikov

check __ARMEL__ or __ARM_ARCH_7__

On 21.11.2013 21:37, Luciano Montanaro wrote:

For the record, I also have problems,. whenever I switch between
ARM/486 builds or between sailfish and harmattan.

A slightly different topic...

Is there a way to detect the kit in use from the qmake file?

Currently, I add CONFIG+=sailfish on the build options when I want to
build for sailfish... But this setting also gets lost often. If there
were a method to detect the toolchain automatically from the qmake
file that would be great.

Alternatively, is it possible to add the CONFIG+=sailfish option to
the .yaml file?

Am I the only one that is trying to keep their applicaion buildable
for sailfish as well as other targets?
How are you dealing with this? Because my application.pro file is
getting hard to maintain.


On Thu, Nov 21, 2013 at 4:19 PM, Andrey Kozhevnikov
 wrote:

i have src/client and src/server and everything is built correctly
automatically.


On 21.11.2013 21:05, Artem Marchenko wrote:

Yes, Qt Creator plugin trying to modify .yaml is a big annoyance to anybody
with non standard .yaml (I have src/test subprojects and plugin is
apparently able to work with one package only). How I solved it, I just keep
resetting .yaml to version from version control whenever QtCreator wants to
be clever and touch .yaml himself. Sure, sometimes I miss it, but most of
the time everything's fine.

Maybe same will work for you. Or maybe somebody will now post how to kill
this .yaml modification plugin completely :)

Cheers,
Artem.




On Thu, Nov 21, 2013 at 3:25 PM, Wim de Vries  wrote:

Thanks.
Removing and adding kits seems to generate new .yaml file based on .pro
and .pri.



On 11/21/2013 11:11 AM, Andrey Kozhevnikov wrote:

create sailfish project, or dont use yaml, use spec.

On 21.11.2013 16:01, Wim de Vries wrote:

Hi Artem,
Thanks for the reply.
Best way would then to change .yaml, I guess.
But somehow there is no .yaml in the rpm dir.
Tried to add an empty one hoping that qmake or rebuild would fill it, but
remains emty.
Any idea how to get the yaml created?
Thanks.


On 11/20/2013 09:45 PM, Artem Marchenko wrote:

You need to mention these files in .yaml (or user editable part of .spec
that's generated from .yaml).

Basically here's what happens:

1. Your project files are mounted to the virtual build machine
2. make install copies data to the appropriate "final" folders on the
build machine (not visible from your PC)
3. RPM generation happens on build machine. RPM packager puts "installed"
file to one or more (just one for a simple case) RPM packages according to
.yaml/.spec and then it figures that some "installed" files are not going
into any .rpm, so it gives you an error:
"Installed (but unpackaged) file(s) found:"

Cheers,
Artem.



On Wed, Nov 20, 2013 at 9:45 PM, Wim de Vries  wrote:

Hi,
I am able to deploy via RPM. Or better, QtCreator is able to do it ;-)
Still, I need to install some data files as well.
pro file:

data.files = checklistsdata/*
OTHER_FILES += \
 checklistsdata/skyArrow-walkaround \
 checklistsdata/skyArrowEMERGENCY \
.

In the .pri:
data.path = /home/nemo/checklistsdata
INSTALLS += target qml desktop data

As far as I understand this should be sufficient.
Still deployment fails.
Any hints?
Thanks.

Output when deploying:

nstall -m 755 -p "checklists"
"/home/deploy/installroot/usr/bin/checklists"

install -m 755 -p /home/mersdk/qt/checklists/main.qml
/home/deploy/installroot/usr/share/checklists/

cp -f -R /home/mersdk/qt/checklists/pages
/home/deploy/installroot/usr/share/checklists/

cp -f -R /home/mersdk/qt/checklists/cover
/home/deploy/installroot/usr/share/checklists/

cp -f -R /home/mersdk/qt/checklists/controls
/home/deploy/installroot/usr/share/checklists/

install -m 755 -p /home/mersdk/qt/checklists/main.qml
/home/deploy/installroot/usr/share/checklists/

install -m 755 -p /home/mersdk/qt/checklists/checklists.desktop
/home/deploy/installroot/usr/share/applications/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/eurofox
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/eurofoxEMERGENCY
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO1
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO2
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO3
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO4
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO5
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO6
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO7
/h

Re: [SailfishDevel] installing extra files via rpm

2013-11-21 Thread Artem Marchenko
Yes, Qt Creator plugin trying to modify .yaml is a big annoyance to anybody
with non standard .yaml (I have src/test subprojects and plugin is
apparently able to work with one package only). How I solved it, I just
keep resetting .yaml to version from version control whenever QtCreator
wants to be clever and touch .yaml himself. Sure, sometimes I miss it, but
most of the time everything's fine.

Maybe same will work for you. Or maybe somebody will now post how to kill
this .yaml modification plugin completely :)

Cheers,
Artem.




On Thu, Nov 21, 2013 at 3:25 PM, Wim de Vries  wrote:

>  Thanks.
> Removing and adding kits seems to generate new .yaml file based on .pro
> and .pri.
>
>
>
> On 11/21/2013 11:11 AM, Andrey Kozhevnikov wrote:
>
> create sailfish project, or dont use yaml, use spec.
>
> On 21.11.2013 16:01, Wim de Vries wrote:
>
> Hi Artem,
> Thanks for the reply.
> Best way would then to change .yaml, I guess.
> But somehow there is no .yaml in the rpm dir.
> Tried to add an empty one hoping that qmake or rebuild would fill it, but
> remains emty.
> Any idea how to get the yaml created?
> Thanks.
>
>
> On 11/20/2013 09:45 PM, Artem Marchenko wrote:
>
> You need to mention these files in .yaml (or user editable part of .spec
> that's generated from .yaml).
>
>  Basically here's what happens:
>
>  1. Your project files are mounted to the virtual build machine
> 2. make install copies data to the appropriate "final" folders on the
> build machine (not visible from your PC)
> 3. RPM generation happens on build machine. RPM packager puts "installed"
> file to one or more (just one for a simple case) RPM packages according to
> .yaml/.spec and then it figures that some "installed" files are not going
> into any .rpm, so it gives you an error:
> "Installed (but unpackaged) file(s) found:"
>
>  Cheers,
> Artem.
>
>
>
> On Wed, Nov 20, 2013 at 9:45 PM, Wim de Vries  wrote:
>
>>  Hi,
>> I am able to deploy via RPM. Or better, QtCreator is able to do it ;-)
>> Still, I need to install some data files as well.
>> pro file:
>>
>> data.files = checklistsdata/*
>> OTHER_FILES += \
>> checklistsdata/skyArrow-walkaround \
>> checklistsdata/skyArrowEMERGENCY \
>> .
>>
>> In the .pri:
>> data.path = /home/nemo/checklistsdata
>> INSTALLS += target qml desktop data
>>
>> As far as I understand this should be sufficient.
>> Still deployment fails.
>> Any hints?
>> Thanks.
>>
>> Output when deploying:
>>
>> nstall -m 755 -p "checklists"
>> "/home/deploy/installroot/usr/bin/checklists"
>>
>> install -m 755 -p /home/mersdk/qt/checklists/main.qml
>> /home/deploy/installroot/usr/share/checklists/
>>
>> cp -f -R /home/mersdk/qt/checklists/pages
>> /home/deploy/installroot/usr/share/checklists/
>>
>> cp -f -R /home/mersdk/qt/checklists/cover
>> /home/deploy/installroot/usr/share/checklists/
>>
>> cp -f -R /home/mersdk/qt/checklists/controls
>> /home/deploy/installroot/usr/share/checklists/
>>
>> install -m 755 -p /home/mersdk/qt/checklists/main.qml
>> /home/deploy/installroot/usr/share/checklists/
>>
>> install -m 755 -p /home/mersdk/qt/checklists/checklists.desktop
>> /home/deploy/installroot/usr/share/applications/
>>
>> install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/eurofox
>> /home/deploy/installroot/home/nemo/checklistsdata/
>>
>> install -m 755 -p
>> /home/mersdk/qt/checklists/checklistsdata/eurofoxEMERGENCY
>> /home/deploy/installroot/home/nemo/checklistsdata/
>>
>> install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO1
>> /home/deploy/installroot/home/nemo/checklistsdata/
>>
>> install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO2
>> /home/deploy/installroot/home/nemo/checklistsdata/
>>
>> install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO3
>> /home/deploy/installroot/home/nemo/checklistsdata/
>>
>> install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO4
>> /home/deploy/installroot/home/nemo/checklistsdata/
>>
>> install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO5
>> /home/deploy/installroot/home/nemo/checklistsdata/
>>
>> install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO6
>> /home/deploy/installroot/home/nemo/checklistsdata/
>>
>> install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO7
>> /home/deploy/installroot/home/nemo/checklistsdata/
>>
>> install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO8
>> /home/deploy/installroot/home/nemo/checklistsdata/
>>
>> install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO9
>> /home/deploy/installroot/home/nemo/checklistsdata/
>>
>> install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/skyArrow
>> /home/deploy/installroot/home/nemo/checklistsdata/
>>
>> install -m 755 -p
>> /home/mersdk/qt/checklists/checklistsdata/skyArrow-walkaround
>> /home/deploy/installroot/home/nemo/checklistsdata/
>>
>> install -m 755 -p
>> /home/mersdk/qt/checklists/checklistsdata/skyArrowEMERGENCY
>> /home/deploy/installroot/home/nemo/checklistsdata/
>>
>> + /usr/lib/rpm/fi

Re: [SailfishDevel] installing extra files via rpm

2013-11-21 Thread Andrey Kozhevnikov

create sailfish project, or dont use yaml, use spec.

On 21.11.2013 16:01, Wim de Vries wrote:

Hi Artem,
Thanks for the reply.
Best way would then to change .yaml, I guess.
But somehow there is no .yaml in the rpm dir.
Tried to add an empty one hoping that qmake or rebuild would fill it, 
but remains emty.

Any idea how to get the yaml created?
Thanks.


On 11/20/2013 09:45 PM, Artem Marchenko wrote:
You need to mention these files in .yaml (or user editable part of 
.spec that's generated from .yaml).


Basically here's what happens:

1. Your project files are mounted to the virtual build machine
2. make install copies data to the appropriate "final" folders on the 
build machine (not visible from your PC)
3. RPM generation happens on build machine. RPM packager puts 
"installed" file to one or more (just one for a simple case) RPM 
packages according to .yaml/.spec and then it figures that some 
"installed" files are not going into any .rpm, so it gives you an error:

"Installed (but unpackaged) file(s) found:"

Cheers,
Artem.



On Wed, Nov 20, 2013 at 9:45 PM, Wim de Vries > wrote:


Hi,
I am able to deploy via RPM. Or better, QtCreator is able to do
it ;-)
Still, I need to install some data files as well.
pro file:

data.files = checklistsdata/*
OTHER_FILES += \
checklistsdata/skyArrow-walkaround \
checklistsdata/skyArrowEMERGENCY \
.

In the .pri:
data.path = /home/nemo/checklistsdata
INSTALLS += target qml desktop data

As far as I understand this should be sufficient.
Still deployment fails.
Any hints?
Thanks.

Output when deploying:

nstall -m 755 -p "checklists"
"/home/deploy/installroot/usr/bin/checklists"

install -m 755 -p /home/mersdk/qt/checklists/main.qml
/home/deploy/installroot/usr/share/checklists/

cp -f -R /home/mersdk/qt/checklists/pages
/home/deploy/installroot/usr/share/checklists/

cp -f -R /home/mersdk/qt/checklists/cover
/home/deploy/installroot/usr/share/checklists/

cp -f -R /home/mersdk/qt/checklists/controls
/home/deploy/installroot/usr/share/checklists/

install -m 755 -p /home/mersdk/qt/checklists/main.qml
/home/deploy/installroot/usr/share/checklists/

install -m 755 -p /home/mersdk/qt/checklists/checklists.desktop
/home/deploy/installroot/usr/share/applications/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/eurofox
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/eurofoxEMERGENCY
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO1
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO2
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO3
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO4
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO5
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO6
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO7
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO8
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO9
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/skyArrow
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/skyArrow-walkaround
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/skyArrowEMERGENCY
/home/deploy/installroot/home/nemo/checklistsdata/

+ /usr/lib/rpm/find-debuginfo.sh --strict-build-id
/home/mersdk/qt/checklists/

.


Processing files: checklists-0.1-1.i586

Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <=
4.0-1

Requires: libGLESv2.so.2 libQt5Core.so.5 libQt5Gui.so.5
libQt5Network.so.5 libQt5Qml.so.5 libQt5Quick.so.5 libc.so.6
libc.so.6(GLIBC_2.0) libgcc_s.so.1 libgcc_s.so.1(GCC_3.0)
libm.so.6 libpthread.so.0 libstdc++.so.6
libstdc++.so.6(CXXABI_1.3) libstdc++.so.6(GLIBCXX_3.4) rtld(GNU_HASH)

Processing files: checklists-debugsource-0.1-1.i586

Processing files: checklists-debuginfo-0.1-1.i586

Provides: debuginfo(build-id) =
3196c82eb7247c3f8a80152b57c0

Re: [SailfishDevel] installing extra files via rpm

2013-11-21 Thread Wim de Vries

Hi Artem,
Thanks for the reply.
Best way would then to change .yaml, I guess.
But somehow there is no .yaml in the rpm dir.
Tried to add an empty one hoping that qmake or rebuild would fill it, 
but remains emty.

Any idea how to get the yaml created?
Thanks.


On 11/20/2013 09:45 PM, Artem Marchenko wrote:
You need to mention these files in .yaml (or user editable part of 
.spec that's generated from .yaml).


Basically here's what happens:

1. Your project files are mounted to the virtual build machine
2. make install copies data to the appropriate "final" folders on the 
build machine (not visible from your PC)
3. RPM generation happens on build machine. RPM packager puts 
"installed" file to one or more (just one for a simple case) RPM 
packages according to .yaml/.spec and then it figures that some 
"installed" files are not going into any .rpm, so it gives you an error:

"Installed (but unpackaged) file(s) found:"

Cheers,
Artem.



On Wed, Nov 20, 2013 at 9:45 PM, Wim de Vries > wrote:


Hi,
I am able to deploy via RPM. Or better, QtCreator is able to do it ;-)
Still, I need to install some data files as well.
pro file:

data.files = checklistsdata/*
OTHER_FILES += \
checklistsdata/skyArrow-walkaround \
checklistsdata/skyArrowEMERGENCY \
.

In the .pri:
data.path = /home/nemo/checklistsdata
INSTALLS += target qml desktop data

As far as I understand this should be sufficient.
Still deployment fails.
Any hints?
Thanks.

Output when deploying:

nstall -m 755 -p "checklists"
"/home/deploy/installroot/usr/bin/checklists"

install -m 755 -p /home/mersdk/qt/checklists/main.qml
/home/deploy/installroot/usr/share/checklists/

cp -f -R /home/mersdk/qt/checklists/pages
/home/deploy/installroot/usr/share/checklists/

cp -f -R /home/mersdk/qt/checklists/cover
/home/deploy/installroot/usr/share/checklists/

cp -f -R /home/mersdk/qt/checklists/controls
/home/deploy/installroot/usr/share/checklists/

install -m 755 -p /home/mersdk/qt/checklists/main.qml
/home/deploy/installroot/usr/share/checklists/

install -m 755 -p /home/mersdk/qt/checklists/checklists.desktop
/home/deploy/installroot/usr/share/applications/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/eurofox
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/eurofoxEMERGENCY
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO1
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO2
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO3
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO4
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO5
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO6
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO7
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO8
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO9
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/skyArrow
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/skyArrow-walkaround
/home/deploy/installroot/home/nemo/checklistsdata/

install -m 755 -p
/home/mersdk/qt/checklists/checklistsdata/skyArrowEMERGENCY
/home/deploy/installroot/home/nemo/checklistsdata/

+ /usr/lib/rpm/find-debuginfo.sh --strict-build-id
/home/mersdk/qt/checklists/

.


Processing files: checklists-0.1-1.i586

Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1

Requires: libGLESv2.so.2 libQt5Core.so.5 libQt5Gui.so.5
libQt5Network.so.5 libQt5Qml.so.5 libQt5Quick.so.5 libc.so.6
libc.so.6(GLIBC_2.0) libgcc_s.so.1 libgcc_s.so.1(GCC_3.0)
libm.so.6 libpthread.so.0 libstdc++.so.6
libstdc++.so.6(CXXABI_1.3) libstdc++.so.6(GLIBCXX_3.4) rtld(GNU_HASH)

Processing files: checklists-debugsource-0.1-1.i586

Processing files: checklists-debuginfo-0.1-1.i586

Provides: debuginfo(build-id) =
3196c82eb7247c3f8a80152b57c0863007c4c887

Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.

Re: [SailfishDevel] installing extra files via rpm

2013-11-20 Thread Artem Marchenko
You need to mention these files in .yaml (or user editable part of .spec
that's generated from .yaml).

Basically here's what happens:

1. Your project files are mounted to the virtual build machine
2. make install copies data to the appropriate "final" folders on the build
machine (not visible from your PC)
3. RPM generation happens on build machine. RPM packager puts "installed"
file to one or more (just one for a simple case) RPM packages according to
.yaml/.spec and then it figures that some "installed" files are not going
into any .rpm, so it gives you an error:
"Installed (but unpackaged) file(s) found:"

Cheers,
Artem.



On Wed, Nov 20, 2013 at 9:45 PM, Wim de Vries  wrote:

>  Hi,
> I am able to deploy via RPM. Or better, QtCreator is able to do it ;-)
> Still, I need to install some data files as well.
> pro file:
>
> data.files = checklistsdata/*
> OTHER_FILES += \
> checklistsdata/skyArrow-walkaround \
> checklistsdata/skyArrowEMERGENCY \
> .
>
> In the .pri:
> data.path = /home/nemo/checklistsdata
> INSTALLS += target qml desktop data
>
> As far as I understand this should be sufficient.
> Still deployment fails.
> Any hints?
> Thanks.
>
> Output when deploying:
>
> nstall -m 755 -p "checklists" "/home/deploy/installroot/usr/bin/checklists"
>
> install -m 755 -p /home/mersdk/qt/checklists/main.qml
> /home/deploy/installroot/usr/share/checklists/
>
> cp -f -R /home/mersdk/qt/checklists/pages
> /home/deploy/installroot/usr/share/checklists/
>
> cp -f -R /home/mersdk/qt/checklists/cover
> /home/deploy/installroot/usr/share/checklists/
>
> cp -f -R /home/mersdk/qt/checklists/controls
> /home/deploy/installroot/usr/share/checklists/
>
> install -m 755 -p /home/mersdk/qt/checklists/main.qml
> /home/deploy/installroot/usr/share/checklists/
>
> install -m 755 -p /home/mersdk/qt/checklists/checklists.desktop
> /home/deploy/installroot/usr/share/applications/
>
> install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/eurofox
> /home/deploy/installroot/home/nemo/checklistsdata/
>
> install -m 755 -p
> /home/mersdk/qt/checklists/checklistsdata/eurofoxEMERGENCY
> /home/deploy/installroot/home/nemo/checklistsdata/
>
> install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO1
> /home/deploy/installroot/home/nemo/checklistsdata/
>
> install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO2
> /home/deploy/installroot/home/nemo/checklistsdata/
>
> install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO3
> /home/deploy/installroot/home/nemo/checklistsdata/
>
> install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO4
> /home/deploy/installroot/home/nemo/checklistsdata/
>
> install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO5
> /home/deploy/installroot/home/nemo/checklistsdata/
>
> install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO6
> /home/deploy/installroot/home/nemo/checklistsdata/
>
> install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO7
> /home/deploy/installroot/home/nemo/checklistsdata/
>
> install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO8
> /home/deploy/installroot/home/nemo/checklistsdata/
>
> install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO9
> /home/deploy/installroot/home/nemo/checklistsdata/
>
> install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/skyArrow
> /home/deploy/installroot/home/nemo/checklistsdata/
>
> install -m 755 -p
> /home/mersdk/qt/checklists/checklistsdata/skyArrow-walkaround
> /home/deploy/installroot/home/nemo/checklistsdata/
>
> install -m 755 -p
> /home/mersdk/qt/checklists/checklistsdata/skyArrowEMERGENCY
> /home/deploy/installroot/home/nemo/checklistsdata/
>
> + /usr/lib/rpm/find-debuginfo.sh --strict-build-id
> /home/mersdk/qt/checklists/
>
> .
>
>
>  Processing files: checklists-0.1-1.i586
>
> Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
> rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
>
> Requires: libGLESv2.so.2 libQt5Core.so.5 libQt5Gui.so.5 libQt5Network.so.5
> libQt5Qml.so.5 libQt5Quick.so.5 libc.so.6 libc.so.6(GLIBC_2.0)
> libgcc_s.so.1 libgcc_s.so.1(GCC_3.0) libm.so.6 libpthread.so.0
> libstdc++.so.6 libstdc++.so.6(CXXABI_1.3) libstdc++.so.6(GLIBCXX_3.4)
> rtld(GNU_HASH)
>
> Processing files: checklists-debugsource-0.1-1.i586
>
> Processing files: checklists-debuginfo-0.1-1.i586
>
> Provides: debuginfo(build-id) = 3196c82eb7247c3f8a80152b57c0863007c4c887
>
> Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
> rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
>
> Checking for unpackaged file(s): /usr/lib/rpm/check-files
> /home/deploy/installroot
>
> error:
>
>
>
>  RPM build errors:
>
> Installed (but unpackaged) file(s) found:
>
> /home/nemo/checklistsdata/GEO1
>
> /home/nemo/checklistsdata/GEO2
>
> /home/nemo/checklistsdata/GEO3
>
> /home/nemo/checklistsdata/GEO4
>
> /home/nemo/checklistsdata/GEO5
>
> /home/nemo/checklistsdata/GEO6
>
> /home/nemo/checklistsdata/GEO7
>
> /home/nemo

[SailfishDevel] installing extra files via rpm

2013-11-20 Thread Wim de Vries

Hi,
I am able to deploy via RPM. Or better, QtCreator is able to do it ;-)
Still, I need to install some data files as well.
pro file:

data.files = checklistsdata/*
OTHER_FILES += \
checklistsdata/skyArrow-walkaround \
checklistsdata/skyArrowEMERGENCY \
.

In the .pri:
data.path = /home/nemo/checklistsdata
INSTALLS += target qml desktop data

As far as I understand this should be sufficient.
Still deployment fails.
Any hints?
Thanks.

Output when deploying:

nstall -m 755 -p "checklists" "/home/deploy/installroot/usr/bin/checklists"

install -m 755 -p /home/mersdk/qt/checklists/main.qml 
/home/deploy/installroot/usr/share/checklists/


cp -f -R /home/mersdk/qt/checklists/pages 
/home/deploy/installroot/usr/share/checklists/


cp -f -R /home/mersdk/qt/checklists/cover 
/home/deploy/installroot/usr/share/checklists/


cp -f -R /home/mersdk/qt/checklists/controls 
/home/deploy/installroot/usr/share/checklists/


install -m 755 -p /home/mersdk/qt/checklists/main.qml 
/home/deploy/installroot/usr/share/checklists/


install -m 755 -p /home/mersdk/qt/checklists/checklists.desktop 
/home/deploy/installroot/usr/share/applications/


install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/eurofox 
/home/deploy/installroot/home/nemo/checklistsdata/


install -m 755 -p 
/home/mersdk/qt/checklists/checklistsdata/eurofoxEMERGENCY 
/home/deploy/installroot/home/nemo/checklistsdata/


install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO1 
/home/deploy/installroot/home/nemo/checklistsdata/


install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO2 
/home/deploy/installroot/home/nemo/checklistsdata/


install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO3 
/home/deploy/installroot/home/nemo/checklistsdata/


install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO4 
/home/deploy/installroot/home/nemo/checklistsdata/


install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO5 
/home/deploy/installroot/home/nemo/checklistsdata/


install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO6 
/home/deploy/installroot/home/nemo/checklistsdata/


install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO7 
/home/deploy/installroot/home/nemo/checklistsdata/


install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO8 
/home/deploy/installroot/home/nemo/checklistsdata/


install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/GEO9 
/home/deploy/installroot/home/nemo/checklistsdata/


install -m 755 -p /home/mersdk/qt/checklists/checklistsdata/skyArrow 
/home/deploy/installroot/home/nemo/checklistsdata/


install -m 755 -p 
/home/mersdk/qt/checklists/checklistsdata/skyArrow-walkaround 
/home/deploy/installroot/home/nemo/checklistsdata/


install -m 755 -p 
/home/mersdk/qt/checklists/checklistsdata/skyArrowEMERGENCY 
/home/deploy/installroot/home/nemo/checklistsdata/


+ /usr/lib/rpm/find-debuginfo.sh --strict-build-id 
/home/mersdk/qt/checklists/


.


Processing files: checklists-0.1-1.i586

Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 
rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1


Requires: libGLESv2.so.2 libQt5Core.so.5 libQt5Gui.so.5 
libQt5Network.so.5 libQt5Qml.so.5 libQt5Quick.so.5 libc.so.6 
libc.so.6(GLIBC_2.0) libgcc_s.so.1 libgcc_s.so.1(GCC_3.0) libm.so.6 
libpthread.so.0 libstdc++.so.6 libstdc++.so.6(CXXABI_1.3) 
libstdc++.so.6(GLIBCXX_3.4) rtld(GNU_HASH)


Processing files: checklists-debugsource-0.1-1.i586

Processing files: checklists-debuginfo-0.1-1.i586

Provides: debuginfo(build-id) = 3196c82eb7247c3f8a80152b57c0863007c4c887

Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 
rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1


Checking for unpackaged file(s): /usr/lib/rpm/check-files 
/home/deploy/installroot


error:



RPM build errors:

Installed (but unpackaged) file(s) found:

/home/nemo/checklistsdata/GEO1

/home/nemo/checklistsdata/GEO2

/home/nemo/checklistsdata/GEO3

/home/nemo/checklistsdata/GEO4

/home/nemo/checklistsdata/GEO5

/home/nemo/checklistsdata/GEO6

/home/nemo/checklistsdata/GEO7

/home/nemo/checklistsdata/GEO8

/home/nemo/checklistsdata/GEO9

/home/nemo/checklistsdata/eurofox

/home/nemo/checklistsdata/eurofoxEMERGENCY

/home/nemo/checklistsdata/skyArrow

/home/nemo/checklistsdata/skyArrow-walkaround

/home/nemo/checklistsdata/skyArrowEMERGENCY

Installed (but unpackaged) file(s) found:

/home/nemo/checklistsdata/GEO1

/home/nemo/checklistsdata/GEO2

/home/nemo/checklistsdata/GEO3

/home/nemo/checklistsdata/GEO4

/home/nemo/checklistsdata/GEO5

/home/nemo/checklistsdata/GEO6

/home/nemo/checklistsdata/GEO7

/home/nemo/checklistsdata/GEO8

/home/nemo/checklistsdata/GEO9

/home/nemo/checklistsdata/eurofox

/home/nemo/checklistsdata/eurofoxEMERGENCY

/home/nemo/checklistsdata/skyArrow

/home/nemo/checklistsdata/skyArrow-walkaround

/home/nemo/checklistsdata/skyArrowEMERGENCY



receiving incremental file list

drwxr-xr-x 4096 2013/11/20 14:24: