QtAndroid::runOnAndroidThreadSync undefined reference



  • Any idea why i am getting this link error? If you closely look "-lQt5AndroidExtras" is in there. Using NDK:17c, SDK API level 19

    C:\Android\android-ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/windows/bin/arm-linux-androideabi-g++ --s
    ysroot=C:\Android\android-ndk/platforms/android-19/arch-arm/ -Wl,-soname,libterminal.so -Wl,-rpath=C:/Qt/5.12/
    5.12.3/android_armv7/lib -Wl,--no-undefined -Wl,-z,noexecstack -shared -o libterminal.so main.obj -LC:/andrt
    st/pay/build/Temp/_4e8e3c6dbebd4dd390196140bae718a3/terminalx-build-android/src/terminal/../../src/common/ -lc
    ommon -LC:\Android\android-ndk/platforms/android-19/arch-arm/usr/lib/ -LC:/andrtst/pay/terminalx/lib/android/
    -llog4cplus -lcryptopp -larchive -lz -lcrypto -lssl -LC:/Qt/5.12/5.12.3/android_armv7/lib -lQt5Quick -LC:\Qt\5
    .12\5.12.3\android_armv7/lib -Lc:\Utils\Android\android-ndk-r18b/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a
    -lQt5Multimedia -lQt5Svg -lQt5Widgets -lQt5Gui -lQt5Qml -lQt5Network -lQt5Concurrent -lQt5Sql -lQt5SerialPort
    -lQt5AndroidExtras -lQt5Core -lGLESv2 -LC:\Android\android-ndk/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeab
    i-v7a -Lc:/android/android-ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/windows/bin/../lib/gcc/arm-linux-
    androideabi/4.9.x -lgnustl_shared -lgcc -llog -lz -lm -ldl -lc
    C:/andrtst/pay/build/Temp/_4e8e3c6dbebd4dd390196140bae718a3/terminalx-build-android/src/terminal/../../src/com
    mon/\libcommon.a(toasthelper.obj): In function qcls::android::showToast(QString const&, qcls::android::ToastD uration)': toasthelper.cpp:(.text+0x142): undefined reference toQtAndroid::runOnAndroidThreadSync(std::function<void ()
    > const&, int)'
    1>collect2.exe : error : ld returned 1 exit status [C:\andrtst\pay\build\Resources\projects\build.proj]
    Makefile:69: recipe for target 'libterminal.so' failed
    mingw32-make[1]: *** [libterminal.so] Error 1


  • Moderators

    @JImson-James
    you are using mingw32-make for an android project?!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.