Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. MySQL Plugin for Raspberry

MySQL Plugin for Raspberry

Scheduled Pinned Locked Moved Solved Mobile and Embedded
7 Posts 2 Posters 1.5k Views
  • 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.
  • J Offline
    J Offline
    JoPhoxene
    wrote on last edited by JoPhoxene
    #1

    Hi every body.

    I am developing an application with QT which will manage a database on a Raspberry and I have some problems with the MySQL plug-in.
    To install QT I followed this tutorial : link text
    I was able to cross-compile the MySQL plug-in with QT but when I try to load it with the code :

    QPluginLoader loader;
    loader.setFileName("/usr/local/qt5pi/plugins/sqldrivers/libqsqlmysql.so");
    std::cout << "Plugin Loader worked = " << QString::number(loader.load()).toStdString() << std::endl;
    std::cout << "Plugin Loader error = "  << loader.errorString().toStdString() << std::endl;
    

    I have this error :

    Plugin Loader worked = 0
    Plugin Loader error = Cannot load library /usr/local/qt5pi/plugins/sqldrivers/libqsqlmysql.so: (This platform does not support dynamic libraries.)
    

    I tried to recompile the plug-in at least 50 times but I have every time the same issue. Do you know why ?

    Thanks
    Jordan

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      What parameter did you pass when building Qt ?

      What distribution are you running on your Pi ?

      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
      0
      • J Offline
        J Offline
        JoPhoxene
        wrote on last edited by
        #3

        Hi and thank you for your answer,
        When building Qt I configured it like this :

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

        On the Raspberry I am running the last version of Raspbian : Raspbian Jessie with PIXEL

        Jordan

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Do you have the dependencies installed on your Pi ?

          By the way why are you trying to load the plugin by hand ?

          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
          0
          • J Offline
            J Offline
            JoPhoxene
            wrote on last edited by JoPhoxene
            #5

            I think I have installed all dependencies, how to check ?
            I load the plugin by hand just for the debug to have the error message.

            Jordan

            1 Reply Last reply
            0
            • J Offline
              J Offline
              JoPhoxene
              wrote on last edited by
              #6

              Problem solved, I reinstall Raspbian and recompile Qt and now everythings works.

              Jordan

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Great !

                Happy coding !

                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
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved