No MySQL plugin Support when doing RaspberryPi2EGLFS



  • Hi, I try to follow the RaspberryPi2EGLFS page: https://wiki.qt.io/RaspberryPi2EGLFS
    to make a Raspberry Pi crosscompiling in ubuntu 16.04. Everything looks good until did the ./configure, that the MySQL is not support.
    I definitely want to use MySQL on RPi, and has installed libmysqlclient and libmysqlclient-dev, but still cannot pass the configure auto detection

    SQL drivers:
    DB2 .................. no
    InterBase ............ no
    MySQL ................ no
    OCI .................. no
    ODBC ................. yes (plugin)
    PostgreSQL ........... no
    SQLite 2 ............. yes (plugin)
    SQLite ............... yes (plugin, using bundled copy)

    In the auto detection:
    MySQL (thread-safe) auto-detection... ()
    /home/charlie/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -marm -mthumb-interwork -mfpu=neon-vfpv4 -mtune=cortex-a7 -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/home/charlie/raspi/sysroot -O2 -std=gnu++0x -Wall -W -fPIC -I. -I/usr/include/mysql -I../../../mkspecs/devices/linux-rasp-pi2-g++ -o mysql.o ../mysql/mysql.cpp
    /home/charlie/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++ -Wl,-rpath-link,/home/charlie/raspi/sysroot/opt/vc/lib -Wl,-rpath-link,/home/charlie/raspi/sysroot/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link,/home/charlie/raspi/sysroot/lib/arm-linux-gnueabihf -mfloat-abi=hard --sysroot=/home/charlie/raspi/sysroot -Wl,-O1 -o mysql_r mysql.o --sysroot=/home/charlie/raspi/sysroot -L/usr/lib/x86_64-linux-gnu -lmysqlclient -lpthread -lz -lm -lrt -ldl -lmysqlclient_r
    Makefile:197: recipe for target 'mysql_r' failed
    MySQL (thread-safe) disabled.
    MySQL (thread-unsafe) auto-detection... ()
    /home/charlie/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -marm -mthumb-interwork -mfpu=neon-vfpv4 -mtune=cortex-a7 -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/home/charlie/raspi/sysroot -O2 -std=gnu++0x -Wall -W -fPIC -I. -I/usr/include/mysql -I../../../mkspecs/devices/linux-rasp-pi2-g++ -o mysql.o mysql.cpp
    /home/charlie/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++ -Wl,-rpath-link,/home/charlie/raspi/sysroot/opt/vc/lib -Wl,-rpath-link,/home/charlie/raspi/sysroot/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link,/home/charlie/raspi/sysroot/lib/arm-linux-gnueabihf -mfloat-abi=hard --sysroot=/home/charlie/raspi/sysroot -Wl,-O1 -o mysql mysql.o --sysroot=/home/charlie/raspi/sysroot -L/usr/lib/x86_64-linux-gnu -lpthread -lz -lm -lrt -ldl -lmysqlclient
    Makefile:197: recipe for target 'mysql' failed
    MySQL (thread-unsafe) disabled.

    My configure command is:
    ./configure -release -opengl es2 -device linux-rasp-pi2-g++ -device-option CROSS_COMPILE=/home/charlie/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- -sysroot /home/charlie/raspi/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix /home/charlie/raspi/qt5pi -hostprefix /home/charlie/raspi/qt5.6.0 -v

    can you help me to solve this problem?

    Thanks.
    TDS .................. yes (plugin)


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Do you have the MySQL dev packages installed in your sysroot ?



  • @SGaist Yes, mysql server, libmysql libmysql-dev, almost everything.


  • Lifetime Qt Champion

    libmysqlclient-dev ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.