How to build MySQL driver for Android?



  • now libiconv should be compiled.
    15. unpack the mariadb 2.0.0 connector and go to the directory, open there the terminal
    16. type mkdir build && cd build
    17. type PKG_CONFIG_PATH=$SR/usr/lib/pkgconfig
    18. sudo cmake -DCMAKE_AR="$BR"ar -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER="$BR"gcc -DCMAKE_C_FLAGS=--sysroot=$SR -DCMAKE_INSTALL_PREFIX=$SR/usr -DCMAKE_LINKER="$BR"ld -DCMAKE_NM="$BR"nm -DCMAKE_OBJCOPY="$BR"objcopy -DCMAKE_OBJDUMP="$BR"objdump -DCMAKE_RANLIB="$BR"ranlib -DCMAKE_STRIP="$BR"strip -DWITH_EXTERNAL_ZLIB=ON -DICONV_INCLUDE_DIR=$SR/usr/include -DICONV_LIBRARIES=$SR/usr/lib/libiconv.a -DZLIB_INCLUDE_DIR=$SR/usr/include -DZLIB_LIBRARY=$SR/usr/lib/libz.so ../
    output is:

    all@all-VirtualBox:~/Dokumente/mariadb_client-2.0.0-src/build$ sudo cmake -DCMAKE_AR="$BR"ar -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER="$BR"gcc -DCMAKE_C_FLAGS=--sysroot=$SR -DCMAKE_INSTALL_PREFIX=$SR/usr -DCMAKE_LINKER="$BR"ld -DCMAKE_NM="$BR"nm -DCMAKE_OBJCOPY="$BR"objcopy -DCMAKE_OBJDUMP="$BR"objdump -DCMAKE_RANLIB="$BR"ranlib -DCMAKE_STRIP="$BR"strip -DWITH_EXTERNAL_ZLIB=ON -DICONV_INCLUDE_DIR=$SR/usr/include -DICONV_LIBRARIES=$SR/usr/lib/libiconv.a -DZLIB_INCLUDE_DIR=$SR/usr/include -DZLIB_LIBRARY=$SR/usr/lib/libz.so ../
    -- The C compiler identification is GNU 4.8.0
    -- Check for working C compiler: /home/all/Dokumente/android-ndk-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc
    -- Check for working C compiler: /home/all/Dokumente/android-ndk-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Looking for inet_ntoa
    -- Looking for inet_ntoa - found
    -- Looking for bind
    -- Looking for bind - found
    -- Looking for setsockopt
    -- Looking for setsockopt - found
    -- Looking for dlopen
    -- Looking for dlopen - found
    -- Looking for floor
    -- Looking for floor - not found
    -- Looking for floor in m
    -- Looking for floor in m - found
    -- Looking for pthread.h
    -- Looking for pthread.h - found
    -- Looking for pthread_create
    -- Looking for pthread_create - found
    -- Found Threads: TRUE  
    -- Looking for include file alloca.h
    -- Looking for include file alloca.h - found
    -- Looking for include file arpa/inet.h
    -- Looking for include file arpa/inet.h - found
    -- Looking for include file crypt.h
    -- Looking for include file crypt.h - not found
    -- Looking for include file dirent.h
    -- Looking for include file dirent.h - found
    -- Looking for include file dlfcn.h
    -- Looking for include file dlfcn.h - found
    -- Looking for include file execinfo.h
    -- Looking for include file execinfo.h - not found
    -- Looking for include file fcntl.h
    -- Looking for include file fcntl.h - found
    -- Looking for include file fenv.h
    -- Looking for include file fenv.h - found
    -- Looking for include file float.h
    -- Looking for include file float.h - found
    -- Looking for include file fpu/control.h
    -- Looking for include file fpu/control.h - not found
    -- Looking for include file grp.h
    -- Looking for include file grp.h - found
    -- Looking for include file ieeefp.h
    -- Looking for include file ieeefp.h - not found
    -- Looking for include file limits.h
    -- Looking for include file limits.h - found
    -- Looking for include file malloc.h
    -- Looking for include file malloc.h - found
    -- Looking for include file memory.h
    -- Looking for include file memory.h - found
    -- Looking for include file netinet/in.h
    -- Looking for include file netinet/in.h - found
    -- Looking for include file paths.h
    -- Looking for include file paths.h - found
    -- Looking for include file pwd.h
    -- Looking for include file pwd.h - found
    -- Looking for include file sched.h
    -- Looking for include file sched.h - found
    -- Looking for include file select.h
    -- Looking for include file select.h - not found
    -- Looking for include file signal.h
    -- Looking for include file signal.h - found
    -- Looking for include file stddef.h
    -- Looking for include file stddef.h - found
    -- Looking for include file stdint.h
    -- Looking for include file stdint.h - found
    -- Looking for include file stdlib.h
    -- Looking for include file stdlib.h - found
    -- Looking for include file string.h
    -- Looking for include file string.h - found
    -- Looking for include file strings.h
    -- Looking for include file strings.h - found
    -- Looking for include file synch.h
    -- Looking for include file synch.h - not found
    -- Looking for include file sys/fpu.h
    -- Looking for include file sys/fpu.h - not found
    -- Looking for include file sys/ioctl.h
    -- Looking for include file sys/ioctl.h - found
    -- Looking for include file sys/ipc.h
    -- Looking for include file sys/ipc.h - found
    -- Looking for include file sys/mman.h
    -- Looking for include file sys/mman.h - found
    -- Looking for include file sys/prctl.h
    -- Looking for include file sys/prctl.h - found
    -- Looking for include file sys/select.h
    -- Looking for include file sys/select.h - found
    -- Looking for include file sys/shm.h
    -- Looking for include file sys/shm.h - not found
    -- Looking for include file sys/socket.h
    -- Looking for include file sys/socket.h - found
    -- Looking for include file sys/stat.h
    -- Looking for include file sys/stat.h - found
    -- Looking for include file sys/stream.h
    -- Looking for include file sys/stream.h - not found
    -- Looking for include file sys/timeb.h
    -- Looking for include file sys/timeb.h - found
    -- Looking for include file sys/types.h
    -- Looking for include file sys/types.h - found
    -- Looking for include file sys/un.h
    -- Looking for include file sys/un.h - found
    -- Looking for include file sysent.h
    -- Looking for include file sysent.h - not found
    -- Looking for include file termio.h
    -- Looking for include file termio.h - found
    -- Looking for include file termios.h
    -- Looking for include file termios.h - found
    -- Looking for include file unistd.h
    -- Looking for include file unistd.h - found
    -- Looking for include file utime.h
    -- Looking for include file utime.h - found
    -- Looking for access
    -- Looking for access - found
    -- Looking for aiowait
    -- Looking for aiowait - not found
    -- Looking for alarm
    -- Looking for alarm - found
    -- Looking for alloca
    -- Looking for alloca - not found
    -- Looking for bcmp
    -- Looking for bcmp - not found
    -- Looking for bfill
    -- Looking for bfill - not found
    -- Looking for bmove
    -- Looking for bmove - not found
    -- Looking for bzero
    -- Looking for bzero - found
    -- Looking for clock_gettime
    -- Looking for clock_gettime - found
    -- Looking for compress
    -- Looking for compress - not found
    -- Looking for crypt
    -- Looking for crypt - not found
    -- Looking for dlerror
    -- Looking for dlerror - found
    -- Looking for dlopen
    -- Looking for dlopen - found
    -- Looking for fchmod
    -- Looking for fchmod - found
    -- Looking for fcntl
    -- Looking for fcntl - found
    -- Looking for fconvert
    -- Looking for fconvert - not found
    -- Looking for fdatasync
    -- Looking for fdatasync - found
    -- Looking for fesetround
    -- Looking for fesetround - not found
    -- Looking for finite
    -- Looking for finite - found
    -- Looking for fseeko
    -- Looking for fseeko - found
    -- Looking for fsync
    -- Looking for fsync - found
    -- Looking for getaddrinfo
    -- Looking for getaddrinfo - found
    -- Looking for getcwd
    -- Looking for getcwd - found
    -- Looking for gethostbyaddr_r
    -- Looking for gethostbyaddr_r - not found
    -- Looking for gethostbyname_r
    -- Looking for gethostbyname_r - found
    -- Looking for gethrtime
    -- Looking for gethrtime - not found
    -- Looking for getnameinfo
    -- Looking for getnameinfo - found
    -- Looking for getpagesize
    -- Looking for getpagesize - not found
    -- Looking for getpass
    -- Looking for getpass - not found
    -- Looking for getpassphrase
    -- Looking for getpassphrase - not found
    -- Looking for getpwnam
    -- Looking for getpwnam - found
    -- Looking for getpwuid
    -- Looking for getpwuid - found
    -- Looking for getrlimit
    -- Looking for getrlimit - found
    -- Looking for getrusage
    -- Looking for getrusage - found
    -- Looking for getwd
    -- Looking for getwd - not found
    -- Looking for gmtime_r
    -- Looking for gmtime_r - found
    -- Looking for initgroups
    -- Looking for initgroups - found
    -- Looking for ldiv
    -- Looking for ldiv - found
    -- Looking for localtime_r
    -- Looking for localtime_r - found
    -- Looking for log2
    -- Looking for log2 - not found
    -- Looking for longjmp
    -- Looking for longjmp - found
    -- Looking for lstat
    -- Looking for lstat - found
    -- Looking for madvise
    -- Looking for madvise - found
    -- Looking for mallinfo
    -- Looking for mallinfo - found
    -- Looking for memalign
    -- Looking for memalign - found
    -- Looking for memcpy
    -- Looking for memcpy - found
    -- Looking for memmove
    -- Looking for memmove - found
    -- Looking for mkstemp
    -- Looking for mkstemp - found
    -- Looking for mlock
    -- Looking for mlock - found
    -- Looking for mlockall
    -- Looking for mlockall - not found
    -- Looking for mmap
    -- Looking for mmap - found
    -- Looking for mmap64
    -- Looking for mmap64 - not found
    -- Looking for perror
    -- Looking for perror - found
    -- Looking for poll
    -- Looking for poll - found
    -- Looking for pread
    -- Looking for pread - found
    -- Looking for pthread_attr_create
    -- Looking for pthread_attr_create - not found
    -- Looking for pthread_attr_getstacksize
    -- Looking for pthread_attr_getstacksize - found
    -- Looking for pthread_attr_setprio
    -- Looking for pthread_attr_setprio - not found
    -- Looking for pthread_attr_setschedparam
    -- Looking for pthread_attr_setschedparam - found
    -- Looking for pthread_attr_setscope
    -- Looking for pthread_attr_setscope - found
    -- Looking for pthread_attr_setstacksize
    -- Looking for pthread_attr_setstacksize - found
    -- Looking for pthread_condattr_create
    -- Looking for pthread_condattr_create - not found
    -- Looking for pthread_init
    -- Looking for pthread_init - not found
    -- Looking for pthread_key_delete
    -- Looking for pthread_key_delete - found
    -- Looking for pthread_kill
    -- Looking for pthread_kill - found
    -- Looking for pthread_rwlock_rdlock
    -- Looking for pthread_rwlock_rdlock - found
    -- Looking for pthread_setprio_np
    -- Looking for pthread_setprio_np - not found
    -- Looking for pthread_setschedparam
    -- Looking for pthread_setschedparam - found
    -- Looking for pthread_sigmask
    -- Looking for pthread_sigmask - found
    -- Looking for pthread_threadmask
    -- Looking for pthread_threadmask - not found
    -- Looking for pthread_yield_np
    -- Looking for pthread_yield_np - not found
    -- Looking for readdir_r
    -- Looking for readdir_r - found
    -- Looking for readlink
    -- Looking for readlink - found
    -- Looking for realpath
    -- Looking for realpath - found
    -- Looking for rename
    -- Looking for rename - found
    -- Looking for sched_yield
    -- Looking for sched_yield - found
    -- Looking for select
    -- Looking for select - found
    -- Looking for setfd
    -- Looking for setfd - not found
    -- Looking for setfilepointer
    -- Looking for setfilepointer - not found
    -- Looking for sigaction
    -- Looking for sigaction - found
    -- Looking for sigthreadmask
    -- Looking for sigthreadmask - not found
    -- Looking for sigwait
    -- Looking for sigwait - found
    -- Looking for sleep
    -- Looking for sleep - found
    -- Looking for snprintf
    -- Looking for snprintf - found
    -- Looking for stpcpy
    -- Looking for stpcpy - not found
    -- Looking for strerror
    -- Looking for strerror - found
    -- Looking for strlcpy
    -- Looking for strlcpy - found
    -- Looking for strnlen
    -- Looking for strnlen - found
    -- Looking for strpbrk
    -- Looking for strpbrk - found
    -- Looking for strsep
    -- Looking for strsep - found
    -- Looking for strstr
    -- Looking for strstr - found
    -- Looking for strtok_r
    -- Looking for strtok_r - found
    -- Looking for strtol
    -- Looking for strtol - found
    -- Looking for strtoll
    -- Looking for strtoll - found
    -- Looking for strtoul
    -- Looking for strtoul - found
    -- Looking for strtoull
    -- Looking for strtoull - found
    -- Looking for tell
    -- Looking for tell - not found
    -- Looking for thr_setconcurrency
    -- Looking for thr_setconcurrency - not found
    -- Looking for thr_yield
    -- Looking for thr_yield - not found
    -- Looking for vasprintf
    -- Looking for vasprintf - found
    -- Looking for vsnprintf
    -- Looking for vsnprintf - found
    -- Check size of sigset_t
    -- Check size of sigset_t - done
    -- Check size of char
    -- Check size of char - done
    -- Check size of char *
    -- Check size of char * - done
    -- Check size of short
    -- Check size of short - done
    -- Check size of int
    -- Check size of int - done
    -- Check size of long
    -- Check size of long - done
    -- Check size of long long
    -- Check size of long long - done
    -- Check size of size_t
    -- Check size of size_t - done
    -- Check size of off_t
    -- Check size of off_t - done
    -- Check size of uchar
    -- Check size of uchar - failed
    -- Check size of uint
    -- Check size of uint - done
    -- Check size of ulong
    -- Check size of ulong - failed
    -- Check size of int8
    -- Check size of int8 - failed
    -- Check size of uint8
    -- Check size of uint8 - failed
    -- Check size of int16
    -- Check size of int16 - failed
    -- Check size of uint16
    -- Check size of uint16 - failed
    -- Check size of int32
    -- Check size of int32 - failed
    -- Check size of uint32
    -- Check size of uint32 - failed
    -- Check size of u_int32_t
    -- Check size of u_int32_t - done
    -- Check size of int64
    -- Check size of int64 - failed
    -- Check size of uint64
    -- Check size of uint64 - failed
    -- Check size of socklen_t
    -- Check size of socklen_t - failed
    -- Performing Test IS_VOID_SIGNAL
    -- Performing Test IS_VOID_SIGNAL - Success
    -- Performing Test IS_VOID_QSORT
    -- Performing Test IS_VOID_QSORT - Success
    -- Performing Test SOCKET_SIZE_FOUND_socklen_t
    -- Performing Test SOCKET_SIZE_FOUND_socklen_t - Success
    -- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing:  OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIR) 
    -- Performing Test ICONV_SECOND_ARGUMENT_IS_CONST
    -- Performing Test ICONV_SECOND_ARGUMENT_IS_CONST - Failed
    -- Looking for getaddrinfo
    -- Looking for getaddrinfo - found
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/all/Dokumente/mariadb_client-2.0.0-src/build
    
    1. now i go to include/my_global.h and include in the #define _global_h block:
      #ifndef ushort
      #define ushort uint16
      #endif

    2. i ump back to the terminal and type sodu make install
      output is:

    all@all-VirtualBox:~/Dokumente/mariadb_client-2.0.0-src/build$ sudo make installScanning dependencies of target libmariadb
    [  1%] Building C object libmariadb/CMakeFiles/libmariadb.dir/array.c.o
    [  1%] Building C object libmariadb/CMakeFiles/libmariadb.dir/ma_dyncol.c.o
    [  2%] Building C object libmariadb/CMakeFiles/libmariadb.dir/bchange.c.o
    [  2%] Building C object libmariadb/CMakeFiles/libmariadb.dir/bmove.c.o
    [  3%] Building C object libmariadb/CMakeFiles/libmariadb.dir/bmove_upp.c.o
    [  4%] Building C object libmariadb/CMakeFiles/libmariadb.dir/my_charset.c.o
    /home/all/Dokumente/mariadb_client-2.0.0-src/libmariadb/my_charset.c:55:19: fatal error: iconv.h: No such file or directory
     #include <iconv.h>
                       ^
    compilation terminated.
    libmariadb/CMakeFiles/libmariadb.dir/build.make:182: die Regel für Ziel „libmariadb/CMakeFiles/libmariadb.dir/my_charset.c.o“ scheiterte
    make[2]: *** [libmariadb/CMakeFiles/libmariadb.dir/my_charset.c.o] Fehler 1
    CMakeFiles/Makefile2:143: die Regel für Ziel „libmariadb/CMakeFiles/libmariadb.dir/all“ scheiterte
    make[1]: *** [libmariadb/CMakeFiles/libmariadb.dir/all] Fehler 2
    Makefile:149: die Regel für Ziel „all“ scheiterte
    make: *** [all] Fehler 2
    

    oh another fail...
    20.But it should everything fine, the structur of the build directory is:

    structur:
    all@all-VirtualBox:~/Dokumente/mariadb_client-2.0.0-src/build$ dir
    CMakeCache.txt	     CPackConfig.cmake	      libmariadb      plugins
    CMakeFiles	     CPackSourceConfig.cmake  Makefile
    cmake_install.cmake  include		      mariadb_config
    

    now i´m a little bit confused. in the instruction is now under deployment notes the command "$BR"objdump -p libqsqlmysql.so | grep NEEDED , but i dont have now an libqsqlmysql.so , so i think i have to go to the
    qt directory, add an build directory and run there /home/Qt/build$ /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
    for this i need the android sdk, there i loaded theAndroid stduio 3.0.1

    part 3



    1. i go on and run from the build directory in the qt directory the configure command.
      the output is:(output is so long, so this is only the end:)
    
    rc/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 -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:192: 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 -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:192: die Regel für Ziel „ipc.o“ scheiterte
    make: *** [ipc.o] Fehler 1
    ipc_sysv disabled.
    checking for ipc_posix... 
    /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 -Wall -W -fPIC  -I/home/Qt/5.7/Src/qtbase/config.tests/unix/ipc_posix -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_posix/ipc.cpp
    /home/Qt/5.7/Src/qtbase/config.tests/unix/ipc_posix/ipc.cpp: In function 'int main(int, char**)':
    /home/Qt/5.7/Src/qtbase/config.tests/unix/ipc_posix/ipc.cpp:51:53: error: 'shm_open' was not declared in this scope
         shm_open("test", O_RDWR | O_CREAT | O_EXCL, 0666);
                                                         ^
    /home/Qt/5.7/Src/qtbase/config.tests/unix/ipc_posix/ipc.cpp:52:22: error: 'shm_unlink' was not declared in this scope
         shm_unlink("test");
                          ^
    Makefile:192: die Regel für Ziel „ipc.o“ scheiterte
    make: *** [ipc.o] Fehler 1
    ipc_posix disabled.
    checking for zlib... 
    /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 -Wall -W -fPIC  -I/home/Qt/5.7/Src/qtbase/config.tests/unix/zlib -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 zlib.o /home/Qt/5.7/Src/qtbase/config.tests/unix/zlib/zlib.cpp
    /home/Qt/5.7/Src/qtbase/config.tests/unix/zlib/zlib.cpp: In function 'int main(int, char**)':
    /home/Qt/5.7/Src/qtbase/config.tests/unix/zlib/zlib.cpp:44:15: warning: variable 'stream' set but not used [-Wunused-but-set-variable]
         z_streamp stream;
                   ^
    /home/Qt/5.7/Src/qtbase/config.tests/unix/zlib/zlib.cpp:46:17: warning: variable 'ver' set but not used [-Wunused-but-set-variable]
         const char *ver = zlibVersion();
                     ^
    /home/Qt/5.7/Src/qtbase/config.tests/unix/zlib/zlib.cpp:49:9: warning: variable 'res' set but not used [-Wunused-but-set-variable]
         int res = compress2(0, 0, 0, 0, 1);
             ^
    /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 zlib zlib.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 -lz -lgnustl_shared -llog -lz -lm -ldl -lc -lgcc
    zlib enabled.
    checking for mtdev... 
    Project WARNING: pkg-config disabled, can't check package existence
    Project ERROR: mtdev development package not found
    mtdev disabled.
    checking for libjpeg... 
    /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 -Wall -W -fPIC  -I/home/Qt/5.7/Src/qtbase/config.tests/unix/libjpeg -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 libjpeg.o /home/Qt/5.7/Src/qtbase/config.tests/unix/libjpeg/libjpeg.cpp
    /home/Qt/5.7/Src/qtbase/config.tests/unix/libjpeg/libjpeg.cpp:43:21: fatal error: jpeglib.h: No such file or directory
     #include <jpeglib.h>
                         ^
    compilation terminated.
    Makefile:192: die Regel für Ziel „libjpeg.o“ scheiterte
    make: *** [libjpeg.o] Fehler 1
    libjpeg disabled.
    checking for libpng... 
    /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 -Wall -W -fPIC  -I/home/Qt/5.7/Src/qtbase/config.tests/unix/libpng -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 libpng.o /home/Qt/5.7/Src/qtbase/config.tests/unix/libpng/libpng.cpp
    /home/Qt/5.7/Src/qtbase/config.tests/unix/libpng/libpng.cpp:40:17: fatal error: png.h: No such file or directory
     #include <png.h>
                     ^
    compilation terminated.
    Makefile:192: die Regel für Ziel „libpng.o“ scheiterte
    make: *** [libpng.o] Fehler 1
    libpng disabled.
    checking for dlopen... 
    /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 -Wall -W -fPIC  -I/home/Qt/5.7/Src/qtbase/config.tests/unix/dlopen -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 dlopen.o /home/Qt/5.7/Src/qtbase/config.tests/unix/dlopen/dlopen.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 dlopen dlopen.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
    dlopen enabled.
    checking for DB2... 
    /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 -Wall -W -fPIC  -I/home/Qt/5.7/Src/qtbase/config.tests/unix/db2 -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 db2.o /home/Qt/5.7/Src/qtbase/config.tests/unix/db2/db2.cpp
    /home/Qt/5.7/Src/qtbase/config.tests/unix/db2/db2.cpp:40:20: fatal error: sqlcli.h: No such file or directory
     #include <sqlcli.h>
                        ^
    compilation terminated.
    Makefile:192: die Regel für Ziel „db2.o“ scheiterte
    make: *** [db2.o] Fehler 1
    DB2 disabled.
    checking for InterBase... 
    /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 -Wall -W -fPIC  -I/home/Qt/5.7/Src/qtbase/config.tests/unix/ibase -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 ibase.o /home/Qt/5.7/Src/qtbase/config.tests/unix/ibase/ibase.cpp
    /home/Qt/5.7/Src/qtbase/config.tests/unix/ibase/ibase.cpp:40:19: fatal error: ibase.h: No such file or directory
     #include <ibase.h>
                       ^
    compilation terminated.
    Makefile:192: die Regel für Ziel „ibase.o“ scheiterte
    make: *** [ibase.o] Fehler 1
    InterBase disabled.
    checking for MySQL (thread-safe)... 
    /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 -Wall -W -fPIC  -I/home/Qt/5.7/Src/qtbase/config.tests/unix/mysql_r -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 mysql.o /home/Qt/5.7/Src/qtbase/config.tests/unix/mysql/mysql.cpp
    /home/Qt/5.7/Src/qtbase/config.tests/unix/mysql/mysql.cpp:40:19: fatal error: mysql.h: No such file or directory
     #include "mysql.h"
                       ^
    compilation terminated.
    Makefile:192: die Regel für Ziel „mysql.o“ scheiterte
    make: *** [mysql.o] Fehler 1
    MySQL (thread-safe) disabled.
    checking for MySQL (thread-unsafe)... 
    /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 -Wall -W -fPIC  -I/home/Qt/5.7/Src/qtbase/config.tests/unix/mysql -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 mysql.o /home/Qt/5.7/Src/qtbase/config.tests/unix/mysql/mysql.cpp
    /home/Qt/5.7/Src/qtbase/config.tests/unix/mysql/mysql.cpp:40:19: fatal error: mysql.h: No such file or directory
     #include "mysql.h"
                       ^
    compilation terminated.
    Makefile:192: die Regel für Ziel „mysql.o“ scheiterte
    make: *** [mysql.o] Fehler 1
    MySQL (thread-unsafe) disabled.
    MySQL support cannot be enabled due to functionality tests!
     Turn on verbose messaging (-v) to /home/Qt/5.7/Src/qtbase/configure to see the final report.
     If you believe this message is in error you may use the continue
     switch (-continue) to /home/Qt/5.7/Src/qtbase/configure to continue.
    

    part 4



  • 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
    
    1. 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

    2. 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

    3. 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
    
    1. type cd /home/Qt/5.7/Src/qtbase/src/plugins/sqldrivers/mysql
    2. 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

    1. 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:

    2. 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...


  • Qt Champions 2018

    @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?


  • Qt Champions 2018

    @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...


  • Qt Champions 2018

    @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 first

    bool 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...)


  • Qt Champions 2018

    @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.


Log in to reply