<!DOCTYPE html><html><head><style type="text/css">p { margin: 0; }</style>
<style type="text/css">body { font-family:'Times New Roman'; font-size:13px}</style>
</head>
<body><div>Thanks for this. I will try and let you know the solution worked for me !</div><div><br></div><div>regards</div><div><br></div><div>Le Thu, 13 Oct 2016 16:56:34 +0200, Michel D'HOOGE <michel.dhooge@free.fr> a Ã©crit:<br></div><br><blockquote style="margin: 0 0 0.80ex; border-left: #0000FF 2px solid; padding-left: 1ex"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt; color: #000000"><blockquote style="color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-size: 12pt; border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px; font-weight: normal; font-style: normal; text-decoration: none;"><div id="DWT282">Hello, thanks a lot the build work now !</div></blockquote><span style="font-family: Helvetica, Arial, sans-serif; font-size: 12pt;">I'm very proud: this is the 1st time I can help someone on Yocto! This means a lot to me ;-)</span><div><font face="Helvetica, Arial, sans-serif"><span style="font-size: 16px;"><br></span></font><blockquote style="color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-size: 12pt; border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px; font-weight: normal; font-style: normal; text-decoration: none;"><div id="DWT265"><span style="font-size: 12pt;">But i have another issue, i would like to install the font in /usr/lib/fonts, this is not the case for the moment (it 's for Qt5.7 use). How i can said to yocto to install font (.ttf) on this folder please ?</span></div></blockquote><span style="font-family: Helvetica, Arial, sans-serif; font-size: 12pt;">I also need to use Qt5.7, but since I'm currently on other tasks, you discover the troubles a couple of hours before me. So let's try to debug this together…</span><style>p { margin: 0; }</style><style>body { font-family:'Times New Roman'; font-size:13px}</style></div><div><span style="font-family: Helvetica, Arial, sans-serif; font-size: 12pt;"><br></span></div><div><span style="font-family: Helvetica, Arial, sans-serif; font-size: 12pt;"><b>1/</b> File </span><span style="font-size: 16px; font-family: Helvetica, Arial, sans-serif;">ttf-dejavu_2.37.bb includes (requires) `ttf.inc` that is in the same folder.</span></div><div><span style="font-size: 16px; font-family: Helvetica, Arial, sans-serif;"><b>2/</b> File ttf.inc has the following method:</span></div><div><div><span style="font-size: 16px;"><font face="courier new, courier, monaco, monospace, sans-serif">do_install() {</font></span></div><div><span style="font-size: 16px;"><font face="courier new, courier, monaco, monospace, sans-serif">    install -d ${D}${datadir}/fonts/truetype/</font></span></div><div><span style="font-size: 16px;"><font face="courier new, courier, monaco, monospace, sans-serif">    find ./ -name '*.tt[cf]' -exec install -m 0644 {} ${D}${datadir}/fonts/truetype/ \;</font></span></div><div><span style="font-size: 16px;"><font face="courier new, courier, monaco, monospace, sans-serif">}</font></span></div></div><div><font face="Helvetica, Arial, sans-serif"><span style="font-size: 16px;"><br></span></font></div><div><font face="Helvetica, Arial, sans-serif"><span style="font-size: 16px;">which is in turn appended by dejavu with:</span></font></div><div><div><span style="font-size: 16px;"><font face="courier new, courier, monaco, monospace, sans-serif">do_install_append () {</font></span></div><div><span style="font-size: 16px;"><font face="courier new, courier, monaco, monospace, sans-serif">    install -d ${D}${sysconfdir}/fonts/conf.d/</font></span></div><div><span style="font-size: 16px;"><font face="courier new, courier, monaco, monospace, sans-serif">    install -m 0644 ${WORKDIR}/30-dejavu-aliases.conf ${D}${sysconfdir}/fonts/conf.d/</font></span></div><div><span style="font-size: 16px;"><font face="courier new, courier, monaco, monospace, sans-serif">}</font></span></div><div style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;"><b><br></b></div></div><div style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;"><b>3/ </b>The log of the install task of the recipe is /tmp/work/all-poky-linux/ttf-dejavu/2.37-r7/temp/run.do_install</div><div style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;">We have:</div><div><div style="font-size: 16px;"><font face="courier new, courier, monaco, monospace, sans-serif">export datadir="/usr/share"</font></div><div><div><span style="font-size: 16px;"><font face="courier new, courier, monaco, monospace, sans-serif">export sysconfdir="/etc"</font></span></div></div><div style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;"><div><br></div></div><div style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;">I compared to my Debian system: the files are stored in the same folders. So it seems this is qt that doesn't search in the "correct" place.</div><div style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;"><br></div><div style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;"><b>4/</b> After some grepping in meta-qt5, I have:</div><div style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;"><br></div><div style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;"><div>classes/qmake5_paths.bbclass</div><div>OE_QMAKE_PATH_LIBS = "${libdir}"</div><div><br></div></div><div style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;"><div>classes/qmake5_paths.bbclass</div><div>OE_QMAKE_PATH_QT_FONTS = "${OE_QMAKE_PATH_LIBS}/fonts"</div><div><br></div></div><div style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;"><b>5/</b> But I don't know what is the best solution now. We could change the OE_QMAKE_PATH_QT_FONTS variable. But this implies to recompile many pieces, I believe.</div><div style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;"><br></div><div style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;">So I opt for changing the do_install function. The quick & dirty solution is to create a ttf-dejavu_2.37.bbappend file that totally redefine the do_install method.</div><div style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;"><br></div><div style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;"><div><div><font face="courier new, courier, monaco, monospace, sans-serif">do_install() {</font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">    install -d ${D}${datadir}/fonts/truetype/</font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">    find ./ -name '*.tt[cf]' -exec install -m 0644 {} ${D}${<b>libdir</b>}/fonts/truetype/ \;</font></div></div><div><div style="font-family: "times new roman", "new york", times, serif;"><font face="courier new, courier, monaco, monospace, sans-serif">    install -d ${D}${sysconfdir}/fonts/conf.d/</font></div><div style="font-family: "times new roman", "new york", times, serif;"><font face="courier new, courier, monaco, monospace, sans-serif">    install -m 0644 ${WORKDIR}/30-dejavu-aliases.conf ${D}${sysconfdir}/fonts/conf.d/</font></div><div style="font-family: "times new roman", "new york", times, serif;"><font face="courier new, courier, monaco, monospace, sans-serif">}</font></div></div><div><font face="courier new, courier, monaco, monospace, sans-serif"><br></font></div></div><div style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;"><br></div><div style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;">I can't test it right now, but I hope this helps you.</div><div style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;"><br></div><div style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;">Michel</div><div style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;"><br></div><div style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;"><br></div><div style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;"><br></div><div style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;"><br></div></div></div></blockquote><br><br><br><div id="M2Signature"><div>-- </div><div>Utilisant le logiciel de courrier d'Opera : <a href="http://www.opera.com/mail/">http://www.opera.com/mail/</a></div></div></body></html>