Skip to content

Mobile and Embedded

The forum for developing everything embedded: Linux, WinCE, Symbian, MeeGo... you name it.
14.1k Topics 62.5k Posts
  • Android SDK error when "executing step "Build Android APK""

    Solved android sdk
    4
    0 Votes
    4 Posts
    4k Views
    D
    It seems installing JDK 8 solved thei ssue at hand, oen step closer!
  • Qt Bluetooth server not working with QCoreApplication

    Solved
    3
    0 Votes
    3 Posts
    791 Views
    cosmarcC
    According to the Qt team response on this reported bug Bluetooth I/O related functionality needs a running loop which is not available through QCoreApplication. Qt 5.7 has a workaround for this - using Core Foundation event dispatcher. To activate this event dispatcher you'll need to set the 'QT_EVENT_DISPATCHER_CORE_FOUNDATION=1' environment variable.
  • Qt on TK1 -- QSerialPort result in error

    Solved
    8
    0 Votes
    8 Posts
    2k Views
    SGaistS
    You're welcome ! Since you have it working now, please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)
  • Mapbox

    Unsolved
    9
    0 Votes
    9 Posts
    4k Views
    S
    This is the output I am getting when trying to run W System : ClassLoader referenced unknown path: W linker : /data/data/org.qtproject.example.mapbox/qt-reserved-files/plugins/platforms/android/libqtforandroid.so: is missing DT_SONAME will use basename as a replacement: "libqtforandroid.so" I Qt : qt start W linker : /data/data/org.qtproject.example.mapbox/qt-reserved-files/plugins/bearer/libqandroidbearer.so: is missing DT_SONAME will use basename as a replacement: "libqandroidbearer.so" W linker : /data/data/org.qtproject.example.mapbox/qt-reserved-files/plugins/position/libqtposition_android.so: is missing DT_SONAME will use basename as a replacement: "libqtposition_android.so" I QtPositioning: Positioning start D : (null):0 ((null)): QML debugging is enabled. Only use this in a safe environment. D OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true I Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: QUALCOMM Build: 10/21/15, 369a2ea, I96aee987eb I OpenGLRenderer: Initialized EGL, version 1.4 W linker : /data/data/org.qtproject.example.mapbox/qt-reserved-files/qml/QtQuick.2/libqtquick2plugin.so: is missing DT_SONAME will use basename as a replacement: "libqtquick2plugin.so" W linker : /data/data/org.qtproject.example.mapbox/qt-reserved-files/qml/QtPositioning/libdeclarative_positioning.so: is missing DT_SONAME will use basename as a replacement: "libdeclarative_positioning.so" W linker : /data/data/org.qtproject.example.mapbox/qt-reserved-files/qml/QtLocation/libdeclarative_location.so: is missing DT_SONAME will use basename as a replacement: "libdeclarative_location.so" W linker : /data/data/org.qtproject.example.mapbox/qt-reserved-files/plugins/geoservices/libqtgeoservices_mapbox.so: is missing DT_SONAME will use basename as a replacement: "libqtgeoservices_mapbox.so" W linker : /data/data/org.qtproject.example.mapbox/qt-reserved-files/plugins/imageformats/libqdds.so: is missing DT_SONAME will use basename as a replacement: "libqdds.so" W linker : /data/data/org.qtproject.example.mapbox/qt-reserved-files/plugins/imageformats/libqgif.so: is missing DT_SONAME will use basename as a replacement: "libqgif.so" W linker : /data/data/org.qtproject.example.mapbox/qt-reserved-files/plugins/imageformats/libqicns.so: is missing DT_SONAME will use basename as a replacement: "libqicns.so" W linker : /data/data/org.qtproject.example.mapbox/qt-reserved-files/plugins/imageformats/libqico.so: is missing DT_SONAME will use basename as a replacement: "libqico.so" W linker : /data/data/org.qtproject.example.mapbox/qt-reserved-files/plugins/imageformats/libqjpeg.so: is missing DT_SONAME will use basename as a replacement: "libqjpeg.so" W linker : /data/data/org.qtproject.example.mapbox/qt-reserved-files/plugins/imageformats/libqtga.so: is missing DT_SONAME will use basename as a replacement: "libqtga.so" W linker : /data/data/org.qtproject.example.mapbox/qt-reserved-files/plugins/imageformats/libqtiff.so: is missing DT_SONAME will use basename as a replacement: "libqtiff.so" W linker : /data/data/org.qtproject.example.mapbox/qt-reserved-files/plugins/imageformats/libqwbmp.so: is missing DT_SONAME will use basename as a replacement: "libqwbmp.so" W linker : /data/data/org.qtproject.example.mapbox/qt-reserved-files/plugins/imageformats/libqwebp.so: is missing DT_SONAME will use basename as a replacement: "libqwebp.so" and this is what i done to my pro file in order to test the precompiled library I found LIBS += -LC:\Users\Jason\Desktop\openssl-1.0.2\armeabi-v7a\lib INCLUDEPATH += C:\Users\Jason\Desktop\openssl-1.0.2\include\openssl Any help would be appreciated
  • QWebKit and hdhomerun streaming

    Unsolved qml video streaming qwebkit
    10
    0 Votes
    10 Posts
    5k Views
    sinmkiS
    Hi, I'm having the same issue regarding the QML Video RTP source : GStreamer; Unable to pause - "rtp://@231.1.128.20:8854" No URI handler implemented for \"rtp\"." Did you eventually got this video stream to run on Qt @Mark81 ? I'm also guessing some unsupported, most probably lacking gstream stuff.. still looking into it. I use Qt5.7.0
  • 0 Votes
    1 Posts
    807 Views
    No one has replied
  • Qt Creator Android Kit for x86 Devices

    Unsolved
    5
    0 Votes
    5 Posts
    5k Views
    M
    @jsulm I installed offline Qt package. But I opened that install binary again and I saw x86 for Android option unselected by default. I choose it only and installed to a fake directory. Then I copied related x86 folder to my real Qt directory. I solved this problem with this way. Now I can see the kit for x86 Android devices. Still I have problems running emulator but I think "just this" topic has been solved. Also can not find built APK file anywhere.
  • Hi,i met the same errror.Did you have solved it ?

    Unsolved
    1
    0 Votes
    1 Posts
    306 Views
    No one has replied
  • QML and cpp:QQuickPaintedItem paint pincharea on android

    Unsolved
    2
    0 Votes
    2 Posts
    770 Views
    zenghsingZ
    @zenghsing There are something I found. 1.I find the trimmed area is because of "this->height() < this->connectData.EmbImage->height()". EX: this->height()=400 this->connectData.EmbImage->height()=410 Then the top pixels will being delete... 2.The resize center always being in the center of object. How to set resized center to the center OF MY TWO FINGERS ?
  • How to select multipule photos in IOS native photo picker called from Qt QFileDialog

    Unsolved
    1
    0 Votes
    1 Posts
    395 Views
    No one has replied
  • What does "Direct on-device debugging" include?

    Solved
    5
    0 Votes
    5 Posts
    1k Views
    guiniG
    Thank you for checking!
  • V-play FlappyBird can't play in Android.

    Unsolved
    2
    0 Votes
    2 Posts
    546 Views
    veryqtpersonV
    Windows AppData Try to run it (Qt Creator and build) with administrative rights :)
  • Can't find stdlib.h included in cstdlib.

    Unsolved header ndk solved
    13
    0 Votes
    13 Posts
    10k Views
    lm365cnL
    @egg.nut I met the same question,how do you solve it?
  • why qt android bluetooth rfcomm always failed qt5.7

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    dbskcncD
    the code #ifndef TBLUETOOTHMANAGER_H #define TBLUETOOTHMANAGER_H #include <QObject> #include<QTimer> #include <qbluetoothaddress.h> #include <qbluetoothdevicediscoveryagent.h> #include <qbluetoothlocaldevice.h> #include <QBluetoothDeviceInfo> #include<QBluetoothSocket> #include<QBluetoothServiceDiscoveryAgent> #define SPP_UUID QString("00001101-0000-1000-8000-00805F9B34FB") class TbluetoothManager : public QObject { Q_OBJECT Q_PROPERTY(bool comOk READ comOk WRITE setComOk NOTIFY comOkChanged) Q_PROPERTY(QList<QString> bluedevices READ bluedevices WRITE setBluedevices NOTIFY bluedevicesChanged) QList<QString> m_bluedevices; bool m_comOk; public: explicit TbluetoothManager(QObject *parent = 0); QList<QString> bluedevices() const; bool comOk() const; signals: void onComData(QByteArray data); void bluedevicesChanged(QList<QString> bluedevices); void deviceDiscovered(const QBluetoothDeviceInfo &info); void comOkChanged(bool comOk); public slots: void scanBluetoothDevices(); void connectComDevices(QString device); void sl_deviceDiscovered(const QBluetoothDeviceInfo &info); void sl_comConnected(); void sl_comDisconnected(); void sl_comReadyRead(); void sl_comStateChanged(QBluetoothSocket::SocketState state); void sl_comError(QBluetoothSocket::SocketError error); void sl_serviceDiscovered(const QBluetoothServiceInfo &info); void sl_comConnectToService(); //auto gen void setBluedevices(QList<QString> bluedevices); void setComOk(bool comOk); protected: QBluetoothDeviceDiscoveryAgent * discoveryAgent; QBluetoothSocket* m_local_bluetooth_socket; QBluetoothServiceDiscoveryAgent* m_bluetooth_service_disc; QString m_com_device_addr; QBluetoothServiceInfo m_com_service_info; }; #endif // TBLUETOOTHMANAGER_H cpp: #include "tbluetoothmanager.h" #include<QBluetoothServiceInfo> #include<QDebug> TbluetoothManager::TbluetoothManager(QObject *parent) : QObject(parent) { discoveryAgent= new QBluetoothDeviceDiscoveryAgent(this); connect(discoveryAgent, SIGNAL(deviceDiscovered(QBluetoothDeviceInfo)), this, SLOT(sl_deviceDiscovered(QBluetoothDeviceInfo))); m_local_bluetooth_socket=0; m_bluetooth_service_disc= new QBluetoothServiceDiscoveryAgent(this); connect(m_bluetooth_service_disc,SIGNAL(serviceDiscovered(const QBluetoothServiceInfo&)),SLOT(sl_serviceDiscovered(const QBluetoothServiceInfo&))); } QList<QString> TbluetoothManager::bluedevices() const { return m_bluedevices; } bool TbluetoothManager::comOk() const { return m_comOk; } void TbluetoothManager::scanBluetoothDevices() { //qDebug()<<"start scan bluetooth"; m_bluedevices.clear(); emit bluedevicesChanged(m_bluedevices); discoveryAgent->start(); } void TbluetoothManager::connectComDevices(QString device) { int last_pos=device.lastIndexOf("||"); if(last_pos<0){ qDebug()<<"can not found sep in device string"; return; } int last_second_pos=device.lastIndexOf("||",last_pos-1); if(last_second_pos<0){ qDebug()<<"can not found second sep in device string"; return; } m_com_device_addr=device.mid(last_second_pos+2,last_pos-last_second_pos-2); //qDebug()<< "device addr:"<<device_addr ; QString device_uuid=device.mid(last_pos+2,100); //qDebug()<< "device uuid:"<<device_uuid ; m_bluetooth_service_disc->setRemoteAddress(QBluetoothAddress(m_com_device_addr)); m_bluetooth_service_disc->start(); } void TbluetoothManager::sl_deviceDiscovered(const QBluetoothDeviceInfo &info) { QString device=info.name()+"||"+info.address().toString()+"||"+ info.deviceUuid().toString(); m_bluedevices.append(device); emit bluedevicesChanged(m_bluedevices); qDebug()<<"one bluetooth device:"<<device; connectComDevices(device); } void TbluetoothManager::sl_comConnected() { qDebug()<< "com connected" ; setComOk(true); } void TbluetoothManager::sl_comDisconnected() { qDebug()<< "com disconnected" ; setComOk(false); } void TbluetoothManager::sl_comReadyRead() { QByteArray data=m_local_bluetooth_socket->readAll(); qDebug()<< "com rev:" <<data; } void TbluetoothManager::sl_comStateChanged(QBluetoothSocket::SocketState state) { qDebug()<< "comm state:" <<state; } void TbluetoothManager::sl_comError(QBluetoothSocket::SocketError error) { qDebug()<< "com error:" <<error; } void TbluetoothManager::sl_serviceDiscovered(const QBluetoothServiceInfo &info) { qDebug()<< "service addr:" <<info.device().address().toString()<<"mcom addr:"<<m_com_device_addr <<"service uuid:"<<info.serviceUuid().toString(); if (info.device().address().toString()==m_com_device_addr) { QTimer::singleShot(10,[&]{ qDebug()<< "stop service disc" ; m_bluetooth_service_disc->stop();; }); m_com_service_info=info; QTimer::singleShot(1000,this,SLOT(sl_comConnectToService())); //m_local_bluetooth_socket->connectToService(info); } } void TbluetoothManager::sl_comConnectToService() { qDebug()<< "connect to addr:"<<m_com_service_info.device().address().toString()<<"suuid:"<<m_com_service_info.serviceUuid().toString() ; if (m_local_bluetooth_socket) { m_local_bluetooth_socket->deleteLater(); } m_local_bluetooth_socket=new QBluetoothSocket(QBluetoothServiceInfo::RfcommProtocol); m_local_bluetooth_socket->setPreferredSecurityFlags(QBluetooth::NoSecurity); connect(m_local_bluetooth_socket,SIGNAL(connected()), SLOT(sl_comConnected())); connect(m_local_bluetooth_socket,SIGNAL(disconnected()),SLOT(sl_comDisconnected())); connect(m_local_bluetooth_socket,SIGNAL(readyRead()),SLOT(sl_comReadyRead())); connect(m_local_bluetooth_socket,SIGNAL(stateChanged(QBluetoothSocket::SocketState)),SLOT(sl_comStateChanged(QBluetoothSocket::SocketState))); connect(m_local_bluetooth_socket,SIGNAL(error(QBluetoothSocket::SocketError)),SLOT(sl_comError(QBluetoothSocket::SocketError))); //m_local_bluetooth_socket->connectToService(m_com_service_info); m_local_bluetooth_socket->connectToService(m_com_service_info.device().address(), QBluetoothUuid(SPP_UUID)); } void TbluetoothManager::setBluedevices(QList<QString> bluedevices) { if (m_bluedevices == bluedevices) return; m_bluedevices = bluedevices; emit bluedevicesChanged(bluedevices); } void TbluetoothManager::setComOk(bool comOk) { if (m_comOk == comOk) return; m_comOk = comOk; emit comOkChanged(comOk); }
  • Wait on event

    Unsolved
    6
    0 Votes
    6 Posts
    2k Views
    K
    @raven-worx This is kinda cool! Thanks for the idea. I am going to try this as well. I will keep the results posted. here. Thanks!
  • ARMv8 android binaries

    Unsolved
    1
    0 Votes
    1 Posts
    715 Views
    No one has replied
  • Memory/Performance Management

    Unsolved memory performance
    2
    0 Votes
    2 Posts
    890 Views
    SGaistS
    Hi, Depends on the platform See number 1 What objects ? How are you creating them ? What's their lifetime ? In any case, KDAB's GammaRay is a very interesting tool. Valgrind is another one.
  • Embedded Qt Mouse Pointer Not Showing Up

    embedded qcursor cursor
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • webview cut off veritcally in mobile

    Unsolved qml webview mobile
    1
    0 Votes
    1 Posts
    534 Views
    No one has replied
  • Qt Android Problem

    Solved
    9
    0 Votes
    9 Posts
    4k Views
    I
    @kd_wala Thanks. I solved the problem: void TestClass::toast_message(const QString& text, Duration duration) { QtAndroid::runOnAndroidThread([&] { QAndroidJniObject _text = QAndroidJniObject::fromString(text); QAndroidJniObject toast = QAndroidJniObject::callStaticObjectMethod( "android/widget/Toast", "makeText", "(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;", QtAndroid::androidActivity().object(), _text.object(), jint(duration)); toast.callMethod<void>("show"); }); } This is running!