<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi All,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am new to this list, so please be gentle in correcting flaws in my post (all sorts).<o:p></o:p></p>
<p class="MsoNormal">I am trying to get a Qt5 application to run on a Wandboard (remotely debugged from a development host).<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I can get the Qt5 application running on the host machine (Ubuntu 13.10 VM).<o:p></o:p></p>
<p class="MsoNormal">This application uses sqlite to access a database.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">When I attempt to remotely debug it on the target (wandboard), I get the messages:
<o:p></o:p></p>
<p class="MsoNormal">QSqlDatabase: QSQLITE driver not loaded<o:p></o:p></p>
<p class="MsoNormal">QSqlDatabase: available drivers:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">(nothing appears in the list).<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">As I understand it, this means that I do not have the QSQLITE driver (plugin) built and installed on my target system.<o:p></o:p></p>
<p class="MsoNormal">(A search shows it to be non-existent on the target system - as opposed to simply not found)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">One of my co-workers has been successful in generating this driver (and much other important stuff) by doing a “separate install” of Qt5.1.1 onto the target machine.<o:p></o:p></p>
<p class="MsoNormal">Separate meaning that it was built external to the yocto build infrastructure (but using the cross-toolchain generated by yocto).<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">We have added Qt5 to the yocto build, using the meta-qt5 layer and following the wiki article:
<a href="http://wiki.wandboard.org/index.php/Building_Qt5_using_yocto_on_Wandboard">
http://wiki.wandboard.org/index.php/Building_Qt5_using_yocto_on_Wandboard</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">My understanding (which may or may not be correct) is that I should be able to get the appropriate libraries (and in this case plugins) cross-compiled and built for the target by using appropriate directives in the yocto build.<o:p></o:p></p>
<p class="MsoNormal">(Either as a new layer, or as modifications to the local.conf and/or the bblayers.conf)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">However, as I dig down through layers (pun intended) and layers of code, control files, documentation, etc., I am becoming horribly confused about how best to go about this.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Could some kind person give me some quick guidance on how to get the yocto build to create the QSQLITE driver plugin for the target file system (wandboard)?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks in advance.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>