Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt5 broken or why -QtCore and -pthread are not found.



  • I have wrote a Qt application for Symbian and Meego using Qt4 - now I took sources and try to bring application to Android. I installed the latest open source binary release on windows.

    About note tells me:
    Qt Creator 3.0.1
    Based on Qt 5.2.1 (MSVC 2010, 32 bit)
    Built on Jan 31 2014 at 05:16:27
    From revision 51af63bb9e

    After few minor SW changes needed from Qt4-->Qt5 it otherwise seems to get build smoothly, except QtCore nor pthread are found:
    c:/users/mertama/appdata/local/android/android-ndk-r9d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld.exe: error: cannot find -lQtCore
    makefile:213: recipe for target 'libqmics.so' failed
    c:/users/mertama/appdata/local/android/android-ndk-r9d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld.exe: error: cannot find -lpthread

    ...When I looked from my C:\Qt folder there was no libqtcore. * etc files available for Android (or libpthread. *), however libqt5core. * files are there.

    Should those libraries be there? If yes, does anyone else have they there in the installation?`- Could my installation be broken or is the Qt installer broken?


Log in to reply