error: Can't find read elf information

1,333 views
Skip to first unread message

Galerians

unread,
Oct 30, 2011, 1:09:15 PM10/30/11
to android-qt
Hello, i'm new to Necessitas, i try to develop a mobile QT
application.
I use Necessitas 0.3, i correctly configured the variable environment
(java_home and ant_home).
When i compile i get this: "Can't find read elf information".
Surprisingly the android emulator is started.
Thank's you for the help.

Here, the complete "Compile output"


Running build steps for project untitled...
Starting: "c:\users\galerians\necessitas\android\qt\480\armeabi-v7a\bin
\qmake.exe" C:\Users\Galerians\qt-mobile\untitled\untitled.pro -r -
spec android-g++ -win32
-win32 is deprecated.
The process "c:\users\galerians\necessitas\android\qt\480\armeabi-v7a
\bin\qmake.exe" exited normally.
Starting: "C:\Users\Galerians\necessitas\QtCreator\bin\make.exe" -w
make: Entering directory `C:/Users/Galerians/qt-mobile/untitled-build--
Necessitas_Qt_4_8_0_for_Android_armv7a_Release'
make: Nothing to be done for `first'.
make: Leaving directory `C:/Users/Galerians/qt-mobile/untitled-build--
Necessitas_Qt_4_8_0_for_Android_armv7a_Release'
The process "C:\Users\Galerians\necessitas\QtCreator\bin\make.exe"
exited normally.
Starting: "C:\Users\Galerians\necessitas\QtCreator\bin\make.exe"
INSTALL_ROOT="C:\Users\Galerians\qt-mobile\untitled\android" install -
w
make: Entering directory `C:/Users/Galerians/qt-mobile/untitled-build--
Necessitas_Qt_4_8_0_for_Android_armv7a_Release'
copy /y "libuntitled.so" "C:\Users\Galerians\qt-mobile\untitled\android
\libs\armeabi-v7a\libuntitled.so"
1 fichier(s) copi‚(s).
make: Leaving directory `C:/Users/Galerians/qt-mobile/untitled-build--
Necessitas_Qt_4_8_0_for_Android_armv7a_Release'
The process "C:\Users\Galerians\necessitas\QtCreator\bin\make.exe"
exited normally.
Can't find ''.
Please make sure your appication built successfully and is selected
in Appplication tab ('Run option')
Copy Qt app & libs to Android package ...
Creating package file ...
Package deploy: Running command 'C:\Users\Galerians\necessitas/apache-
ant-1.8.2/bin/ant.bat clean debug'.
Buildfile: C:\Users\Galerians\qt-mobile\untitled\android\build.xml

clean:

-set-mode-check:

-set-debug-files:

-set-debug-mode:

-debug-obfuscation-check:

-setup:
[echo] Gathering info for QtActivity...
[setup] Android SDK Tools Revision 14
[setup] Project Target: Android 2.1
[setup] API level: 7
[setup]
[setup] ------------------
[setup] Resolving library dependencies:
[setup] No library dependencies.
[setup]
[setup] ------------------
[setup]
[setup] WARNING: No minSdkVersion value set. Application will
install on all Android versions.

-build-setup:
[echo] Creating output directories if needed...
[mkdir] Created dir: C:\Users\Galerians\qt-mobile\untitled\android
\bin
[mkdir] Created dir: C:\Users\Galerians\qt-mobile\untitled\android
\bin\res
[mkdir] Created dir: C:\Users\Galerians\qt-mobile\untitled\android
\gen
[mkdir] Created dir: C:\Users\Galerians\qt-mobile\untitled\android
\bin\classes

-pre-build:

-code-gen:
[echo] ----------
[echo] Handling aidl files...
[aidl] Found 2 aidl files.
[aidl] Compiling 2 aidl files.
[echo] ----------
[echo] Handling RenderScript files...
[renderscript] No renderscript files to compile.
[echo] ----------
[echo] Handling Resources...
[aapt] Generating resource IDs...

-pre-compile:

-compile:
[javac] C:\Users\Galerians\necessitas\android-sdk\tools\ant
\build.xml:600: warning: 'includeantruntime' was not set, defaulting
to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 5 source files to C:\Users\Galerians\qt-mobile
\untitled\android\bin\classes

-post-compile:

-obfuscate:

-dex:
[dex] Converting compiled files and external libraries into C:
\Users\Galerians\qt-mobile\untitled\android\bin\classes.dex...

-crunch:
[crunch] Crunching PNG Files in source dir: C:\Users\Galerians\qt-
mobile\untitled\android\res
[crunch] To destination dir: C:\Users\Galerians\qt-mobile\untitled
\android\bin\res
[crunch] (processed image to cache entry C:\Users\Galerians\qt-
mobile\untitled\android\bin\res\drawable-hdpi\icon.png: 64% size of
source)
[crunch] (processed image to cache entry C:\Users\Galerians\qt-
mobile\untitled\android\bin\res\drawable-ldpi\icon.png: 0% size of
source)
[crunch] (processed image to cache entry C:\Users\Galerians\qt-
mobile\untitled\android\bin\res\drawable-mdpi\icon.png: 0% size of
source)
[crunch] (processed image to cache entry C:\Users\Galerians\qt-
mobile\untitled\android\bin\res\drawable\icon.png: 86% size of source)
[crunch] (processed image to cache entry C:\Users\Galerians\qt-
mobile\untitled\android\bin\res\drawable\logo.png: 91% size of source)
[crunch] Crunched 5 PNG files to update cache

-package-resources:
[aapt] Creating full resource package...

-package:
[apkbuilder] Creating QtActivity-debug-unaligned.apk and signing it
with a debug key...

-do-debug:
[zipalign] Running zip align on final apk...
[echo] Debug Package: C:\Users\Galerians\qt-mobile\untitled
\android\bin\QtActivity-debug.apk

debug:
[propertyfile] Creating new property file: C:\Users\Galerians\qt-mobile
\untitled\android\bin\build.prop
[propertyfile] Updating property file: C:\Users\Galerians\qt-mobile
\untitled\android\bin\build.prop
[propertyfile] Updating property file: C:\Users\Galerians\qt-mobile
\untitled\android\bin\build.prop
[propertyfile] Updating property file: C:\Users\Galerians\qt-mobile
\untitled\android\bin\build.prop

BUILD SUCCESSFUL
Total time: 5 seconds
Package created.
Please wait, searching for a suitable device for target:android-7.

BogDan Vatra

unread,
Oct 31, 2011, 3:58:42 PM10/31/11
to andro...@googlegroups.com
Please try to read again my post (Known issues part)

Cheers,
BogDan.

2011/10/30 Galerians <alain.g...@gmail.com>:

thaednevol

unread,
Nov 1, 2011, 10:35:43 PM11/1/11
to android-qt
Hi. Sorry, but, where is the post?

BogDan Vatra

unread,
Nov 2, 2011, 3:00:53 AM11/2/11
to andro...@googlegroups.com
The one you read about this release :)
http://groups.google.com/group/android-qt/browse_thread/thread/1d729d895b0379ed

BogDan.
2011/11/2 thaednevol <thaed...@gmail.com>:

Denis Denisov

unread,
Dec 4, 2011, 10:45:12 AM12/4/11
to andro...@googlegroups.com
I have the same problem. I have installed necessitas at ubuntu 11.10 (using http://sourceforge.net/p/necessitas/wiki/How%20to%20install%20Necessitas%20SDK/ and http://www.youtube.com/watch?v=suPeZ7XC1xk) There are some differences between qt creator at video and qt creator that i have installed (tools->options->android ...), but i think it doesn't matter. I made a project (File->new file or project... -> qt widget project -> mobile qt application) and then press "play". Firstly i have an error "not found android sdk", i have installed it (using your video). I have made an android emulator (toold->options->avd manager). When i compile i get this: "Can't find read elf information", the android emulator is started.
Then i have an error "Package installation faild."(File not found)
I don't have android device, i hope that .apk file will be at project folder (like .sis for symbian).
What should i do for fix my errors and getting .apk?

Thank you.

P.S.
I'm new to Necessitas, and linux and sorry for my english.

Ahmed AlShebli

unread,
Feb 3, 2012, 2:17:06 PM2/3/12
to andro...@googlegroups.com
First

Many thanks for the amazing Qt-Android project, I really like it, just installed, worked but need ministro ;p I'm searching why is that

I will try to tell you how I solved this issue

1 - Go to Tools -> Options - > Android in AVD Manager click add, my target was API 5 and any name .. ok .. Apply .. ok ok ok ...
2 - Now click on projects ( Found on left ) and Build Settings - > in Qt version select the last one ( The one that contains this word "API 4+"
3 - Now go to Run settings - > Run configuration - > Select the last one, which should be the last device you created

This worked for me, play around with these and it will work!

Ahmed AlShebli

unread,
Feb 7, 2012, 9:26:28 AM2/7/12
to andro...@googlegroups.com
Also try to delete the file called AndroidManifest.xml inside your project folder inside Android, then clean and rebuild
Reply all
Reply to author
Forward
0 new messages