<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Error on build package *.deb on Qt Creator]]></title><description><![CDATA[<p dir="auto">Hello guys, I have a problem when you build a deb package..</p>
<p dir="auto">This is the error:<br />
[CODE]<br />
dh_clean -k<br />
dh_installdirs</p>
<h1>Add here commands to install the package into debian/unlockpass.</h1>
<p dir="auto">/usr/bin/make INSTALL_ROOT="/Users/steebono/UnlockPass/unlockpass-harmattan"/debian/unlockpass install<br />
cp -f -r /Users/steebono/UnlockPass/unlockpass/qml/unlockpass /Users/steebono/UnlockPass/unlockpass-harmattan/debian/unlockpass/opt/unlockpass/qml/<br />
install -m 644 -p /Users/steebono/UnlockPass/unlockpass/unlockpass80.png /Users/steebono/UnlockPass/unlockpass-harmattan/debian/unlockpass/usr/share/icons/hicolor/80x80/apps/<br />
install -m 644 -p /Users/steebono/UnlockPass/unlockpass/unlockpass_harmattan.desktop /Users/steebono/UnlockPass/unlockpass-harmattan/debian/unlockpass/usr/share/applications/<br />
install -m 755 -p "unlockpass" "/Users/steebono/UnlockPass/unlockpass-harmattan/debian/unlockpass/opt/unlockpass/bin/unlockpass"<br />
install -m 755 -p /Users/steebono/UnlockPass/unlockpass/unlockpass.conf /Users/steebono/UnlockPass/unlockpass-harmattan/debian/unlockpass/etc/init/apps/<br />
dh_testdir<br />
dh_testroot<br />
dh_installchangelogs<br />
dh_installdocs<br />
dh_installexamples<br />
dh_installman<br />
dh_link<br />
dh_strip<br />
dh_compress<br />
dh_fixperms<br />
dh_installdeb<br />
find: -printf: unknown option<br />
dh_installdeb: command returned error code<br />
make: *** [binary-arch] Error 1<br />
dpkg-buildpackage: failure: debian/rules binary gave error exit status 2<br />
Packaging Error: Command '/Users/steebono/QtSDK/Madde/bin/mad dpkg-buildpackage -nc -uc -us' failed.Exit code: 2<br />
Error while building project unlockpass (target: Harmattan)<br />
When executing build step 'Create Debian Package'<br />
[/CODE]</p>
<p dir="auto">It only happens when the *. Pro ​​file add these lines of code:<br />
[CODE]<br />
daemonconf.path = /etc/init/apps/<br />
daemonconf.files = unlockpass.conf<br />
INSTALLS += daemonconf<br />
[/CODE]<br />
while if I put for example it do not give me no error:<br />
[CODE]<br />
daemonconf.path = /opt/unlockpass/bin/<br />
daemonconf.files = unlockpass.conf<br />
INSTALLS += daemonconf<br />
[/CODE]</p>
]]></description><link>https://forum.qt.io/topic/29709/error-on-build-package-deb-on-qt-creator</link><generator>RSS for Node</generator><lastBuildDate>Mon, 21 Sep 2026 05:24:52 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/29709.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 21 Jul 2013 17:09:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Error on build package *.deb on Qt Creator on Thu, 25 Jul 2013 09:47:45 GMT]]></title><description><![CDATA[<p dir="auto">Something like</p>
<p dir="auto">@<br />
#!/bin/bash<br />
DEBFILES_DIR=./debfiles &lt;- Folder containing the configuration files for myapp and for building the deb package<br />
BASE_DIR=../debian<br />
DEBIAN_DIR=$BASE_DIR/DEBIAN<br />
BIN_DIR=$BASE_DIR/usr/local/bin<br />
ETC_DIR=$BASE_DIR/etc</p>
<p dir="auto">rm -rf $BASE_DIR</p>
<p dir="auto">mkdir -p $DEBIAN_DIR<br />
mkdir -p $BIN_DIR<br />
mkdir -p $ETC_DIR/init.d</p>
<p dir="auto">cp -a ../myapp_shadow_build/bin/myapp $BIN_DIR/</p>
<p dir="auto">cp $DEBFILES_DIR/myapp.init $ETC_DIR/init.d/myapp</p>
<p dir="auto">cp $DEBFILES_DIR/control $DEBIAN_DIR/ &lt;- package configuration file<br />
cp $DEBFILES_DIR/postinst $DEBIAN_DIR/ &lt;- package configuration file<br />
cp $DEBFILES_DIR/prerm $DEBIAN_DIR/ &lt;- package configuration file</p>
<p dir="auto">chmod 0775 $DEBIAN_DIR/control<br />
chmod 0775 $DEBIAN_DIR/postinst<br />
chmod 0775 $DEBIAN_DIR/prerm<br />
dpkg-deb --build ../debian ../mypackage_0.1-amd64.deb &lt;- change the architecture accordingly<br />
@</p>
<p dir="auto">Hope it helps</p>
]]></description><link>https://forum.qt.io/post/187777</link><guid isPermaLink="true">https://forum.qt.io/post/187777</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Thu, 25 Jul 2013 09:47:45 GMT</pubDate></item><item><title><![CDATA[Reply to Error on build package *.deb on Qt Creator on Mon, 22 Jul 2013 22:40:53 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for your help.. I tried but do not think I have succeeded, because I did not understand much from the debian documentation..</p>
<p dir="auto">I tried all day..</p>
<p dir="auto">You could not give me an example where you copy a file in a folder, in the way that would serve to me?<br />
Maybe with a Qt project, which you could give me via a private message?</p>
<p dir="auto">I would be really grateful :)</p>
]]></description><link>https://forum.qt.io/post/187519</link><guid isPermaLink="true">https://forum.qt.io/post/187519</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 22 Jul 2013 22:40:53 GMT</pubDate></item><item><title><![CDATA[Reply to Error on build package *.deb on Qt Creator on Mon, 22 Jul 2013 08:16:58 GMT]]></title><description><![CDATA[<p dir="auto">You are mixing several separate things. I use a script to automate the various parts to build the deb file.</p>
<p dir="auto">As I said before, you have to create a folder to act as a "fake root" and put your various file in there like the would be on your target system.</p>
<p dir="auto">For more information search for "create deb package", you'll find several guides and the official debian documentation to help you</p>
]]></description><link>https://forum.qt.io/post/187406</link><guid isPermaLink="true">https://forum.qt.io/post/187406</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Mon, 22 Jul 2013 08:16:58 GMT</pubDate></item><item><title><![CDATA[Reply to Error on build package *.deb on Qt Creator on Sun, 21 Jul 2013 21:16:14 GMT]]></title><description><![CDATA[<p dir="auto">Ok, but you run the script when you run the application, or when you install the *deb file? :)</p>
<p dir="auto">EDIT:</p>
<p dir="auto">In a bash script for example: how do I copy / paste a file to be put into a system folder?<br />
Because I need to have root privileges .. and for have them, on the N9, I have to put:<br />
devel-su<br />
pass: rootme</p>
<p dir="auto">sorry for my english :)</p>
<p dir="auto">EDIT 2:<br />
I tried:<br />
[CODE]<br />
#!/bin/bash<br />
devel-su<br />
echo "rootme"<br />
mv /opt/unlockpass/bin/unlockpass.conf /etc/init/apps/<br />
[/CODE]</p>
<p dir="auto">but not work..</p>
]]></description><link>https://forum.qt.io/post/187361</link><guid isPermaLink="true">https://forum.qt.io/post/187361</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Sun, 21 Jul 2013 21:16:14 GMT</pubDate></item><item><title><![CDATA[Reply to Error on build package *.deb on Qt Creator on Sun, 21 Jul 2013 20:40:43 GMT]]></title><description><![CDATA[<p dir="auto">Personally, I use a bash script that creates the folder structure (you can find it the debian documentation) and copy the files at the right place. Then use debian's tool to build the archive.</p>
]]></description><link>https://forum.qt.io/post/187362</link><guid isPermaLink="true">https://forum.qt.io/post/187362</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sun, 21 Jul 2013 20:40:43 GMT</pubDate></item><item><title><![CDATA[Reply to Error on build package *.deb on Qt Creator on Sun, 21 Jul 2013 20:25:51 GMT]]></title><description><![CDATA[<p dir="auto">Not so much :)<br />
I do not know how to create a tree in a custom folder something like:<br />
myapplication/etc/init/apps<br />
myapplication/usr/bin<br />
And add the appropriate files to create the archive.</p>
]]></description><link>https://forum.qt.io/post/187360</link><guid isPermaLink="true">https://forum.qt.io/post/187360</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Sun, 21 Jul 2013 20:25:51 GMT</pubDate></item><item><title><![CDATA[Reply to Error on build package *.deb on Qt Creator on Sun, 21 Jul 2013 20:18:40 GMT]]></title><description><![CDATA[<p dir="auto">You shouldn't write in either, the idea is that you build the tree in a custom folder something like:<br />
myapplication/etc/init/apps<br />
myapplication/usr/bin<br />
etc...<br />
And add the appropriate files to create the archive.</p>
<p dir="auto">Then the tools from debian will build the archive to install everything in the right place (etc usr etc...). Otherwise you could be overwriting files in your own system.</p>
<p dir="auto">Hope I've been clearer :)</p>
]]></description><link>https://forum.qt.io/post/187359</link><guid isPermaLink="true">https://forum.qt.io/post/187359</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sun, 21 Jul 2013 20:18:40 GMT</pubDate></item><item><title><![CDATA[Reply to Error on build package *.deb on Qt Creator on Sun, 21 Jul 2013 20:13:44 GMT]]></title><description><![CDATA[<p dir="auto">Thanks to reply :)<br />
if I write this code:<br />
[CODE]<br />
daemonconf.path = /      (in the first folder of N9)<br />
daemonconf.files = unlockpass.conf<br />
INSTALLS += daemonconf<br />
[/CODE]<br />
I can build.. and the "/" folder is a “system” path that cannot be written by users.<br />
Also /opt/ is a "system" path.. but only with /etc/ not work :)</p>
]]></description><link>https://forum.qt.io/post/187357</link><guid isPermaLink="true">https://forum.qt.io/post/187357</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Sun, 21 Jul 2013 20:13:44 GMT</pubDate></item><item><title><![CDATA[Reply to Error on build package *.deb on Qt Creator on Sun, 21 Jul 2013 19:59:35 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">/etc/init/apps is a "system" path that cannot be written by users.</p>
<p dir="auto">To create your deb package, you have to create the complete tree in a dedicated folder and use that folder to build your deb archive.</p>
<p dir="auto">Hope it helps</p>
]]></description><link>https://forum.qt.io/post/187352</link><guid isPermaLink="true">https://forum.qt.io/post/187352</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sun, 21 Jul 2013 19:59:35 GMT</pubDate></item></channel></rss>