[SailfishDevel] RPM build error
Dylan Van Assche
dylan.van.assche at protonmail.com
Wed Aug 15 15:58:38 UTC 2018
Hi Martin,
Oh okay :) I'm still struggling with the spec file.
If I remove those lines I mentioned the build fails again.
My goal: Remove the icons, desktop file, ... to reduce it to a simple command line tool: qrail-tests in the terminal should be the only thing I need.
I updated my source code on the development branch. It's building but with a desktop file, icons, ...
Kind regards,
Dylan
Sent with [ProtonMail](https://protonmail.com) Secure Email.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On 15 August 2018 9:04 AM, Martin Kampas <martin.kampas at jolla.com> wrote:
> Hi Dylan,
>
> Sounds reasonable. The "console" CONFIG option will have any effect on win32-only. It is not needed on other OSes.
>
> BR,
> Martin
>
> ---------------------------------------------------------------
>
> From: Devel [devel-bounces at lists.sailfishos.org] on behalf of Dylan Van Assche via Devel [devel at lists.sailfishos.org]
> Sent: Wednesday, August 15, 2018 9:34 AM
> To: Sailfish OS Developers mailing list
> Subject: Re: [SailfishDevel] RPM build error
>
> Hi,
>
> Thanks for the help! Removing that line in my spec file fixed the problem.
> David's solution is the same by adding some stuff to copy for that line in the spec file and works too :)
>
> Since we're talking about spec files, I only care about a simple console application for the tests.
> If I remove the following things from the spec file:
> - %{_datadir}/applications/%{name}.desktop
> - %{_datadir}/icons/hicolor/*/apps/%{name}.png
>
> And set the CONFIG in the pro file from sailfishapp to console I can build a console application for Sailfish OS I think?
>
> Kind regards,
> Dylan Van Assche
>
> Sent with [ProtonMail](https://protonmail.com) Secure Email.
>
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> On 15 August 2018 6:02 AM, Martin Kampas <martin.kampas at jolla.com> wrote:
>
>> Hi Dylan,
>>
>> I believe the reason for this error is that you list "%{_datadir}/%{name}" under the "%files" section in qrail.spec while it is not being created by the "%install" step. I couldn't verify because for me there are more errors that prevent the build to proceed that far.
>>
>> BR,
>> Martin
>>
>> ---------------------------------------------------------------
>>
>> From: Devel [devel-bounces at lists.sailfishos.org] on behalf of Dylan Van Assche via Devel [devel at lists.sailfishos.org]
>> Sent: Tuesday, August 14, 2018 8:20 PM
>> To: Sailfish OS Developers mailing list
>> Subject: [SailfishDevel] RPM build error
>>
>> Hi,
>>
>> I'm having some trouble with building my test application for my QRail shared library.
>> The RPM can't be build for some reason, I'm not sure why...
>>
>> error: File not found: /home/deploy/installroot/usr/share/qrail-tests File not found: /home/deploy/installroot/usr/share/qrail-tests
>>
>> 19:58:02: The process "/home/dylan/.config/SailfishOS-SDK/mer-sdk-tools/Sailfish OS Build Engine/SailfishOS-2.2.0.29-armv7hl/deploy" exited with code 1.
>> Error while building/deploying project qrail-tests (kit: SailfishOS-2.2.0.29-armv7hl (in Sailfish OS Build Engine))
>> The kit SailfishOS-2.2.0.29-armv7hl (in Sailfish OS Build Engine) has configuration issues which might be the root cause for this problem.
>> When executing step "RPM"
>>
>> I haven't seen this error in any other project I did with the Sailfish SDK, I haven absolutely no idea what the cause of this is.
>> Here's a link to my Github repo where you can find my code: https://github.com/DylanVanAssche/QRail. The application is in the folder 'tests', which provides tests for the QRail library.
>>
>> Any idea's?
>>
>> Kind regards,
>> Dylan Van Assche
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20180815/f932e440/attachment.html>
More information about the Devel
mailing list