Results 1 to 1 of 1

Thread: Android Clang COmpile Error

  1. #1
    Join Date
    Dec 2007
    Location
    London
    Posts
    206
    Thanks
    40
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default Android Clang COmpile Error

    Hi All,

    I am having some problems when compiling Android projects with some resource files added.

    I have tested with all Qt 511, 5.12 and 5.13 with Android SDK Version: 26.1.1, NDK Version: 19.2.5345600.

    I have created a very simple project. And added a resource file with some data. In this case the compiler gives following error:

    Qt Code:
    1. qmlcache_loader.obj:qmlcache_loader.cpp:function QGlobalStatic<(anonymous namespace)::Registry, (anonymous namespace)::(anonymous namespace)::Q_QGS_unitRegistry::innerFunction(), (anonymous namespace)::(anonymous namespace)::Q_QGS_unitRegistry::guard>::operator()(): error: undefined reference to 'QQmlPrivate::qmlregister(QQmlPrivate::RegistrationType, void*)'
    2. clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
    3. make: *** [libAndroidResourceTest.so] Error 1
    4. 17:06:32: The process "E:\android-ndk-r19c\prebuilt\windows-x86_64\bin\make.exe" exited with code 2.
    5. Error while building/deploying project AndroidResourceTest (kit: Android for armeabi-v7a (Clang Qt 5.13.0 for Android ARMv7))
    To copy to clipboard, switch view to plain text mode 


    When I exclude the resource file, it compiles successfully. You could find the project on the attachment.

    What could be the reason?

    What is the most stable SDK and NDK version for QT at the moment?


    Thanks, regards
    Attached Files Attached Files

Similar Threads

  1. QMake THE ANDROID ARMEABI v7a NOT COMPILE DEPLOY QT
    By joaovictor in forum Qt Tools
    Replies: 1
    Last Post: 17th May 2017, 21:04
  2. Replies: 1
    Last Post: 12th January 2016, 15:16
  3. Replies: 14
    Last Post: 2nd August 2015, 23:07
  4. Configuring Qt5 to compile mysql for android
    By KShots in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 19th November 2013, 18:39
  5. Replies: 1
    Last Post: 14th August 2013, 01:09

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.