Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Error while deploying NFC qt code to android:
Qt 6.11 is out! See what's new in the release blog

Error while deploying NFC qt code to android:

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 1.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RohitIti
    wrote on last edited by RohitIti
    #1

    Error while deploying qt code to android:

    W System : ClassLoader referenced unknown path:
    W linker : /data/data/org.qtproject.example.NFC_Research/qt-reserved-files/plugins/platforms/android/libqtforandroid.so: is missing DT_SONAME will use basename as a replacement: "libqtforandroid.so"

    Whats this issue and how to resolve this ?

    below is my code:
    **MainWindow.cpp
    **
    manager = new QNearFieldManager(this);

        if(manager->isAvailable())
        {
            qDebug() << " Nfc is availiable";
        }
        else
        {
            qDebug() << " Nfc is not availiable";
            qWarning() << "NFC not available";
        }
        manager->setTargetAccessModes(QNearFieldManager::NdefReadTargetAccess);
        manager->registerNdefMessageHandler(this, SLOT(handleNdefMessage(QNdefMessage,QNearFieldTarget*)));
    
        connect(manager,SIGNAL(targetDetected(QNearFieldTarget*)),this,SLOT(nfcTargetDetected(QNearFieldTarget*)));
        connect(manager,SIGNAL(targetLost(QNearFieldTarget*)),this, SLOT(nfcTargetLost(QNearFieldTarget*)));
    
    
    if (!manager->startTargetDetection()) {
        qWarning() << "NFC target detection could not be started";
    }
    

    main.cpp
    QApplication a(argc, argv);
    MainWindow w;
    w.show();

    1 Reply Last reply
    0
    • jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      It looks more like a warning and not an error.
      Is the application deployed and does it run?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • R Offline
        R Offline
        RohitIti
        wrote on last edited by
        #3

        application id deployed but doesn't work because according to what i understand is that qt will create all libraries required to run in android device. libqtforandroid.so is a core library for running qt code .

        NFC always say as it is not available where as phone supports nfc. This can also be linked for my thread " QT NFC not working".

        Can you tell how to use nfc in qt . Examples that are there in qt are not working. When ever i use the code that i posted it will always say as nfc not availiable.

        1 Reply Last reply
        0
        • jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Which Qt version are you using?
          NFC support for Android was added in 5.6

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved