<div>Hi,<br></div><div><br></div><div>Thanks for the help! Removing that line in my spec file fixed the problem.<br></div><div>David's solution is the same by adding some stuff to copy for that line in the spec file and works too :)<br></div><div><br></div><div>Since we're talking about spec files, I only care about a simple console application for the tests.<br></div><div>If I remove the following things from the spec file:<br></div><div>- <i>%{_datadir}/applications/%{name}.desktop</i><br>-<i> %{_datadir}/icons/hicolor/*/apps/%{name}.png</i></div><div><br></div><div>And set the CONFIG in the pro file from <i>sailfishapp</i> to <i>console</i> I can build a console application for Sailfish OS I think?<br></div><div><br></div><div>Kind regards,<br></div><div>Dylan Van Assche<br></div><div><br></div><div class="protonmail_signature_block"><div class="protonmail_signature_block-user protonmail_signature_block-empty"><div><br></div></div><div class="protonmail_signature_block-proton">Sent with <a target="_blank" href="https://protonmail.com">ProtonMail</a> Secure Email.<br></div></div><div><br></div><div>‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐<br></div><div> On 15 August 2018 6:02 AM, Martin Kampas <martin.kampas@jolla.com> wrote:<br></div><div> <br></div><blockquote type="cite" class="protonmail_quote"><div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><div>Hi Dylan,<br></div><div><br></div><div>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></div><div><br></div><div>BR,<br></div><div>Martin<br></div><div><br></div><div style="font-family: Times New Roman; color: #000000; font-size: 16px"><div><hr tabindex="-1"><br></div><div id="divRpF296579" style="direction: ltr;"><span style="font-family:Tahoma" class="font"><span style="font-size:13px" class="size"><span style="color:#000000" class="colour"><b>From:</b> Devel [devel-bounces@lists.sailfishos.org] on behalf of Dylan Van Assche via Devel [devel@lists.sailfishos.org]<br> <b>Sent:</b> Tuesday, August 14, 2018 8:20 PM<br> <b>To:</b> Sailfish OS Developers mailing list<br> <b>Subject:</b> [SailfishDevel] RPM build error<br> </span></span></span></div><div><br></div><div><div>Hi,<br></div><div><br></div><div>I'm having some trouble with building my test application for my QRail shared library.<br></div><div>The RPM can't be build for some reason, I'm not sure why...<br></div><div><p style="margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; text-indent:0px"><span style="color:rgb(170, 0, 0)" class="colour">error: File not found: /home/deploy/installroot/usr/share/qrail-tests</span> <span style="color:rgb(170, 0, 0)" class="colour">File not found: /home/deploy/installroot/usr/share/qrail-tests</span><br></p><div><span style="color:rgb(170, 0, 0)" class="colour">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.</span><br></div><div><span style="color:rgb(170, 0, 0)" class="colour">Error while building/deploying project qrail-tests (kit: SailfishOS-2.2.0.29-armv7hl (in Sailfish OS Build Engine))</span><br></div><div><span style="color:rgb(170, 0, 0)" class="colour">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.</span><br></div><div><span style="color:rgb(170, 0, 0)" class="colour">When executing step "RPM"</span><br></div><div><br></div></div><div class="protonmail_signature_block"><div class="protonmail_signature_block-user protonmail_signature_block-empty"><div><br></div></div></div><div><div>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.<br></div><div> Here's a link to my Github repo where you can find my code: <a href="https://github.com/DylanVanAssche/QRail" target="_blank"> https://github.com/DylanVanAssche/QRail</a>. The application is in the folder 'tests', which provides tests for the QRail library.<br></div></div><div><br></div><div>Any idea's?<br></div><div><br></div><div>Kind regards,<br></div><div>Dylan Van Assche<br></div></div></div></div></blockquote><div><br></div>