Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 4 Support (Qt 6) › Hoe to add androidextras in felgo4 project ?

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #25123

    Hasibul Hasan Chowdhury

    Hello, I am using zorin os and I have installed Felgo 4. Now I want to access Android services like making calls, sending/reading/editing sms, control the camera I mean everything from my application. So I need QtAndroidextras module to install into my system. How to do it manually? I have downloaded the file from qt 5.15. I have tried to add the include and src files into the project folder and add endroidextras into the .pro file but get this error message:

     

    /media/hasibul/WD_BACKUP/PROJECTS/IDE/inLinux/Felgo4-6.4.1/Felgo/gcc_64/include/QtAndroidExtras/qandroidbinder.h:46: error: jni.h: No such file or directory
    In file included from ../../../../IDE/inLinux/Felgo4-6.4.1/Felgo/gcc_64/include/QtAndroidExtras/QAndroidBinder:1,
    from ../AndroidController/widget.h:5,
    from ../AndroidController/main.cpp:1:
    ../../../../IDE/inLinux/Felgo4-6.4.1/Felgo/gcc_64/include/QtAndroidExtras/qandroidbinder.h:46:10: fatal error: jni.h: No such file or directory
    46 | #include <jni.h>
    | ^~~~~~~
    #25124

    Alex
    Felgo Team

    Hi,

    the QtAndroidExtras are still available with Qt 6 using the CorePrivate module, see https://www.qt.io/blog/qt-extras-modules-in-qt-6

    So in your CMakeLists.txt you will need:

    find_package(Qt6 REQUIRED COMPONENTS Core)
    
    and 
    
    target_link_libraries(yourAppName PRIVATE Qt::CorePrivate)

    Please also make sure you use the new replacement classes from the blog post above.

    Best,
    Alex

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded