Page moved to: http://community.kde.org/Necessitas/Qt4Creator#Setting_up_Qt_Creator
(/opt/necessitas/Android//bin/qmake by default)
--> /opt/Android/4.7.60/bin/qmake ? is 4.7.60 a running build id from qt?
You seem to have CSS turned off.
Please don't fill out this field.
Yes exactly, it's the version which will become Qt 4.8 in the future.
I just fixed a mistake on the documentation, the sourceforge wiki didn't escaped well < > chars, thanks to you it's fixed.
I've gone through the various steps to setup QtCreator above but when I try to build the gdbhelpers I get the following errors (I clicked on build all) listed in the attachment.
It looks like it's searching for the headers but not finding them.
Yes sorry it is a known issue. Reinstalling in /opt/necessitas/ will fix the problem (the installer has /opt/ by default). I make that more clear on the [How to install Necessitas SDK] page.
Wiki: How to install Necessitas SDK
That'll teach me to skim read the installation instructions. Can I get away with just moving the two installed folders into a necessitas folder?
Edit: Never mind I've removed them, and am now reinstalling.
Edit: Right that did it, is it right that Qml Dump and Qml Observer can't be compiled?
Can I get away with just moving the two installed folders into a necessitas folder?
Yes this works normally :) Although I mean it's better that you reinstalled (because of the uninstaller, but I hope you'll never uninstall!)
Right that did it, is it right that Qml Dump and Qml Observer can't be compiled?
Yes it's the same for me, I don't know if BogDan get it, but I don't think so.
Fistrly I have build android application using Eclipse ADT and ant 1.7. After installing necessitas Qt Creator I changed ant to 1.8, and build Qt C++ project normally, but have problem when deploying.
It tries to create a java package but I get errors when compiling .java files, probably it's problem with CLASSPATH:
The process "/usr/bin/make" exited normally.
Copy Qt app & libs to Android package ...
Stripping libraries, please wait
Creating package file ...
Package Creation: Running command '/usr/bin/ant debug'
[setup] Android SDK Tools Revision 9
[setup] Project Target: Android 1.6
[setup] API level: 4
[setup] Resolving library dependencies:
[setup] No library dependencies.
[setup] WARNING: No minSdkVersion value set. Application will install on all Android versions.
[setup] Importing rules file: tools/ant/main_rules.xml
[echo] Creating output directories if needed...
[echo] Generating R.java / Manifest.java from the resources...
[echo] Compiling aidl files into Java classes...
[javac] /home/ayaz/Desktop/android-sdk-linux_x86/tools/ant/main_rules.xml:361: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 12 source files to /home/ayaz/prj/untitled/android/bin/classes
[javac] /home/ayaz/prj/untitled/android/src/com/nokia/qt/android/QtActivity.java:17: cannot find symbol
[javac] symbol : class ContactsContract
[javac] location: package android.provider
[javac] import android.provider.ContactsContract;
On the step when I should build dbghelpers - QTCreator says : QT version is not properly installed, please run make install. What am I doing wrong? Please see screenshot in attachment. Thank you.
Did you install it in /opt/necessitas or in /opt/ directly ? Because it wasn't clear in the documentation when I wrote: /opt/necessitas by default, I wanted to point out that people should change it to /opt/necessitas and not let it on /opt/. I changed it.
I have the same strange thing. I ve installed in /opt/necessitas but still the same...
The problem comes from the jdk needed by the installer (by some steps of the install process) you have to take openjdk, it's less buggy than sun jdk: sudo apt-get install openjdk-6-jdk after that rerun the installer and it will works for sure. :)
i ve installed in /opt/necessitas and installed the OpenJDK ,the java path confige well.
but still had the same problem. plesase help me .. i'll waiting online. thank u.
If you encounter a problem like "QT version is not properly installed, please run make install" aftre you've manually added qmake path (figure 1), you should do the following:
sudo mkdir -p /data/data/eu.licentia.necessitas.ministro/files
sudo ln -s /opt/necessitas/Android/\<qtversion>/ qt
Then restart Qt creator and repeat "Configure Qt Creator" step of this article.
In my case it solved the problem.
anonimus_coward@anonimus_box:/opt/necessitas/Android/4.7.60/bin$ ./qmake -v
QMake version 2.01a
Using Qt version 4.8.0 in /data/data/eu.licentia.necessitas.ministro/files/qt/lib
Looks like something wrong with qmake.
Can I turn on installscript debug messages somehow?
Hi, when I reinstall the necessitas, it also can't find the QT path? Where is the config file?
I think when I uninstall it can't clear all the files,such as the shortcut of it.
Because first my installed path is /opt, so it can't find the Qt path, second, after I reinstall it, it also can't find the QT path.
Andrey "azazello" Yaromenok
probably, you can add a note, that ant 1.8.0+ required for building application (some systems still use 1.7.x, such as OpenSuse 11.3)
After having installed and configured the Necessitas Qt creator, when creating a new project, I got an error like this error :
No Qt SDK for Android installed.
Please install at least one SDK.
So, I checked in the Tools > Options > Qt, and I had configured it like this :
Qt Versions :
+ 4.8.0 -> /opt/necessitas/Android/4.7.60/bin/qmake
The Tools > Options > Android tab also seems to be correctly configured :
Android SDK Location : /media/Docs/Mes Téléchargements/android-sdk-linux_x86
Android NDK location : /home/gabriel/android-ndk-r5b
Android NDK toolchain version : arm-linux-androideabi-4.4.3
Ant location : /usr/bin/ant
Do you have an idea about what I did wrong ?
Thanks a lot !
Please run android tool from android SDK and install at least one android platform SDK (check http://sourceforge.net/p/necessitas/wiki/Setup%20Android%20SDK/ for more informations).
Excuse-me but I forgot to precise that I already had installed an android platform SDK.
I ran the android tool. Then in the available packages, I checked several of SDK Platforms (each one verifying the minimum version requires). Then I clicked on the Install selected. After dowloading and installing, the selected elements has been moved into "Installed packages".
But I still have the same problem...
Sorry for my low level of english :(
I hope you didn't had QtCreator running when you've installed Android SDK Platforms. If yes, then you have to restart QtCreator.
I did all of those cases : installation of Android platform SDK with QtCreator running, without QtCreator. And I restarted QtCreator. I'm totally lost ! :(
I don't know what I did, but now it seems to work fine. Perhaps I didn't have enough place on my computer, since it functions since I have cleaned my disk.
Maybe this document must mention that it require yum v1.8.0 or later. If not, one might wondering as the compiler give an error "Packaging Error: Command '/usr/bin/ant debug' failed.Exit code: 1"
Do you mean ant 1.8.0 ? I ask you because I don't have yum installed and it runs well.