Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Forum Updated on Feb 6th

    Unsolved No MySQL plugin Support when doing RaspberryPi2EGLFS

    Mobile and Embedded
    2
    4
    735
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      stinkpot last edited by

      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)

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi and welcome to devnet,

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

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        S 1 Reply Last reply Reply Quote 0
        • S
          stinkpot @SGaist last edited by

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

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            libmysqlclient-dev ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 0
            • First post
              Last post