Qt 5.1.1 Android
-
Also, once you have downloaded and installed the android sdk, you have to run the sdk package manager and install an actual sdk version.
-
Yes. I have used Qt 5.1.1 to target windows, linux, osx, ios, and android.
-
Here are some links to help you setup creator
"Initial setup":http://qt-project.org/doc/qtcreator-2.8/creator-developing-android.html
"Deploying the application":http://qt-project.org/doc/qtcreator-2.8/creator-deploying-android.html
-
Thanks for your help! i will try it tomorrow. Does anyone has any experience with that.?
-
Hello all. As i have told you yesterday today i compiled my software for android. the whole toolchain was built like in this video :
http://www.youtube.com/watch?v=_nkhlhBwkjk
The build has been done but when i am trying to deploy i get this message
error: Cannot find ELF information.Anyone help?
-
I forget what that means, but here are a few things to check. Have you setup your device properly? Do you have a simulator working? The android sdk has a command called adb. It stands for android debug bridge. Run the following command, adb devices and make sure it shows that you have a connected device. If you are using a simulator, you have to make sure the setting in the simulator, Use host GPU is enabled.
-
i use android sdk as emulator. i don't use real android phone. android sdk isn't enough ? as you can see in the video only android sdk is used.
-
can anyone help ? i am looking for that 2 days.!
-
I had such "Cannot find ELF information" error too. Looks like it appears after project structure changes and when your android folder contains lots of outdated files.
I've just removed an android install folder (INSTALL_ROOT="/home/user/project/android" install) where the projects put all the data. And run deploy again.
I hope it will help.
-
Android folder could be found at "Projects" - >"Run" - >"Copy application data". Just press "Details" and you can change it in "Make arguments".
-
Sorry i did not saw your answer.. can you explain again in more detail how to solve this ?
-
I'm not sure that it is exactly your problem, but I had the "Cannot find ELF information" error. It appeared after my changes in the project (.pro) file. I found that the problem was connected with outdated files in the "android" output folder.
By default it is located near the *.pro file, and it named "android". But also it could be moved to another directory in settings (look “Projects” – >“Run” – >“Copy application data”).
If you remove this folder, Qt Creator will create a new one, which will be correct for the current project.
By the way it's possible just to remove "bin" inside "android" I think that its stuff can cause the error. -
ok.. i will test it and answer, but i think that is not the problem..
-
I have tested that and get the message "Unable to start 'org.qtproject.example.Name". Any ideas ?
-
Check if you really have Qt Application in your project with name "Name".
-
It should have TEMPLATE = app
-
Yes of course i have. So delete all files and changed from API 18 to API 17 and make a full rebuild without this error. The problem now is when i am trying to deploy at the begging i can see the program on emulator to pop up but one second later i get this message 'org.qtproject.example.Name' died.
I think step by step we are getting experience on that and help other users also..
Suggestions ?
Thanks -
I also have such a problem with emulator. But I didn't spend my time to solve it, because it works on my tablet pc.
The emulator is very slow and not so comfortable as a real device. -
To run it on a real device you should use "adb":http://developer.android.com/tools/help/adb.html.
The easiest way to start it - just run "adb devices".
Everything is fine if you see the device id in the list .
You should note that the API version of your apk shouldn't be greater then on your device. -
I had the same problem.
Preceding the ELF error, I also had a warning that it had not found my libfoobar.so - but the path it was using was,
build-guySolution-Android_for_arm_GCC_4_8_Qt_5_1_0-Debug/guyprojectMy workaround was to manually copy libfoobar.so to the guyproject subdirectory.
Then redeploy and no errors. (Now I just have to fix the project settings!)