<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"><base href="x-msg://79/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Thanks, Jonni - that sure did the trick (that, and then adding some missing imports).</div><div><br></div><div>Regards,</div><div>Markus</div><div><br></div><br><div><div>6 okt 2013 kl. 22:50 skrev Jonni Rainisto <<a href="mailto:jonni.rainisto@jollamobile.com">jonni.rainisto@jollamobile.com</a>>:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div ocsi="0" fpstyle="1" style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; "><div style="direction: ltr; font-family: Tahoma; font-size: 10pt; ">if you change Builder from qmake to qmake5 in .yaml file you most likely will get a step further.<br><br>re, Jonni<br><div style="font-family: 'Times New Roman'; font-size: 16px; "><hr tabindex="-1"><div id="divRpF723035" style="direction: ltr; "><font face="Tahoma" size="2"><b>From:</b><span class="Apple-converted-space"> </span><a href="mailto:devel-bounces@lists.sailfishos.org">devel-bounces@lists.sailfishos.org</a> [<a href="mailto:devel-bounces@lists.sailfishos.org">devel-bounces@lists.sailfishos.org</a>] on behalf of Markus Svensson [<a href="mailto:markus.svensson@me.com">markus.svensson@me.com</a>]<br><b>Sent:</b><span class="Apple-converted-space"> </span>Sunday, October 06, 2013 10:59 PM<br><b>To:</b><span class="Apple-converted-space"> </span><a href="mailto:devel@lists.sailfishos.org">devel@lists.sailfishos.org</a><br><b>Subject:</b><span class="Apple-converted-space"> </span>Re: [SailfishDevel] Problem running "old" project on QT5<br></font><br></div><div></div><div>OK, so I finally had some time to continue working on this little project. <div><br></div><div>I've gotten the old QT4 classes out of the way and replaced with the QT5 counterparts - but I can't get the QT5 includes to stick. The compiler output clearly shows that it's still using the QT4 headers:</div><div><br></div><div><div style="margin: 0px; ">g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -m32 -march=core2 -mssse3 -mtune=atom -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer -Wall -W -D_REENTRANT -DDEPLOYMENT_PATH="\""/usr/share/SilicaNote/"\"" -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Isailfishapplication -I. -o main.o main.cpp</div><div style="margin: 0px; "><span style="color: rgb(170, 0, 0); ">main.cpp:1:22: fatal error: QQuickView: No such file or directory</span></div></div><div style="margin: 0px; "><span style="color: rgb(170, 0, 0); "><br></span></div><div style="margin: 0px; ">So, how do I update the project to use QT5? I tried editing the Makefile - but it seems to be automatically generated by QT Creator for every build?</div><div><br></div><div>Grepping for "qt4/QtGui" just gives me the Makefile:</div><div><br></div><div><div>macbook-pro:SilicaNote markus$ grep -r qt4/QtGui *</div><div>Makefile:INCPATH       = -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Isailfishapplication -I.</div><div>Binary file sailfishapplication.o matches</div></div><div><br></div><div>but I assume it's defined somewhere else what QT version is to be used? </div><div><br></div><div>I realize it would probably be easier to just create a new project in QT Creator and copy my source files to it - but I would like to understand how this works behind the scenes as well... :)</div><div><br></div><div>Thanks!</div><div><br></div><div>Regards,</div><div>Markus</div><div><br></div><div>P.S - here's the link to the code on GitHub: <a href="http://ortofta.github.io/SilicaNote/" target="_blank">http://ortofta.github.io/SilicaNote/</a></div><div><br></div><div><div>19 sep 2013 kl. 22:20 skrev Jonni Rainisto <<a href="mailto:jonni.rainisto@jollamobile.com" target="_blank">jonni.rainisto@jollamobile.com</a>>:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; word-wrap: break-word; "><div style="direction: ltr; font-family: Tahoma; font-size: 10pt; ">Hi,<br><br>Usually it helps to point to the problem if you would give url to your git repo. If not then "rgrep -i declarative *" might do the trick.<br><br>re, Jonni<br><div style="font-family: 'Times New Roman'; font-size: 16px; "><hr tabindex="-1"><div id="divRpF122779" style="direction: ltr; "><font face="Tahoma" size="2"><b>From:</b><span class="Apple-converted-space"> </span><a href="mailto:devel-bounces@lists.sailfishos.org" target="_blank">devel-bounces@lists.sailfishos.org</a><span class="Apple-converted-space"> </span>[<a href="mailto:devel-bounces@lists.sailfishos.org" target="_blank">devel-bounces@lists.sailfishos.org</a>] on behalf of Markus Svensson [<a href="mailto:markus.svensson@me.com" target="_blank">markus.svensson@me.com</a>]<br><b>Sent:</b><span class="Apple-converted-space"> </span>Thursday, September 19, 2013 10:42 PM<br><b>To:</b><span class="Apple-converted-space"> </span><a href="mailto:devel@lists.sailfishos.org" target="_blank">devel@lists.sailfishos.org</a><br><b>Subject:</b><span class="Apple-converted-space"> </span>[SailfishDevel] Problem running "old" project on QT5<br></font><br></div><div></div><div>Hi all,<div><br></div><div>I'm in the process of migrating my app from the old QT4 alpha of the SDK to the latest QT5-based version.</div><div><br></div><div>I'm running into problems when I try to deploy to the emulator:</div><div><div style="margin: 0px; "><div style="margin: 0px; "><span style="color: rgb(170, 0, 0); ">/opt/sdk/SilicaNote/opt/sdk/bin/SilicaNote: error while loading shared libraries: libQtDeclarative.so.4: cannot open shared object file: No such file or directory</span></div><div style="margin: 0px; "><span style="color: rgb(170, 0, 0); "><br></span></div><div style="margin: 0px; ">I assume there is a dependency to a QT4 library hiding somewhere in my project - does anyone have a clue where to look?</div><div style="margin: 0px; "><br></div><div style="margin: 0px; ">Thanks!</div><div style="margin: 0px; "><br></div><div style="margin: 0px; ">Regards,</div><div style="margin: 0px; ">Markus Svensson</div></div></div></div></div></div></div></blockquote></div></div></div></div></div></blockquote></div><br></body></html>