Qt Creator cannot find Android device but adb can (Ubuntu)
-
wrote on 3 Jun 2014, 19:13 last edited by
I have successfully compile and run apps on my phone using Qt 5.2.0 and Qt 5.3.0. But i formatted by pc recently and it can't seem to work now.
on my console:
@$ adb devices
List of devices attached
LGOTMS83df4d6d device
@But Qt creator will say it didn't find any devices and suggest typing abd devices in console
-
wrote on 4 Jun 2014, 07:08 last edited by
Try to look at the Device settings in QtCreator under:
Tools -> Options -> Devices
Does any of the devices show green indicator?
-
wrote on 5 Jun 2014, 14:31 last edited by
Managed to fix it. Actually, Qt was pointing to the adb in the Android SDK which is found in my home folder. If i were to cd into "~/adt-bundle-linux-x86_64-20131030/sdk/platform-tools/" and then run "./adb", it would say file not found. This is because the ./adb shipped with android bundle seems to be 32 bits.
Fixed it by installing the following
@$ apt-get install lib32z1
$ apt-get install lib32stdc++6@
1/3