With the environment configured,I ran the command ./run_sdp.sh,following these warning below.
Besides, I could find the device but couldn't connect it with erro “E: Device '7980fa77' connection failed: Timed out waiting for a connection from the target device. Please try connecting again. If the problem persists, try increasing the connection timeout in File->Settings->Device..”
My enviroment:
ubuntu 14.04 LTS
c++ (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ mono --version
Mono JIT compiler version 4.6.2 (Stable 4.6.2.7/08fd525 Mon Nov 14 12:30:00 UTC 2016)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen
java version "1.7.0_111"
OpenJDK Runtime Environment (IcedTea 2.6.7) (7u111-2.6.7-0ubuntu0.14.04.3)
OpenJDK 64-Bit Server VM (build 24.111-b01, mixed mode)
Android Debug Bridge version 1.0.36
Revision 302830efc153-android
SnapdragonProfiler$
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
SDPTheme/gtkrc:30: Unable to locate image file in pixmap_path: "icons/error_fff_48.png"
SDPTheme/gtkrc:31: Unable to locate image file in pixmap_path: "icons/enable_fff.png"
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
SDPTheme/gtkrc:385: Unable to find include file: "styles/startpage"
SDPTheme/gtkrc:387: Unable to find include file: "styles/statusbar"
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
(SnapdragonProfiler:10571): Gtk-WARNING **: Unable to locate theme engine in module_path: "xamarin",
I: Device added: 7980fa77 127.0.0.1
I: Device '7980fa77' discovered.
I: Device '7980fa77' ready.
I: Starting service: adb -s 7980fa77 shell LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/sdpservice -clientIP 127.0.0.1 -cmdNetPort 6500
I: Server socket 0x00000002 listening on tcp://0.0.0.0:6500
I: Listening for command net connections on port 6500...
E: Device '7980fa77' connection failed: Timed out waiting for a connection from the target device. Please try connecting again. If the problem persists, try increasing the connection timeout in File->Settings->Device..
I: Server socket 0x00000002 closed on tcp://0.0.0.0:6500
I: Device '7980fa77' ready.
What version of Snapdragon Profiler are you running? Also, what device are you attempting to connect to and what version of Android is it running?
Eric
Hi Eric,
I download the tar.gz from offficial web, I guess the version of Snapdragon Profiler is v1.5.4.
The device is an UAV call Dobby from ZeroTech co. Beijing.
The system of device is linaro, I'm not sure which system it is based on, linux or ubuntu?
But I can use adb to connect the device for terminal and adb shell to go in the device.
I use the toolchain gcc-linaro-arm-linux-gnueabihf-4.8 to compile my program and push it to device, but I can use the Android ION mechanism.
I have no idea about it....
Snapdragon Profiler currently only supports devices running Android 5.0 or higher. Some Linux distributions have ADB support integrated, which results in the device showing up in Profiler's connection window. However, the device side components of Profiler are only compatible with Android.
Eric
I guess so.
Anyway, thank you so much.
Btw, if I wanna figure out profiling info of my program on the sanpdragon device with linux, do you have any suggestion?
It really depends on what you want to profile and what tools are available in the Linux distribution you are working with. So I don't have any specific advice for you other than standard internet searches.
Eric