<div dir="ltr"><div><div><div>Hi,<br></div>the exercice is a theorical one, not a practical one ("For balancebox activity, how will you approach the unit test for this specific activity, what would you test and how?" for those who wonder).<br></div>This issue is probably the only difficult one the student will have to search for during gsoc so it would be better to later dig more yourself before asking for help and more rewarding.<br></div><div><br></div>Johnny<br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-04-03 6:32 GMT+02:00 Himanshu Vishwakarma <span dir="ltr"><<a href="mailto:himvish997@gmail.com" target="_blank">himvish997@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Currently, I am working on GSoC exercise as given by the mentors. I<br>
facing some problem in CMAKE while compiling the qml test. My Question<br>
is:<br>
<br>
How to import the activity libraries in the test directory? So that it<br>
can use in the test.<br>
<br>
I write CMakeLists.txt file is something like this:<br>
<a href="https://paste.kde.org/pkhgy85pv" rel="noreferrer" target="_blank">https://paste.kde.org/<wbr>pkhgy85pv</a><br>
when I import the files which I going to be tested in our test file,<br>
It gives the error in the followings lines of the imported file.<br>
<br>
import QtQuick 2.6<br>
import GCompris 1.0<br>
import Box2D 2.0 as Box2D<br>
<br>
when compile, it gives the error like this: Error:<br>
~/gcompris-qt/src/activities/<wbr>balancebox/balancebox.js:30,1: module<br>
"QtQuick" version 2.6 is not installed OR module "GCompris" is not<br>
installed OR module "Box2D" is not installed.<br>
Whereas all the files of the GCompris are importing QtQuick 2.6 &&<br>
GCompris 1.0 and it compiles successfully.<br>
<br>
Currently, I am using the Qt5 version 5.6.1 and the following methods<br>
for importing in the file like this:<br>
import "../../src/activities/<wbr>balancebox"<br>
import "../../src/activities/<wbr>balancebox.js" as Activity<br>
Correct me if I am wrong.<br>
<br>
please help me !! So that I can compile the test<br>
<span class="HOEnZb"><font color="#888888">--<br>
Regards,<br>
Himanshu Vishwakarma<br>
</font></span></blockquote></div><br></div>