← Back to team overview

ubuntu-phone team mailing list archive

Re: QtCreator doesn't connect to emulator

 

Hello Benjamin,

Le 24/06/2015 15:11, Benjamin Zeller a écrit :
Am 24.06.2015 um 15:04 schrieb Michel Renon:
Hello Benjamin,

Le 23/06/2015 21:38, Benjamin Zeller a écrit :
Hello Michel,

most likely the developer mode is not enabled in the emulator.
You can find it in "System Settings -> about this phone -> developer
mode".

Please check if that is enabled.

I've already checked and it is enabled.

Another test :
I found that I can do some adb commands from my terminal. So emulator
is ok with adb.
I could check the activation/desactivation of dev mode with adb.
Can you show the output of "adb devices -l" when the emulator is enabled?

$ adb devices -l
List of devices attached
emulator-5554          device product:occam model:Nexus_4 device:mako


Also if it detects the emulator in QtC, you should have a "log" for
every device on the devices
page. Please check what it is printing there.


When starting "bqstable" emulator :

Checking installed emulator package.
ii ubuntu-emulator 0.19-0~142~ubuntu14.04.1

Search configured emulator instances.
bqrc ubuntu=20150508,device=20150116,version=19,arch=i386
bqstable ubuntu=20150508,device=20150116,version=18,arch=i386
rtm-09 ubuntu=20150219,device=20150116,version=15,arch=i386
stable ubuntu=20150410.1,device=20150116,version=17,arch=i386
test-rc-proposed2 ubuntu=20150622.1,device=20150210,custom=20150622.1,version=170,arch=i386

Detecting device..








Do you have only the emulator? Or also any other devices attached?

only emulator, no device



It seems my problem is on QtCreator side.
I started it from cli : when I press "refresh", there is nothing in
cli output.

The context is that everything was working ok ~ one month ago.
Then, IIRC, I just performed standards updates on the host (14.04) os.

I just used QtCreator to provide IDE integration for LibreOffice [1].
It was just QtCreator opening some .pro file generated by a script.
I can't imagine that it generated any side effect on ubuntu-emulator.
Do you use the ubuntu-sdk ppa?
https://launchpad.net/~ubuntu-sdk-team/+archive/ubuntu/ppa
It has always the up 2 date version of the Ubuntu SDK.

IIRC, I installed sdk by following instructions on wiki.


As you suggested, I added that ppa, and apt-get update+upgrade, but it changed nothing for QtCreator, nor sdk.

Here are some infos of ubuntu-sdk :

$ apt-cache show ubuntu-sdk
Package: ubuntu-sdk
Priority: optional
Section: universe/devel
Installed-Size: 31
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@xxxxxxxxxxxxxxxx>
Architecture: amd64
Source: ubuntu-touch-meta
Version: 1.126.1
Depends: ubuntu-sdk-libs-dev, qtbase5-doc, qtcreator, qtcreator-doc, qtcreator-plugin-ubuntu, qtgraphicaleffects5-doc, qtmultimedia5-doc, qtscript5-doc, qtsvg5-doc, qttools5-doc, ubuntu-ui-toolkit-doc, ubuntu-ui-toolkit-examples
Filename: pool/universe/u/ubuntu-touch-meta/ubuntu-sdk_1.126.1_amd64.deb
Size: 1450
MD5sum: e5f5f95e559ce67d5a10e84b5c8a04f3
SHA1: 44ecd90ea68914596ec88f336947635da287d99e
SHA256: 5c414fb953ddb00ce283f3a1ba84382f6ea69202c14eb2e9b1d21293ff45bb79
Description-fr: Kit de développement logiciel (SDK) d'Ubuntu
Ce paquet dépend de tous les paquets du SDK (kit de développement) d'Ubuntu :
  - bibliothèques d'exécution
  -  En-têtes de développement
  - Qt Creator
  - Démos et exemples
Description-md5: c8c60bdc5002ffa80d53ba1ce3dfbd4a
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu

Package: ubuntu-sdk
Priority: optional
Section: universe/devel
Installed-Size: 31
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@xxxxxxxxxxxxxxxx>
Architecture: amd64
Source: ubuntu-touch-meta
Version: 1.126
Depends: ubuntu-sdk-libs-dev, qtbase5-doc, qtcreator, qtcreator-doc, qtcreator-plugin-ubuntu, qtgraphicaleffects5-doc, qtmultimedia5-doc, qtscript5-doc, qtsvg5-doc, qttools5-doc, ubuntu-ui-toolkit-doc, ubuntu-ui-toolkit-examples
Filename: pool/universe/u/ubuntu-touch-meta/ubuntu-sdk_1.126_amd64.deb
Size: 1448
MD5sum: ca76dee6f104bd81786271387e7ea24d
SHA1: aaa9b298526f752704d4102e9317fa2dab9987b6
SHA256: edf3425e1593fdc286e3d0938c565279878f768369b23e8fbf6c42a5db42aa85
Description-fr: Kit de développement logiciel (SDK) d'Ubuntu
Ce paquet dépend de tous les paquets du SDK (kit de développement) d'Ubuntu :
  - bibliothèques d'exécution
  -  En-têtes de développement
  - Qt Creator
  - Démos et exemples
Description-md5: c8c60bdc5002ffa80d53ba1ce3dfbd4a
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu





If necessary, I'll be able to do a new install (from scratch on a new partition) next week.


Cheers,

Michel


Follow ups

References