Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.5.0
-
None
Description
configure script adds local paths to gcc include and linking params when compiling the tests which enables sql plugins (psql, mysql, etc.) that are not available on android.
Then it fails when it tries to link these plugins.
The output of psql config test:
/home/bogdan/necessitas/android-ndk/toolchains/x86_64-4.9/prebuilt/linux-x86_64/bin/x86_64-linux-android-g++ -c -ffunction-sections -funwind-tables -fstack-protector -fomit-frame-pointer -fstrict-aliasing -funswitch-loops -finline-limit=300 -DANDROID -Wa,--noexecstack -std=c++11 -O2 -O2 -Wall -Wno-psabi -W -fPIE -I../../../mkspecs/android-g++ -I. -I/usr/include/postgresql -I/home/bogdan/necessitas/android-ndk/sources/cxx-stl/gnu-libstdc++/4.9/include -I/home/bogdan/necessitas/android-ndk/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86_64/include -I/home/bogdan/necessitas/android-ndk/platforms/android-21/arch-x86_64/usr/include -o psql.o psql.cpp
/home/bogdan/necessitas/android-ndk/toolchains/x86_64-4.9/prebuilt/linux-x86_64/bin/x86_64-linux-android-g++ --sysroot=/home/bogdan/necessitas/android-ndk/platforms/android-21/arch-x86_64/ -Wl,--no-undefined -Wl,-z,noexecstack -shared -o psql psql.o -L/home/bogdan/necessitas/android-ndk/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86_64 -L/home/bogdan/necessitas/android-ndk/platforms/android-21/arch-x86_64//usr/lib64 -L/usr/lib/x86_64-linux-gnu -lpq -lgnustl_shared -llog -lz -lm -ldl -lc -lgcc
Attachments
Issue Links
- is duplicated by
-
QTBUG-50244 Cross compile MySql plugin for ARM
- Closed
-
QTBUG-54993 PostgreSQL test can not pass when cross compiling
- Closed