<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 09/01/2015 09:59, Eskil Abrahamsen
Blomfeldt wrote:<br>
</div>
<blockquote cite="mid:54AF9880.2010105@theqtcompany.com" type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
<div class="moz-cite-prefix">On 01/09/2015 09:56 AM, Harri Pasanen
wrote:<br>
</div>
<blockquote cite="mid:54AF97C7.20606@mpaja.com" type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="qrichtext" content="1">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><!--StartFragment--><span
style=" color:#000000;">I'm playing with some Java code and
hit a very elementary error:<br>
<br>
</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#000000;">JavaTalker.java:4: error: cannot
find symbol</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#000000;"> [javac] import
org.qtproject.qt5.android;</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#000000;"> [javac] ^</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#000000;"> [javac] symbol: class android</span></p>
<p style="-qt-paragraph-type:empty; margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px; color:#000000;"><br>
</p>
<p style="-qt-paragraph-type:empty; margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px; color:#000000;"><br>
So something in my project config is off, the classpath seems
wrong.<br>
</p>
<p style="-qt-paragraph-type:empty; margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px; color:#000000;"><br>
This is with Android for x86, Qt 5.4.1 build snapshot.<br>
</p>
<p style="-qt-paragraph-type:empty; margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px; color:#000000;"><br>
</p>
<p style="-qt-paragraph-type:empty; margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px; color:#000000;">Any hints
where to look?<br>
</p>
</blockquote>
<br>
org.qtproject.qt5.android is not a class. You want:<br>
<br>
import org.qtproject.qt5.android.*;<br>
<br>
to import all classes in that package.<br>
</blockquote>
<br>
Thanks, but I had a typo in the example problem, the following
should be <br>
the real deal:<br>
<br>
<meta name="qrichtext" content="1">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><!--StartFragment--><span
style=" color:#000000;">ViewHtml.java:3: error: cannot find
symbol</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#000000;"> [javac] import
org.qtproject.qt5.android.QtNative;</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#000000;"> [javac] ^</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#000000;"> [javac] symbol: class QtNative</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#000000;"> [javac] location: package
org.qtproject.qt5.android</span></p>
<br>
When I look at android-build directory, I see<br>
<br>
ls -lR android-build/src/org/qtproject/qt5/android/<br>
android-build/src/org/qtproject/qt5/android:<br>
total 4<br>
drwxrwxr-x 2 harri harri 4096 janv. 9 10:05 bindings<br>
<br>
android-build/src/org/qtproject/qt5/android/bindings:<br>
total 76<br>
-rw-r--r-- 1 harri harri 66117 janv. 9 10:05 QtActivity.java<br>
-rw-r--r-- 1 harri harri 6725 janv. 9 10:05 QtApplication.java<br>
<br>
Should the QC build have copied QtNative.java to android dir?<br>
Btw. any reason why the files there are not symlinks? <br>
<br>
Confused,<br>
<br>
Harri<br>
</body>
</html>