Building MySQL driver for android
-
I can't build mysql driver for android. I need a way to communicate my android app with mysql server. When I build my program the compiler output say: mysql driver not loaded. Available driver Qsqlite.
I need help with this. I'm using qt 5.14.2 on window 10. -
Hi,
There's no MySQL client library pre-built for Android. If anything you have to go with MariaDB and start from there.
-
No, you first have to cross-compile the MariaDB connector and then build the driver.
-
No you can't use qmake in place of make as these are two different tools for different purposes.
You can try using jom.exe
-
@SGaist When I´m triying to build and It close .sh with this NOTE: If in doubt, on Unix-ish systems use './config'.
make: *** No se especific▒ ning▒n objetivo y no se encontr▒ ning▒n makefile. Alto.
Changes:
diff: ./rootfs_files_before.txt: No such file or directory -
@qtlearning # OpenSSL
pkg=openssl-1.1.1g.tar.gz
dir=$(basename $pkg .tar.gz)if [ ! -d $dir ]; then
wget -c http://www.openssl.org/source/$pkg
tar -xf $pkg || exit 1
fipushd $dir
if [ ! -f "skip" ] || [ "$no_skips" = true ]; then
RANLIB="$BR"ranlib CC="$BR"gcc ./Configure android-armv7 --prefix=$SR/usr #This line
ANDROID_DEV=$SR/usr make || exit 1
make build_libs || exit 1
touch skip
fi -
@SGaist I think the problem is in the line that says "this line". The "/. Config" is not running and no file is generated for the make to process. Or should I change the folder where the make is running?
-
-
@SGaist Excuse me, I found that the problem to create the driver is that the configure statement was not working. Check the information, I corrected it and now I get that the gcc compiler cannot find it due to the address given in the script. So I try to use clang, which is the one that brings the new ndk and I keep jumping the same error. What could I do?
-
Did you use the KDAB project I linked ?