[Interest] One question about Qt and one not...

Igor Mironchik igor.mironchik at gmail.com
Wed Jan 7 10:58:44 CET 2015


Hi. Forget my second question. I've found the solution. It's forgotten  
--sysroot="..."

But my first question is still actual. And even can I mix Qt libraries  
built with android-5 platform with another library built, say, with  
android-19 platform in one Qt-based Android application?

On Tue, 06 Jan 2015 21:43:59 +0300, Igor Mironchik  
<igor.mironchik at gmail.com> wrote:

> Hi.
>
> What Android platform used with Qt 5.4.0 prebuild binaries? I think that  
> android-5, but may be something newer?
>
> And one question off topic.
>
> I'm trying to compile Protobuf 2.6.0 for Android on Windows.
>
> In Cygwin bash I run the next command:
>
> ./configure --prefix=c:/Thirdparty/Android/protobuf/build \
> --host=arm-linux-androideabi \
> --disable-shared \
> --enable-cross-compile \
> --with-protoc=c:/Thirdparty/bin/protoc \
> CC=c:/Thirdparty/Android/NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc.exe  
> \
> CXX=c:/Thirdparty/Android/NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++.exe  
> \
> LDFLAGS=-Lc:/Thirdparty/Android/NDK/platforms/android-5/arch-arm/usr/lib  
> \
> CPPFLAGS=-Ic:/Thirdparty/Android/NDK/platforms/android-5/arch-arm/usr/include
>
> But I got the next error:
>
> configure:3474: checking whether the C compiler works
> configure:3496:  
> c:/Thirdparty/Android/NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc.exe   
> \
> -Ic:/Thirdparty/Android/NDK/platforms/android-5/arch-arm/usr/include \
> -Lc:/Thirdparty/Android/NDK/platforms/android-5/arch-arm/usr/lib  
> conftest.c  >&5
> c:/thirdparty/android/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld.exe:
> error: cannot open crtbegin_dynamic.o: No such file or directory
> c:/thirdparty/android/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld.exe:
> error: cannot open crtend_android.o: No such file or directory
> collect2.exe: error: ld returned 1 exit status
>
> What should I do else? Thank you.
>


-- 
Best Regards,
Igor Mironchik.



More information about the Interest mailing list