<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-2022-jp">
<style type="text/css" id="owaParaStyle">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div>Hi Dylan,</div>
<div><br>
</div>
<div>That's because you never removed "sailfishapp" from CONFIG as you planned.</div>
<div><br>
</div>
<div>BR,</div>
<div>Martin</div>
<div><br>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF661068" style="direction: ltr;"><font size="2" face="Tahoma" color="#000000"><b>From:</b> Dylan Van Assche [dylan.van.assche@protonmail.com]<br>
<b>Sent:</b> Wednesday, August 15, 2018 5:58 PM<br>
<b>To:</b> Martin Kampas<br>
<b>Cc:</b> Sailfish OS Developers<br>
<b>Subject:</b> RE: [SailfishDevel] RPM build error<br>
</font><br>
</div>
<div></div>
<div>
<div>Hi Martin,<br>
</div>
<div><br>
</div>
<div>Oh okay :) I'm still struggling with the spec file.<br>
</div>
<div>If I remove those lines I mentioned the build fails again.<br>
</div>
<div><br>
</div>
<div>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.<br>
</div>
<div>I updated my source code on the development branch. It's building but with a desktop file, icons, ...<br>
</div>
<div><br>
</div>
<div>Kind regards,<br>
</div>
<div>Dylan<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 href="https://protonmail.com" target="_blank">
ProtonMail</a> Secure Email.<br>
</div>
</div>
<div><br>
</div>
<div>$B!>!>!>!>!>!>!>(B Original Message $B!>!>!>!>!>!>!>(B<br>
</div>
<div>On 15 August 2018 9:04 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>Sounds reasonable. The "console" CONFIG option will have any effect on win32-only. It is not needed on other OSes.<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="divRpF227986" style="direction:ltr"><span class="font" style="font-family:Tahoma"><span class="size" style="font-size:13px"><span class="colour" style="color:#000000"><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> Wednesday, August 15, 2018 9:34 AM<br>
<b>To:</b> Sailfish OS Developers mailing list<br>
<b>Subject:</b> Re: [SailfishDevel] RPM build error<br>
</span></span></span></div>
<div><br>
</div>
<div>
<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>
<div>- <i>%{_datadir}/applications/%{name}.desktop</i><br>
</div>
<div>-<i> %{_datadir}/icons/hicolor/*/apps/%{name}.png</i><br>
</div>
</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 href="https://protonmail.com" target="_blank">
ProtonMail</a> Secure Email.<br>
</div>
</div>
<div><br>
</div>
<div>$B!>!>!>!>!>!>!>(B Original Message $B!>!>!>!>!>!>!>(B<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 class="font" style="font-family:Tahoma"><span class="size" style="font-size:13px"><span class="colour" style="color:rgb(0,0,0)"><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</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 class="colour" style="color:rgb(170,0,0)">error: File not found: /home/deploy/installroot/usr/share/qrail-tests</span>
<span class="colour" style="color:rgb(170,0,0)">File not found: /home/deploy/installroot/usr/share/qrail-tests</span><br>
</p>
<div><span class="colour" style="color:rgb(170,0,0)">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 class="colour" style="color:rgb(170,0,0)">Error while building/deploying project qrail-tests (kit: SailfishOS-2.2.0.29-armv7hl (in Sailfish OS Build Engine))</span><br>
</div>
<div><span class="colour" style="color:rgb(170,0,0)">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 class="colour" style="color:rgb(170,0,0)">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>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
</div>
</div>
</div>
</body>
</html>