I'm just getting:<div><br></div><div>QSqlQuery::value: not positioned on a valid record</div><div><br></div><div>It's like the app is unable to write any data to the SQLite database. As I said, it does work fine when running it from Qt Creator or MADDE.</div>
<div><br></div><div><br><div class="gmail_quote">On Thu, Jun 10, 2010 at 15:57, David King <span dir="ltr"><<a href="mailto:davidk@openismus.com">davidk@openismus.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 2010-06-10 15:47, Sascha Mäkelä <<a href="mailto:sascha.makela@gmail.com" target="_blank">sascha.makela@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This how it looks now:<br>
<br>
Depends: ${shlibs:Depends}, ${misc:Depends}, libqt4-network, libqt4-sql,<br>
libqt4-sql-sqlite<br>
<br>
But still it doesn't work. Am I missing something? The app works fine when I<br>
run it in N900 from Qt Creator.<br>
</blockquote>
<br></div>
Which database provider do you use, I guess SQLite? If so, your Depends: line looks correct. When you say that the SQL parts of the application do not work, what is the problem? You could try starting your program from the terminal to check for clues in the output. Either that, or report any error messages that the application gives you.<div>
<div></div><div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks for all your help,<br>
Sascha<br>
<br>
On Thu, Jun 10, 2010 at 15:12, David King <<a href="mailto:davidk@openismus.com" target="_blank">davidk@openismus.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 2010-06-10 15:01, Sascha Mäkelä <<a href="mailto:sascha.makela@gmail.com" target="_blank">sascha.makela@gmail.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I just made a Debian package of my app. I'm using QtSql in it. But for<br>
some<br>
reason when I install the package, all the SQL things don't work. My guess<br>
is that I'm missing something in the Build-Depends line in the control<br>
file.<br>
How can I check what libs I need to add there and what are their correct<br>
names?<br>
<br>
Cheers,<br>
Sascha<br>
<br>
PS. Currently it's like this: Build-Depends: dephelper (>5), libqt4-dev,<br>
libqt4-network<br>
<br>
</blockquote>
<br>
You need to add the relevant Qt SQL provider packages to the ‘Depends:’<br>
line, not the ‘Build-Depends:’ line, as the SQL providers are plugins that<br>
are not required at build time, but at runtime. You probably want<br>
libqt4-sql-mysql or libqt4-sql-sqlite in Depends, depending on which<br>
database provider you are using.<br>
</blockquote></blockquote>
<br>
-- <br>
David King | <a href="http://amigadave.com/" target="_blank">http://amigadave.com/</a><br>
_______________________________________________<br>
maemo-developers mailing list<br>
<a href="mailto:maemo-developers@maemo.org" target="_blank">maemo-developers@maemo.org</a><br>
<a href="https://lists.maemo.org/mailman/listinfo/maemo-developers" target="_blank">https://lists.maemo.org/mailman/listinfo/maemo-developers</a><br>
</div></div></blockquote></div><br></div>