Build QT 5.10 ,configure error ,when -android-arch armeabi_v7a



  • Build QT 5.10 ,configure error ,when -android-arch armeabi_v7a

    but, Build QT 5.10 ,no errors ,when -android-arch x86



  • Command line: -prefix D:/Qt/5.10.0/QtArm -platform win32-g++ -opengl es2 -xplatform android-g++ -make-tool mingw32-make -android-arch armeabi_v7a -android-toolchain-version 4.9 -android-ndk-platform android-21 -android-ndk D:/Android/android-ndk-r10e-32 -android-sdk D:/Android/sdk -opensource -confirm-license -nomake tests -nomake examples -android-ndk-host windows -gui -widgets
    executing config test use_gold_linker

    • cd D:\Qt\5.10.0\QtArm\config.tests && D:\Android\android-ndk-r10e-32/toolchains/arm-linux-androideabi-4.9/prebuilt/windows/bin/arm-linux-androideabi-g++ -fuse-ld=gold -o conftest-out conftest.cpp

    d:/android/android-ndk-r10e-32/toolchains/arm-linux-androideabi-4.9/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld.gold.exe: error: cannot open crtbegin_dynamic.o: No such file or directory
    d:/android/android-ndk-r10e-32/toolchains/arm-linux-androideabi-4.9/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld.gold.exe: error: cannot open crtend_android.o: No such file or directory
    d:/android/android-ndk-r10e-32/toolchains/arm-linux-androideabi-4.9/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld.gold.exe: error: cannot find -lstdc++
    d:/android/android-ndk-r10e-32/toolchains/arm-linux-androideabi-4.9/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld.gold.exe: error: cannot find -lm
    d:/android/android-ndk-r10e-32/toolchains/arm-linux-androideabi-4.9/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld.gold.exe: error: cannot find -lc
    d:/android/android-ndk-r10e-32/toolchains/arm-linux-androideabi-4.9/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld.gold.exe: error: cannot find -ldl
    collect2.exe: error: ld returned 1 exit status
    test config.qtbase.tests.use_gold_linker FAILED
    executing config test verifyspec

    • cd D:\Qt\5.10.0\QtArm\config.tests\verifyspec && D:\Qt\5.10.0\QtArm\qtbase\bin\qmake.exe "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" -early "CONFIG += cross_compile" D:/Qt/5.10.0/Src/qtbase/config.tests/verifyspec
    • cd D:\Qt\5.10.0\QtArm\config.tests\verifyspec && set MAKEFLAGS=& mingw32-make

    D:\Android\android-ndk-r10e-32/toolchains/arm-linux-androideabi-4.9/prebuilt/windows/bin/arm-linux-androideabi-g++ -c -D__ANDROID_API__=21 --sysroot=D:\Android\android-ndk-r10e-32/platforms/android-21/arch-arm/ -isystem D:\Android\android-ndk-r10e-32/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem D:\Android\android-ndk-r10e-32/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi_v7a/include -fstack-protector-strong -DANDROID -O2 -O2 -std=gnu++11 -fPIC -ID:/Qt/5.10.0/Src/qtbase/config.tests/verifyspec -I. -ID:/Qt/5.10.0/Src/qtbase/mkspecs/android-g++ -o verifyspec.obj D:/Qt/5.10.0/Src/qtbase/config.tests/verifyspec/verifyspec.cpp
    D:\Android\android-ndk-r10e-32/toolchains/arm-linux-androideabi-4.9/prebuilt/windows/bin/arm-linux-androideabi-g++ --sysroot=D:\Android\android-ndk-r10e-32/platforms/android-21/arch-arm/ -Wl,-soname,libverifyspec.so -Wl,--no-undefined -Wl,-z,noexecstack -shared -o libverifyspec.so verifyspec.obj -LD:\Android\android-ndk-r10e-32/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi_v7a -Ld:/android/android-ndk-r10e-32/toolchains/arm-linux-androideabi-4.9/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.9 -lgnustl_shared -lgcc -llog -lz -lm -ldl -lc
    d:/android/android-ndk-r10e-32/toolchains/arm-linux-androideabi-4.9/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld.exe: error: cannot find -lgnustl_shared
    collect2.exe: error: ld returned 1 exit status
    Makefile:66: recipe for target 'libverifyspec.so' failed
    mingw32-make: *** [libverifyspec.so] Error 1



  • spelling mistake armeabi_v7a -> armeabi-v7a


Log in to reply
 

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