Unsolved How to build MySQL driver for Android?
-
21a. i have to run sudo make
output: (only the last lines)/home/Qt/build/qtbase/bin/moc -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_NETWORK_LIB -DQT_CORE_LIB -I/home/Qt/5.7/Src/qtbase/mkspecs/android-g++ -I/home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src -I/home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src/wrappers -I/home/Qt/5.7/Src/qtbase/include/QtNetwork/5.7.1 -I/home/Qt/5.7/Src/qtbase/include/QtNetwork/5.7.1/QtNetwork -I/home/Qt/5.7/Src/qtbase/include/QtCore/5.7.1 -I/home/Qt/5.7/Src/qtbase/include/QtCore/5.7.1/QtCore -I/home/Qt/5.7/Src/qtbase/include -I/home/Qt/5.7/Src/qtbase/include/QtNetwork -I/home/Qt/build/qtbase/include -I/home/Qt/build/qtbase/include/QtNetwork -I/home/Qt/5.7/Src/qtbase/include/QtCore -I/home/Qt/build/qtbase/include/QtCore -I. -I/home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include -I/home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -I/home/all/Dokumente/android-ndk-r10e/platforms/android-16/arch-arm//usr/include /home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src/main.cpp -o .moc/main.moc /home/all/Dokumente/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -c -fstack-protector-strong -DANDROID -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -fno-builtin-memmove --sysroot=/home/all/Dokumente/android-ndk-r10e/platforms/android-16/arch-arm/ -O2 -Os -mthumb -std=c++14 -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_NETWORK_LIB -DQT_CORE_LIB -I/home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src -I. -I/home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src/wrappers -I/home/Qt/5.7/Src/qtbase/include/QtNetwork/5.7.1 -I/home/Qt/5.7/Src/qtbase/include/QtNetwork/5.7.1/QtNetwork -I/home/Qt/5.7/Src/qtbase/include/QtCore/5.7.1 -I/home/Qt/5.7/Src/qtbase/include/QtCore/5.7.1/QtCore -I/home/Qt/5.7/Src/qtbase/include -I/home/Qt/5.7/Src/qtbase/include/QtNetwork -I../../../../../include -I../../../../../include/QtNetwork -I/home/Qt/5.7/Src/qtbase/include/QtCore -I../../../../../include/QtCore -I.moc -I/home/all/Dokumente/mariadb_client-2.0.0-src/build/include -I/home/all/Dokumente/openssl-1.0.1e/include -isystem /home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem /home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -isystem /home/all/Dokumente/android-ndk-r10e/platforms/android-16/arch-arm/usr/include -I/home/Qt/5.7/Src/qtbase/mkspecs/android-g++ -o .obj/main.o /home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src/main.cpp /home/all/Dokumente/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -c -fstack-protector-strong -DANDROID -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -fno-builtin-memmove --sysroot=/home/all/Dokumente/android-ndk-r10e/platforms/android-16/arch-arm/ -O2 -Os -mthumb -std=c++14 -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_NETWORK_LIB -DQT_CORE_LIB -I/home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src -I. -I/home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src/wrappers -I/home/Qt/5.7/Src/qtbase/include/QtNetwork/5.7.1 -I/home/Qt/5.7/Src/qtbase/include/QtNetwork/5.7.1/QtNetwork -I/home/Qt/5.7/Src/qtbase/include/QtCore/5.7.1 -I/home/Qt/5.7/Src/qtbase/include/QtCore/5.7.1/QtCore -I/home/Qt/5.7/Src/qtbase/include -I/home/Qt/5.7/Src/qtbase/include/QtNetwork -I../../../../../include -I../../../../../include/QtNetwork -I/home/Qt/5.7/Src/qtbase/include/QtCore -I../../../../../include/QtCore -I.moc -I/home/all/Dokumente/mariadb_client-2.0.0-src/build/include -I/home/all/Dokumente/openssl-1.0.1e/include -isystem /home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem /home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -isystem /home/all/Dokumente/android-ndk-r10e/platforms/android-16/arch-arm/usr/include -I/home/Qt/5.7/Src/qtbase/mkspecs/android-g++ -o .obj/qandroidbearerengine.o /home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src/qandroidbearerengine.cpp /home/Qt/build/qtbase/bin/moc -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_NETWORK_LIB -DQT_CORE_LIB -I/home/Qt/5.7/Src/qtbase/mkspecs/android-g++ -I/home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src -I/home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src/wrappers -I/home/Qt/5.7/Src/qtbase/include/QtNetwork/5.7.1 -I/home/Qt/5.7/Src/qtbase/include/QtNetwork/5.7.1/QtNetwork -I/home/Qt/5.7/Src/qtbase/include/QtCore/5.7.1 -I/home/Qt/5.7/Src/qtbase/include/QtCore/5.7.1/QtCore -I/home/Qt/5.7/Src/qtbase/include -I/home/Qt/5.7/Src/qtbase/include/QtNetwork -I/home/Qt/build/qtbase/include -I/home/Qt/build/qtbase/include/QtNetwork -I/home/Qt/5.7/Src/qtbase/include/QtCore -I/home/Qt/build/qtbase/include/QtCore -I. -I/home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include -I/home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -I/home/all/Dokumente/android-ndk-r10e/platforms/android-16/arch-arm//usr/include /home/Qt/5.7/Src/qtbase/src/plugins/bearer/qnetworksession_impl.cpp -o .moc/qnetworksession_impl.moc /home/all/Dokumente/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -c -fstack-protector-strong -DANDROID -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -fno-builtin-memmove --sysroot=/home/all/Dokumente/android-ndk-r10e/platforms/android-16/arch-arm/ -O2 -Os -mthumb -std=c++14 -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_NETWORK_LIB -DQT_CORE_LIB -I/home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src -I. -I/home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src/wrappers -I/home/Qt/5.7/Src/qtbase/include/QtNetwork/5.7.1 -I/home/Qt/5.7/Src/qtbase/include/QtNetwork/5.7.1/QtNetwork -I/home/Qt/5.7/Src/qtbase/include/QtCore/5.7.1 -I/home/Qt/5.7/Src/qtbase/include/QtCore/5.7.1/QtCore -I/home/Qt/5.7/Src/qtbase/include -I/home/Qt/5.7/Src/qtbase/include/QtNetwork -I../../../../../include -I../../../../../include/QtNetwork -I/home/Qt/5.7/Src/qtbase/include/QtCore -I../../../../../include/QtCore -I.moc -I/home/all/Dokumente/mariadb_client-2.0.0-src/build/include -I/home/all/Dokumente/openssl-1.0.1e/include -isystem /home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem /home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -isystem /home/all/Dokumente/android-ndk-r10e/platforms/android-16/arch-arm/usr/include -I/home/Qt/5.7/Src/qtbase/mkspecs/android-g++ -o .obj/qnetworksession_impl.o /home/Qt/5.7/Src/qtbase/src/plugins/bearer/qnetworksession_impl.cpp /home/all/Dokumente/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -c -fstack-protector-strong -DANDROID -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -fno-builtin-memmove --sysroot=/home/all/Dokumente/android-ndk-r10e/platforms/android-16/arch-arm/ -O2 -Os -mthumb -std=c++14 -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_NETWORK_LIB -DQT_CORE_LIB -I/home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src -I. -I/home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src/wrappers -I/home/Qt/5.7/Src/qtbase/include/QtNetwork/5.7.1 -I/home/Qt/5.7/Src/qtbase/include/QtNetwork/5.7.1/QtNetwork -I/home/Qt/5.7/Src/qtbase/include/QtCore/5.7.1 -I/home/Qt/5.7/Src/qtbase/include/QtCore/5.7.1/QtCore -I/home/Qt/5.7/Src/qtbase/include -I/home/Qt/5.7/Src/qtbase/include/QtNetwork -I../../../../../include -I../../../../../include/QtNetwork -I/home/Qt/5.7/Src/qtbase/include/QtCore -I../../../../../include/QtCore -I.moc -I/home/all/Dokumente/mariadb_client-2.0.0-src/build/include -I/home/all/Dokumente/openssl-1.0.1e/include -isystem /home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem /home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -isystem /home/all/Dokumente/android-ndk-r10e/platforms/android-16/arch-arm/usr/include -I/home/Qt/5.7/Src/qtbase/mkspecs/android-g++ -o .obj/androidconnectivitymanager.o /home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src/wrappers/androidconnectivitymanager.cpp /home/Qt/build/qtbase/bin/moc -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_NETWORK_LIB -DQT_CORE_LIB -I/home/Qt/5.7/Src/qtbase/mkspecs/android-g++ -I/home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src -I/home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src/wrappers -I/home/Qt/5.7/Src/qtbase/include/QtNetwork/5.7.1 -I/home/Qt/5.7/Src/qtbase/include/QtNetwork/5.7.1/QtNetwork -I/home/Qt/5.7/Src/qtbase/include/QtCore/5.7.1 -I/home/Qt/5.7/Src/qtbase/include/QtCore/5.7.1/QtCore -I/home/Qt/5.7/Src/qtbase/include -I/home/Qt/5.7/Src/qtbase/include/QtNetwork -I/home/Qt/build/qtbase/include -I/home/Qt/build/qtbase/include/QtNetwork -I/home/Qt/5.7/Src/qtbase/include/QtCore -I/home/Qt/build/qtbase/include/QtCore -I. -I/home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include -I/home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -I/home/all/Dokumente/android-ndk-r10e/platforms/android-16/arch-arm//usr/include /home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src/qandroidbearerengine.h -o .moc/moc_qandroidbearerengine.cpp /home/all/Dokumente/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -c -fstack-protector-strong -DANDROID -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -fno-builtin-memmove --sysroot=/home/all/Dokumente/android-ndk-r10e/platforms/android-16/arch-arm/ -O2 -Os -mthumb -std=c++14 -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_NETWORK_LIB -DQT_CORE_LIB -I/home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src -I. -I/home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src/wrappers -I/home/Qt/5.7/Src/qtbase/include/QtNetwork/5.7.1 -I/home/Qt/5.7/Src/qtbase/include/QtNetwork/5.7.1/QtNetwork -I/home/Qt/5.7/Src/qtbase/include/QtCore/5.7.1 -I/home/Qt/5.7/Src/qtbase/include/QtCore/5.7.1/QtCore -I/home/Qt/5.7/Src/qtbase/include -I/home/Qt/5.7/Src/qtbase/include/QtNetwork -I../../../../../include -I../../../../../include/QtNetwork -I/home/Qt/5.7/Src/qtbase/include/QtCore -I../../../../../include/QtCore -I.moc -I/home/all/Dokumente/mariadb_client-2.0.0-src/build/include -I/home/all/Dokumente/openssl-1.0.1e/include -isystem /home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem /home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -isystem /home/all/Dokumente/android-ndk-r10e/platforms/android-16/arch-arm/usr/include -I/home/Qt/5.7/Src/qtbase/mkspecs/android-g++ -o .obj/moc_qandroidbearerengine.o .moc/moc_qandroidbearerengine.cpp /home/Qt/build/qtbase/bin/moc -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_NETWORK_LIB -DQT_CORE_LIB -I/home/Qt/5.7/Src/qtbase/mkspecs/android-g++ -I/home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src -I/home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src/wrappers -I/home/Qt/5.7/Src/qtbase/include/QtNetwork/5.7.1 -I/home/Qt/5.7/Src/qtbase/include/QtNetwork/5.7.1/QtNetwork -I/home/Qt/5.7/Src/qtbase/include/QtCore/5.7.1 -I/home/Qt/5.7/Src/qtbase/include/QtCore/5.7.1/QtCore -I/home/Qt/5.7/Src/qtbase/include -I/home/Qt/5.7/Src/qtbase/include/QtNetwork -I/home/Qt/build/qtbase/include -I/home/Qt/build/qtbase/include/QtNetwork -I/home/Qt/5.7/Src/qtbase/include/QtCore -I/home/Qt/build/qtbase/include/QtCore -I. -I/home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include -I/home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -I/home/all/Dokumente/android-ndk-r10e/platforms/android-16/arch-arm//usr/include /home/Qt/5.7/Src/qtbase/src/plugins/bearer/qnetworksession_impl.h -o .moc/moc_qnetworksession_impl.cpp /home/all/Dokumente/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -c -fstack-protector-strong -DANDROID -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -fno-builtin-memmove --sysroot=/home/all/Dokumente/android-ndk-r10e/platforms/android-16/arch-arm/ -O2 -Os -mthumb -std=c++14 -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_NETWORK_LIB -DQT_CORE_LIB -I/home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src -I. -I/home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src/wrappers -I/home/Qt/5.7/Src/qtbase/include/QtNetwork/5.7.1 -I/home/Qt/5.7/Src/qtbase/include/QtNetwork/5.7.1/QtNetwork -I/home/Qt/5.7/Src/qtbase/include/QtCore/5.7.1 -I/home/Qt/5.7/Src/qtbase/include/QtCore/5.7.1/QtCore -I/home/Qt/5.7/Src/qtbase/include -I/home/Qt/5.7/Src/qtbase/include/QtNetwork -I../../../../../include -I../../../../../include/QtNetwork -I/home/Qt/5.7/Src/qtbase/include/QtCore -I../../../../../include/QtCore -I.moc -I/home/all/Dokumente/mariadb_client-2.0.0-src/build/include -I/home/all/Dokumente/openssl-1.0.1e/include -isystem /home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem /home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -isystem /home/all/Dokumente/android-ndk-r10e/platforms/android-16/arch-arm/usr/include -I/home/Qt/5.7/Src/qtbase/mkspecs/android-g++ -o .obj/moc_qnetworksession_impl.o .moc/moc_qnetworksession_impl.cpp /home/Qt/build/qtbase/bin/moc -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_NETWORK_LIB -DQT_CORE_LIB -I/home/Qt/5.7/Src/qtbase/mkspecs/android-g++ -I/home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src -I/home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src/wrappers -I/home/Qt/5.7/Src/qtbase/include/QtNetwork/5.7.1 -I/home/Qt/5.7/Src/qtbase/include/QtNetwork/5.7.1/QtNetwork -I/home/Qt/5.7/Src/qtbase/include/QtCore/5.7.1 -I/home/Qt/5.7/Src/qtbase/include/QtCore/5.7.1/QtCore -I/home/Qt/5.7/Src/qtbase/include -I/home/Qt/5.7/Src/qtbase/include/QtNetwork -I/home/Qt/build/qtbase/include -I/home/Qt/build/qtbase/include/QtNetwork -I/home/Qt/5.7/Src/qtbase/include/QtCore -I/home/Qt/build/qtbase/include/QtCore -I. -I/home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include -I/home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -I/home/all/Dokumente/android-ndk-r10e/platforms/android-16/arch-arm//usr/include /home/Qt/5.7/Src/qtbase/src/plugins/bearer/qbearerengine_impl.h -o .moc/moc_qbearerengine_impl.cpp /home/all/Dokumente/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -c -fstack-protector-strong -DANDROID -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -fno-builtin-memmove --sysroot=/home/all/Dokumente/android-ndk-r10e/platforms/android-16/arch-arm/ -O2 -Os -mthumb -std=c++14 -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_NETWORK_LIB -DQT_CORE_LIB -I/home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src -I. -I/home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src/wrappers -I/home/Qt/5.7/Src/qtbase/include/QtNetwork/5.7.1 -I/home/Qt/5.7/Src/qtbase/include/QtNetwork/5.7.1/QtNetwork -I/home/Qt/5.7/Src/qtbase/include/QtCore/5.7.1 -I/home/Qt/5.7/Src/qtbase/include/QtCore/5.7.1/QtCore -I/home/Qt/5.7/Src/qtbase/include -I/home/Qt/5.7/Src/qtbase/include/QtNetwork -I../../../../../include -I../../../../../include/QtNetwork -I/home/Qt/5.7/Src/qtbase/include/QtCore -I../../../../../include/QtCore -I.moc -I/home/all/Dokumente/mariadb_client-2.0.0-src/build/include -I/home/all/Dokumente/openssl-1.0.1e/include -isystem /home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem /home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -isystem /home/all/Dokumente/android-ndk-r10e/platforms/android-16/arch-arm/usr/include -I/home/Qt/5.7/Src/qtbase/mkspecs/android-g++ -o .obj/moc_qbearerengine_impl.o .moc/moc_qbearerengine_impl.cpp /home/Qt/build/qtbase/bin/moc -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_NETWORK_LIB -DQT_CORE_LIB -I/home/Qt/5.7/Src/qtbase/mkspecs/android-g++ -I/home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src -I/home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src/wrappers -I/home/Qt/5.7/Src/qtbase/include/QtNetwork/5.7.1 -I/home/Qt/5.7/Src/qtbase/include/QtNetwork/5.7.1/QtNetwork -I/home/Qt/5.7/Src/qtbase/include/QtCore/5.7.1 -I/home/Qt/5.7/Src/qtbase/include/QtCore/5.7.1/QtCore -I/home/Qt/5.7/Src/qtbase/include -I/home/Qt/5.7/Src/qtbase/include/QtNetwork -I/home/Qt/build/qtbase/include -I/home/Qt/build/qtbase/include/QtNetwork -I/home/Qt/5.7/Src/qtbase/include/QtCore -I/home/Qt/build/qtbase/include/QtCore -I. -I/home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include -I/home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -I/home/all/Dokumente/android-ndk-r10e/platforms/android-16/arch-arm//usr/include /home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src/wrappers/androidconnectivitymanager.h -o .moc/moc_androidconnectivitymanager.cpp /home/all/Dokumente/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -c -fstack-protector-strong -DANDROID -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -fno-builtin-memmove --sysroot=/home/all/Dokumente/android-ndk-r10e/platforms/android-16/arch-arm/ -O2 -Os -mthumb -std=c++14 -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_NETWORK_LIB -DQT_CORE_LIB -I/home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src -I. -I/home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src/wrappers -I/home/Qt/5.7/Src/qtbase/include/QtNetwork/5.7.1 -I/home/Qt/5.7/Src/qtbase/include/QtNetwork/5.7.1/QtNetwork -I/home/Qt/5.7/Src/qtbase/include/QtCore/5.7.1 -I/home/Qt/5.7/Src/qtbase/include/QtCore/5.7.1/QtCore -I/home/Qt/5.7/Src/qtbase/include -I/home/Qt/5.7/Src/qtbase/include/QtNetwork -I../../../../../include -I../../../../../include/QtNetwork -I/home/Qt/5.7/Src/qtbase/include/QtCore -I../../../../../include/QtCore -I.moc -I/home/all/Dokumente/mariadb_client-2.0.0-src/build/include -I/home/all/Dokumente/openssl-1.0.1e/include -isystem /home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem /home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -isystem /home/all/Dokumente/android-ndk-r10e/platforms/android-16/arch-arm/usr/include -I/home/Qt/5.7/Src/qtbase/mkspecs/android-g++ -o .obj/moc_androidconnectivitymanager.o .moc/moc_androidconnectivitymanager.cpp rm -f libqandroidbearer.so /home/all/Dokumente/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ --sysroot=/home/all/Dokumente/android-ndk-r10e/platforms/android-16/arch-arm/ -Wl,--no-undefined -Wl,-z,origin -Wl,-rpath=\$ORIGIN/../../lib -Wl,--no-undefined -Wl,-z,noexecstack -shared -o libqandroidbearer.so .obj/main.o .obj/qandroidbearerengine.o .obj/qnetworksession_impl.o .obj/androidconnectivitymanager.o .obj/moc_qandroidbearerengine.o .obj/moc_qnetworksession_impl.o .obj/moc_qbearerengine_impl.o .obj/moc_androidconnectivitymanager.o -L/home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a -L/home/all/Dokumente/android-ndk-r10e/platforms/android-16/arch-arm//usr/lib -L/home/all/Dokumente/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9 -L/home/Qt/build/qtbase/lib -lQt5Network -L/home/all/Dokumente/mariadb_client-2.0.0-src/build/libmariadb -lQt5Core -lgnustl_shared -llog -lz -lm -ldl -lc -lgcc mv -f libqandroidbearer.so ../../../../../plugins/bearer/ make[6]: Verzeichnis „/home/Qt/build/qtbase/src/plugins/bearer/android/src“ wird verlassen cd jar/ && ( test -e Makefile || /home/Qt/build/qtbase/bin/qmake /home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/jar/jar.pro -qtconf /home/Qt/build/qtbase/bin/qt.conf -o Makefile ) && make -f Makefile make[6]: Verzeichnis „/home/Qt/build/qtbase/src/plugins/bearer/android/jar“ wird betreten ( test -e Makefile.distributedjar || /home/Qt/build/qtbase/bin/qmake /home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/jar/distributedjar.pro -qtconf /home/Qt/build/qtbase/bin/qt.conf -o Makefile.distributedjar ) && make -f Makefile.distributedjar Project ERROR: No suitable Android SDK platform found. Minimum version is android-16. Makefile:41: die Regel für Ziel „sub-distributedjar-pro-make_first“ scheiterte make[6]: *** [sub-distributedjar-pro-make_first] Fehler 3 make[6]: Verzeichnis „/home/Qt/build/qtbase/src/plugins/bearer/android/jar“ wird verlassen Makefile:68: die Regel für Ziel „sub-jar-make_first“ scheiterte make[5]: *** [sub-jar-make_first] Fehler 2 make[5]: Verzeichnis „/home/Qt/build/qtbase/src/plugins/bearer/android“ wird verlassen Makefile:42: die Regel für Ziel „sub-android-make_first“ scheiterte make[4]: *** [sub-android-make_first] Fehler 2 make[4]: Verzeichnis „/home/Qt/build/qtbase/src/plugins/bearer“ wird verlassen Makefile:73: die Regel für Ziel „sub-bearer-make_first“ scheiterte make[3]: *** [sub-bearer-make_first] Fehler 2 make[3]: Verzeichnis „/home/Qt/build/qtbase/src/plugins“ wird verlassen Makefile:666: die Regel für Ziel „sub-plugins-make_first“ scheiterte make[2]: *** [sub-plugins-make_first] Fehler 2 make[2]: Verzeichnis „/home/Qt/build/qtbase/src“ wird verlassen Makefile:46: die Regel für Ziel „sub-src-make_first“ scheiterte make[1]: *** [sub-src-make_first] Fehler 2 make[1]: Verzeichnis „/home/Qt/build/qtbase“ wird verlassen Makefile:75: die Regel für Ziel „module-qtbase-make_first“ scheiterte make: *** [module-qtbase-make_first] Fehler 2
part 6
-
21b. run sudo make install:
all@all-VirtualBox:/home/Qt/build$ sudo make install [sudo] Passwort für all: cd src/ && ( test -e Makefile || /home/Qt/build/qtbase/bin/qmake /home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/src/src.pro -qtconf /home/Qt/build/qtbase/bin/qt.conf -o Makefile ) && make -f Makefile install make[6]: Verzeichnis „/home/Qt/build/qtbase/src/plugins/bearer/android/src“ wird betreten install -m 755 -p ../../../../../plugins/bearer/libqandroidbearer.so /home/Qt/5.7/plugins/bearer/libqandroidbearer.so install -m 644 -p /home/Qt/build/qtbase/lib/cmake/Qt5Network/Qt5Network_QAndroidBearerEnginePlugin.cmake /home/Qt/5.7/lib/cmake/Qt5Network/ make[6]: Verzeichnis „/home/Qt/build/qtbase/src/plugins/bearer/android/src“ wird verlassen cd jar/ && ( test -e Makefile || /home/Qt/build/qtbase/bin/qmake /home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/jar/jar.pro -qtconf /home/Qt/build/qtbase/bin/qt.conf -o Makefile ) && make -f Makefile install make[6]: Verzeichnis „/home/Qt/build/qtbase/src/plugins/bearer/android/jar“ wird betreten ( test -e Makefile.distributedjar || /home/Qt/build/qtbase/bin/qmake /home/Qt/5.7/Src/qtbase/src/plugins/bearer/android/jar/distributedjar.pro -qtconf /home/Qt/build/qtbase/bin/qt.conf -o Makefile.distributedjar ) && make -f Makefile.distributedjar install Project ERROR: No suitable Android SDK platform found. Minimum version is android-16. Makefile:49: die Regel für Ziel „sub-distributedjar-pro-install_subtargets“ scheiterte make[6]: *** [sub-distributedjar-pro-install_subtargets] Fehler 3 make[6]: Verzeichnis „/home/Qt/build/qtbase/src/plugins/bearer/android/jar“ wird verlassen Makefile:80: die Regel für Ziel „sub-jar-install_subtargets“ scheiterte make[5]: *** [sub-jar-install_subtargets] Fehler 2 make[5]: Verzeichnis „/home/Qt/build/qtbase/src/plugins/bearer/android“ wird verlassen Makefile:54: die Regel für Ziel „sub-android-install_subtargets“ scheiterte make[4]: *** [sub-android-install_subtargets] Fehler 2 make[4]: Verzeichnis „/home/Qt/build/qtbase/src/plugins/bearer“ wird verlassen Makefile:85: die Regel für Ziel „sub-bearer-install_subtargets“ scheiterte make[3]: *** [sub-bearer-install_subtargets] Fehler 2 make[3]: Verzeichnis „/home/Qt/build/qtbase/src/plugins“ wird verlassen Makefile:678: die Regel für Ziel „sub-plugins-install_subtargets“ scheiterte make[2]: *** [sub-plugins-install_subtargets] Fehler 2 make[2]: Verzeichnis „/home/Qt/build/qtbase/src“ wird verlassen Makefile:58: die Regel für Ziel „sub-src-install_subtargets“ scheiterte make[1]: *** [sub-src-install_subtargets] Fehler 2 make[1]: Verzeichnis „/home/Qt/build/qtbase“ wird verlassen Makefile:87: die Regel für Ziel „module-qtbase-install_subtargets“ scheiterte make: *** [module-qtbase-install_subtargets] Fehler 2
-
after that, i run the How to Build the QMYSQL Plugin on Unix and macOS from http://doc.qt.io/qt-5/sql-driver.html , which told me:
type in terminal cd /home/Qt/5.7/Src/qtbase/src/plugins/sqldrivers/mysql -
run sudo /home/Qt/build/qtbase/bin/qmake "INCLUDEPATH+=/home/all/Dokumente/mariadb_client-2.0.0-src/build/include" "LIBS+=-L/home/all/Dokumente/mariadb_client-2.0.0-src/build/libmariadb -lmysqlclient_r" mysql.pro
no output -
run sodu make
output is:
all@all-VirtualBox:/home/Qt/5.7/Src/qtbase/src/plugins/sqldrivers/mysql$ sudo make /home/Qt/build/qtbase/bin/moc -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -I/home/Qt/5.7/Src/qtbase/mkspecs/android-g++ -I/home/Qt/5.7/Src/qtbase/src/plugins/sqldrivers/mysql -I/home/all/Dokumente/mariadb_client-2.0.0-src/build/include -I/home/Qt/5.7/Src/qtbase/include/QtSql/5.7.1 -I/home/Qt/5.7/Src/qtbase/include/QtSql/5.7.1/QtSql -I/home/Qt/5.7/Src/qtbase/include/QtCore/5.7.1 -I/home/Qt/5.7/Src/qtbase/include/QtCore/5.7.1/QtCore -I/home/Qt/5.7/Src/qtbase/include -I/home/Qt/5.7/Src/qtbase/include/QtSql -I/home/Qt/build/qtbase/include -I/home/Qt/build/qtbase/include/QtSql -I/home/Qt/5.7/Src/qtbase/include/QtCore -I/home/Qt/build/qtbase/include/QtCore -I/home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include -I/home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -I/home/all/Dokumente/android-ndk-r10e/platforms/android-16/arch-arm//usr/include main.cpp -o .moc/main.moc /home/all/Dokumente/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -c -fstack-protector-strong -DANDROID -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -fno-builtin-memmove --sysroot=/home/all/Dokumente/android-ndk-r10e/platforms/android-16/arch-arm/ -O2 -Os -mthumb -std=c++14 -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -I. -I/home/all/Dokumente/mariadb_client-2.0.0-src/build/include -I../../../../include/QtSql/5.7.1 -I../../../../include/QtSql/5.7.1/QtSql -I../../../../include/QtCore/5.7.1 -I../../../../include/QtCore/5.7.1/QtCore -I../../../../include -I../../../../include/QtSql -I/home/Qt/build/qtbase/include -I/home/Qt/build/qtbase/include/QtSql -I../../../../include/QtCore -I/home/Qt/build/qtbase/include/QtCore -I.moc -I/home/all/Dokumente/mariadb_client-2.0.0-src/build/include -I/home/all/Dokumente/openssl-1.0.1e/include -isystem /home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem /home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -isystem /home/all/Dokumente/android-ndk-r10e/platforms/android-16/arch-arm/usr/include -I../../../../mkspecs/android-g++ -o .obj/main.o main.cpp In file included from main.cpp:42:0: ../../../sql/drivers/mysql/qsql_mysql_p.h:60:19: fatal error: mysql.h: No such file or directory #include <mysql.h> ^ compilation terminated. Makefile:757: die Regel für Ziel „.obj/main.o“ scheiterte make: *** [.obj/main.o] Fehler 1
- type cd /home/Qt/5.7/Src/qtbase/src/plugins/sqldrivers/mysql
- type sodu make install
output is:
all@all-VirtualBox:/home/Qt/5.7/Src/qtbase/src/plugins/sqldrivers/mysql$ make install /home/all/Dokumente/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -c -fstack-protector-strong -DANDROID -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -fno-builtin-memmove --sysroot=/home/all/Dokumente/android-ndk-r10e/platforms/android-16/arch-arm/ -O2 -Os -mthumb -std=c++14 -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -I. -I/home/all/Dokumente/mariadb_client-2.0.0-src/build/include -I../../../../include/QtSql/5.7.1 -I../../../../include/QtSql/5.7.1/QtSql -I../../../../include/QtCore/5.7.1 -I../../../../include/QtCore/5.7.1/QtCore -I../../../../include -I../../../../include/QtSql -I/home/Qt/build/qtbase/include -I/home/Qt/build/qtbase/include/QtSql -I../../../../include/QtCore -I/home/Qt/build/qtbase/include/QtCore -I.moc -I/home/all/Dokumente/mariadb_client-2.0.0-src/build/include -I/home/all/Dokumente/openssl-1.0.1e/include -isystem /home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem /home/all/Dokumente/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -isystem /home/all/Dokumente/android-ndk-r10e/platforms/android-16/arch-arm/usr/include -I../../../../mkspecs/android-g++ -o .obj/main.o main.cpp In file included from main.cpp:42:0: ../../../sql/drivers/mysql/qsql_mysql_p.h:60:19: fatal error: mysql.h: No such file or directory #include <mysql.h> ^ compilation terminated. Makefile:757: die Regel für Ziel „.obj/main.o“ scheiterte make: *** [.obj/main.o] Fehler 1
so now i will only run step 27 and 28, but there is no libqsqlmysql.so , so i cant get on
-
from the wiki https://wiki.qt.io/Build_Qt_5_MySQL_Plugin_for_Android i go on with the deployment notes and type: "$BR"objdump -p libqsqlmysql.so | grep NEEDED
output is: -
now i only have to comment out the block in the libmariadb/CMakeLists.txt :
SET_TARGET_PROPERTIES(libmariadb PROPERTIES VERSION ${CPACK_PACKAGE_VERSION_MAJOR} SOVERSION ${CPACK_PACKAGE_VERSION_MAJOR})
and all should be fine and now i can load the mysql or mariadb plugin on android.
part 7, now i go and drink a coffee...
-
-
@Allerknappe Not sure whether this was already asked: why do you want to connect to a MySQL server from Android? It is quite unusual to connect to a SQL server directly from a mobile device, because you have to expose your SQL database to the internet/intranet. Usually a REST API is used to communicate between mobile clients and the server.
-
@jsulm
ah thats sound interesting. i´m sorry but i thougt to use the mysql api is the usual way to comminicate with the mysql database... from the REST API i never heard about it, but i´m only learn programming and qt from the qt doc and there i try only the things, which i found usefull.
If it´s really usefull or not is maybe a other question.its also so hard to get an REST API for Qt ? I found no example to create a plugin or driver...
Maybe you now some good advice to learning the handling with the API? -
@Allerknappe REST API is completely unrelated to Qt. You can use QtNetwork (https://doc.qt.io/qt-5.10/qtnetwork-index.html) module to access such APIs. See https://en.wikipedia.org/wiki/Representational_state_transfer
If you simply want to learn how to access a SQL server then you can do it on your PC.
Also you can use SQLite on Android (and other platforms) as it does not require a SQL server.
If you would connect to MySQL server from your android device - where would this server run (on the same device or somewhere else)? -
@jsulm
at first, thank you for the post.
i have a MySQL Server runnning on Amazon AWS.
on the desktop i can communicate with the server and send him MySQL statements which will insert or delete querys. So a SQLite method will not work with amazon.but it seems that amazon aws support REST API, i found this create Query on AWS and a REST Api instruction on Amazon S3.
so i think i will now write another code which will generate a QtNetwork possible query and put the MySQL Synthax query into it.
if this work i think i have to send the qtnetwork query to the Amazon Server or what will i do? is this not the same, as i send it directly with the mysql plugin to the server?edit: i use Amazon RDS for generating databases not the Amazon S3 Service for: Object storage built to store and retrieve any amount of data from anywhere...
-
@Allerknappe This is not really what I mentioned. Usually you do not send any SQL queries via REST APIs. Such an API as an abstraction layer which hides the SQL server. You actually don't even need to know whether there is a SQL server or something else behind the REST API.
-
@jsulm
so i understand that, maybe for data safety, it´s not really good to send the query with the information directly to the database.
i should use between the client and the database an REST API which run seperatly on a server like Amazon AWS S3, which after the API get something the API will create a query and Database connection.
So nobody knows where the Server is located and what i will done with it.ok so far so good. How i can install the REST API on the Server and send him datas?
maybe i show you my example.
in my actually code, i run firstbool Funktionen::setDB(QString UserName,QString Password) //overload db set function { QSqlDatabase db; if(db.databaseName() == NULL) { db = QSqlDatabase::addDatabase("QMYSQL"); db.setHostName(DBHostName); db.setDatabaseName(DatabaseName); db.setUserName(UserName); db.setPassword(Password); db.setPort(Port); bool ok; if((ok = db.open())) //if the db has no failure { return 1; } else //if its exists an error, it will returned { QSqlError error; QString Fehlercode; Fehlercode = error.text(); return 0; } } return 1; }
and then i write an sending method:
bool Funktionen::inserttoDB(QString entity,QVector<QString> &attribut,QVector<QString> &value) //Sendemethode an die DB { QSqlQuery query; QString anfrage; if(attribut.size()==1) { anfrage.append("INSERT INTO " + entity +" (" + attribut.at(0) +") VALUES ("); if(attribut.at(0) == "ID" || attribut.at(0) == "Online" || attribut.at(0) == "AnfragendeID" || attribut.at(0) == "EmpfaengerID" || attribut.at(0) == "VonID" || attribut.at(0) == "ChatID" || attribut.at(0) == "ProfilID" || attribut.at(0) == "VonStd" || attribut.at(0) == "VonMin" || attribut.at(0) == "BisStd" || attribut.at(0) == "BisMin" || attribut.at(0) == "GanzerTag" || attribut.at(0) == "TerminAnfrageID" || attribut.at(0) == "TerminID" || attribut.at(0) == "Acceppt") { anfrage.append(value.at(0)); } else { anfrage.append("'"); anfrage.append(value.at(0)); anfrage.append("'"); } anfrage.append(")"); } for(int ic = 2;ic <= 8;ic++) // this loop access the query size { if((attribut.size()==ic)) { anfrage = "INSERT INTO " + entity + " ("; for(int i=1; i <= attribut.size();i++) //this loo will create the insert string { anfrage.append(attribut.at(i-1)); if(i==attribut.size()) { anfrage.append(") VALUES ("); break; } anfrage.append(", "); } for(int i=0; i < value.size();i++) //the loop will create the hole query { if(attribut.at(i) == "ID" || attribut.at(i) == "Online" || attribut.at(i) == "AnfragendeID" || attribut.at(i) == "EmpfaengerID" || attribut.at(i) == "VonID" || attribut.at(i) == "ChatID" || attribut.at(i) == "ProfilID" || attribut.at(i) == "VonStd" || attribut.at(i) == "VonMin" || attribut.at(i) == "BisStd" || attribut.at(i) == "BisMin" || attribut.at(i) == "GanzerTag" || attribut.at(i) == "TerminAnfrageID" || attribut.at(i) == "TerminID" || attribut.at(i) == "Acceppt") { anfrage.append(value.at(i)); } else { anfrage.append("'"); anfrage.append(value.at(i)); anfrage.append("'"); } if(i+1==value.size()) { anfrage.append(")"); break; } anfrage.append(", "); } break; } } query.prepare(anfrage); if(!query.exec()) { QSqlError err = query.lastError(); QString tex = err.text(); return 0; } return 1; }
so i think you will told me thats this code is not readable for the REST API and i have to change the hole code.
But in this moment its only functionable on windows and if i want to use it on android i have to change it and then its ok.edit: maybe it´s then easier to use a cloud storage and send them an sqlite query where i can store it?(if its possible, in my case the sqlite api is still working...)
-
@Allerknappe You should check the link I provided before.
Basically you will send HTTP request containing your data to the server. -
i know your right with your comments and in future i has to realize it, but for now it will be much easier to send the data direct to the database. For this case, i opened a new topic https://forum.qt.io/topic/86878/search-working-qt-development-suite-with-working-mysql-plugin-on-android .
its maybe not the best way to work with the plugin, but in my case the fastest working method.
Its maybe also not the best way to offer money for solve my problem, but i try good week from morning to evening to solve the problem and i only get errors... and the money should only for the work not for the code, not that i want to decline the open source idea.