Unsolved How to build MySQL driver for Android?
-
i try on because the wiki are a working wiki, and type -continue to the command
here the output:@all-VirtualBox:/home/Qt/build$ sudo /home/Qt/5.7/Src/configure -platform linux-g++ -xplatform android-g++ -prefix /home/Qt/5.7 -no-icu -no-sql-sqlite -plugin-sql-mysql -I /home/all/Dokumente/mariadb_client-2.0.0-src/build/include -L /home/all/Dokumente/mariadb_client-2.0.0-src/build/libmariadb -openssl -I /home/all/Dokumente/openssl-1.0.1e/include -android-ndk /home/all/Dokumente/android-ndk-r10e -android-sdk /home/all/Dokumente/android-studio -opensource -confirm-license -nomake examples -no-compile-examples -nomake tests -skip qttranslations -skip qtserialport -v -opengl -egl -no-use-gold-linker -shared -continue [sudo] Passwort für all: + cd qtbase + /home/Qt/5.7/Src/qtbase/configure -top-level -platform linux-g++ -xplatform android-g++ -prefix /home/Qt/5.7 -no-icu -no-sql-sqlite -plugin-sql-mysql -I /home/all/Dokumente/mariadb_client-2.0.0-src/build/include -L /home/all/Dokumente/mariadb_client-2.0.0-src/build/libmariadb -openssl -I /home/all/Dokumente/openssl-1.0.1e/include -android-ndk /home/all/Dokumente/android-ndk-r10e -android-sdk /home/all/Dokumente/android-studio -opensource -confirm-license -nomake examples -no-compile-examples -nomake tests -skip qttranslations -skip qtserialport -v -opengl -egl -no-use-gold-linker -shared -continue This is the Qt Open Source Edition. You are licensed to use this software under the terms of the GNU Lesser General Public License (LGPL) versions 3. You have already accepted the terms of the Open Source license. Performing shadow build... Preparing build tree... DEFAULT_INCDIRS="/home/all/Dokumente/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9/include /home/all/Dokumente/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9/include-fixed " DEFAULT_LIBDIRS="/home/all/Dokumente/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9 /home/all/Dokumente/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc /home/all/Dokumente/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/arm-linux-androideabi/lib " Creating qmake... make: Für das Ziel „first“ ist nichts zu tun. Running configuration tests... Found pkg-config from $PATH: /usr/bin/pkg-config Warning: Disabling pkg-config since PKG_CONFIG_LIBDIR is not set and the host's .pc files would be used (even if you set PKG_CONFIG_PATH). Set this variable to the directory that contains target .pc files for pkg-config to function correctly when cross-compiling or use -pkg-config to override this test. Warning: Disabling pkg-config since PKG_CONFIG_SYSROOT_DIR is not set. Set this variable to your sysroot for pkg-config to function correctly when cross-compiling or use -pkg-config to override this test. Determining architecture... () /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/ -g -g -marm -O0 -std=gnu++11 -Wall -W -fPIC -I../../../../5.7/Src/qtbase/config.tests/arch -I. -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../../../../5.7/Src/qtbase/mkspecs/android-g++ -o arch.o ../../../../5.7/Src/qtbase/config.tests/arch/arch.cpp /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,-soname,libarch.so -Wl,--no-undefined -Wl,-z,noexecstack -shared -o libarch.so arch.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/all/Dokumente/mariadb_client-2.0.0-src/build/libmariadb -lgnustl_shared -llog -lz -lm -ldl -lc -lgcc Found architecture in binary CFG_ARCH="arm" CFG_CPUFEATURES="" Determining architecture... () g++ -c -pipe -g -std=gnu++11 -Wall -W -fPIC -I../../../../5.7/Src/qtbase/config.tests/arch -I. -I/home/all/Dokumente/mariadb_client-2.0.0-src/build/include -I/home/all/Dokumente/openssl-1.0.1e/include -I../../../../5.7/Src/qtbase/mkspecs/linux-g++ -o arch.o ../../../../5.7/Src/qtbase/config.tests/arch/arch.cpp g++ -o arch arch.o -L/home/all/Dokumente/mariadb_client-2.0.0-src/build/libmariadb Found architecture in binary CFG_HOST_ARCH="x86_64" CFG_HOST_CPUFEATURES=" mmx sse sse2" System architecture: 'arm' Host architecture: 'x86_64' Precompiled-headers support enabled. /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/ -c -fvisibility=hidden fvisibility.c Symbol visibility control enabled. /home/all/Dokumente/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld: error: cannot open crtbegin_dynamic.o: Datei oder Verzeichnis nicht gefunden /home/all/Dokumente/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld: error: cannot open crtend_android.o: Datei oder Verzeichnis nicht gefunden collect2: error: ld returned 1 exit status /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/ -o libtest.so -shared -Wl,-Bsymbolic-functions -fPIC bsymbolic_functions.c bsymbolic_functions.c:2:2: error: #error "Symbolic function binding on this architecture may be broken, disabling it (see QTBUG-36129)." #error "Symbolic function binding on this architecture may be broken, disabling it (see QTBUG-36129)." ^ Symbolic function binding disabled. checking for C++14... /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=gnu++14 -Wall -W -fPIC -I/home/Qt/5.7/Src/qtbase/config.tests/common/c++14 -I. -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 c++14.o /home/Qt/5.7/Src/qtbase/config.tests/common/c++14/c++14.cpp /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,noexecstack -shared -o c++14 c++14.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/all/Dokumente/mariadb_client-2.0.0-src/build/libmariadb -lgnustl_shared -llog -lz -lm -ldl -lc -lgcc C++14 enabled. checking for C++1z... /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=gnu++1z -Wall -W -fPIC -I/home/Qt/5.7/Src/qtbase/config.tests/common/c++1z -I. -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 c++1z.o /home/Qt/5.7/Src/qtbase/config.tests/common/c++1z/c++1z.cpp arm-linux-androideabi-g++: error: unrecognized command line option '-std=gnu++1z' Makefile:195: die Regel für Ziel „c++1z.o“ scheiterte make: *** [c++1z.o] Fehler 1 C++1z disabled. checking for default C++ standard edition... /home/all/Dokumente/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -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 -Wall -W -fPIC -I/home/Qt/5.7/Src/qtbase/config.tests/common/c++default -I. -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 c++default.ii -E /home/Qt/5.7/Src/qtbase/config.tests/common/c++default/c++default.cpp default C++ standard edition enabled. checking for 64-bit std::atomic... /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=gnu++11 -Wall -W -fPIC -I/home/Qt/5.7/Src/qtbase/config.tests/common/atomic64 -I. -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 atomic64.o /home/Qt/5.7/Src/qtbase/config.tests/common/atomic64/atomic64.cpp /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,noexecstack -shared -o atomic64 atomic64.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/all/Dokumente/mariadb_client-2.0.0-src/build/libmariadb -lgnustl_shared -llog -lz -lm -ldl -lc -lgcc 64-bit std::atomic enabled. checking for std::atomic for function pointers... /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=gnu++11 -Wall -W -fPIC -I/home/Qt/5.7/Src/qtbase/config.tests/common/atomicfptr -I. -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 atomicfptr.o /home/Qt/5.7/Src/qtbase/config.tests/common/atomicfptr/atomicfptr.cpp /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,noexecstack -shared -o atomicfptr atomicfptr.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/all/Dokumente/mariadb_client-2.0.0-src/build/libmariadb -lgnustl_shared -llog -lz -lm -ldl -lc -lgcc std::atomic for function pointers enabled. checking for sse2... /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/ -msse2 -g -g -marm -O0 -std=gnu++11 -Wall -W -fPIC -I/home/Qt/5.7/Src/qtbase/config.tests/common/sse2 -I. -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 sse2.o /home/Qt/5.7/Src/qtbase/config.tests/common/sse2/sse2.cpp arm-linux-androideabi-g++: error: unrecognized command line option '-msse2' Makefile:195: die Regel für Ziel „sse2.o“ scheiterte make: *** [sse2.o] Fehler 1 sse2 disabled. checking for ipc_sysv... /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=gnu++11 -Wall -W -fPIC -I/home/Qt/5.7/Src/qtbase/config.tests/unix/ipc_sysv -I. -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 ipc.o /home/Qt/5.7/Src/qtbase/config.tests/unix/ipc_sysv/ipc.cpp /home/Qt/5.7/Src/qtbase/config.tests/unix/ipc_sysv/ipc.cpp:42:21: fatal error: sys/sem.h: No such file or directory #include <sys/sem.h> ^ .. ^ compilation terminated. Makefile:195: die Regel für Ziel „openvg.o“ scheiterte make: *** [openvg.o] Fehler 1 OpenVG (lc includes) disabled. checking for alsa... /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=gnu++11 -Wall -W -fPIC -I/home/Qt/5.7/Src/qtbase/config.tests/unix/alsa -I. -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 alsatest.o /home/Qt/5.7/Src/qtbase/config.tests/unix/alsa/alsatest.cpp /home/Qt/5.7/Src/qtbase/config.tests/unix/alsa/alsatest.cpp:40:28: fatal error: alsa/asoundlib.h: No such file or directory #include <alsa/asoundlib.h> ^ compilation terminated. Makefile:195: die Regel für Ziel „alsatest.o“ scheiterte make: *** [alsatest.o] Fehler 1 alsa disabled. checking for GStreamer 1.0... Project WARNING: pkg-config disabled, can't check package existence Project ERROR: gstreamer-1.0 development package not found GStreamer 1.0 disabled. checking for GStreamer 0.10... Project WARNING: pkg-config disabled, can't check package existence Project ERROR: gstreamer-0.10 development package not found GStreamer 0.10 disabled. WARNING: Unable to find file .device.vars WARNING: Unable to find file .device.vars Done running configuration tests. Configure summary Building on: linux-g++ (x86_64, CPU features: mmx sse sse2) Building for: android-g++ (arm, CPU features: none detected) qmake vars .......... styles += mac fusion windows styles += android DEFINES += QT_NO_MTDEV DEFINES += QT_NO_LIBUDEV DEFINES += QT_NO_TSLIB DEFINES += QT_NO_LIBINPUT QMAKE_X11_PREFIX = /usr EXTRA_INCLUDEPATH += "/home/all/Dokumente/mariadb_client-2.0.0-src/build/include" "/home/all/Dokumente/openssl-1.0.1e/include" EXTRA_LIBS += -L"/home/all/Dokumente/mariadb_client-2.0.0-src/build/libmariadb" sql-drivers = sql-plugins = qmake switches ......... Build options: Configuration .......... accessibility android-style-assets audio-backend c++11 c++14 clock-gettime clock-monotonic concurrent cross_compile doubleconversion egl evdev eventfd freetype full-config getaddrinfo harfbuzz inotify ipv6ifname large-config medium-config minimal-config mremap no-libdl no-pkg-config opengl opengles2 openssl pcre png poll_poll precompile_header qpa qpa reduce_exports release rpath shared small-config system-zlib Build parts ............ libs Mode ................... release Using sanitizer(s)...... none Using C++ standard ..... c++14 Using gold linker....... no Using new DTAGS ........ no Using PCH .............. yes Using LTCG ............. no Target compiler supports: Neon ................. no Qt modules and options: Qt D-Bus ............... no Qt Concurrent .......... yes Qt GUI ................. yes Qt Widgets ............. yes Large File ............. no QML debugging .......... yes Use system proxies ..... no Support enabled for: Accessibility .......... yes ALSA ................... no CUPS ................... no DoubleConversion........ yes (bundled copy) Evdev .................. yes FontConfig ............. no FreeType ............... yes (bundled copy) Glib ................... no GStreamer .............. no GTK platformtheme ...... no HarfBuzz ............... yes (bundled copy) Iconv .................. no ICU .................... no Image formats: GIF .................. yes (plugin, using bundled copy) JPEG ................. yes (plugin, using bundled copy) PNG .................. yes (in QtGui, using bundled copy) libinput................ no Logging backends: journald ............... no syslog ............... no mtdev .................. no Networking: getaddrinfo .......... yes getifaddrs ........... no IPv6 ifname .......... yes libproxy.............. no OpenSSL .............. yes (loading libraries at run-time) OpenGL / OpenVG: EGL .................. yes OpenGL ............... yes (OpenGL ES 2.0+) OpenVG ............... no PCRE ................... yes (bundled copy) pkg-config ............. no PulseAudio ............. no QPA backends: DirectFB ............. no EGLFS ................ no EGLFS i.MX6 ........ no EGLFS i.MX6 Wayland. no EGLFS EGLDevice .... no EGLFS GBM .......... no EGLFS Mali ......... no EGLFS Raspberry Pi . no EGLFS X11 .......... no LinuxFB .............. no Mir client............ no XCB .................. no Session management ..... yes SQL drivers: DB2 .................. no InterBase ............ no MySQL ................ no OCI .................. no ODBC ................. no PostgreSQL ........... no SQLite 2 ............. no SQLite ............... no TDS .................. no tslib .................. no udev ................... no xkbcommon-x11........... no xkbcommon-evdev......... no zlib ................... yes (system library) NOTE: Qt is using double for qreal on this system. This is binary incompatible against Qt 5.1. Configure with '-qreal float' to create a build that is binary compatible with 5.1. Qt is now configured for building. Just run 'make'. Once everything is built, you must run 'make install'. Qt will be installed into /home/Qt/5.7 Prior to reconfiguration, make sure you remove any leftovers from the previous build.
ok everythings ok i hope...
part 5
-
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.