Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Error when compiling mysql driver for Qt(Debian Linux)

Error when compiling mysql driver for Qt(Debian Linux)

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 3 Posters 384 Views 1 Watching
  • 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.
  • C Offline
    C Offline
    CesarB794
    wrote on last edited by
    #1

    I tried to compile the qmysql driver, but I get errors when compiling, specifically the error: /home/cesar/Qt/5.13.2/gcc_64/mkspecs/features/qt_plugin.prf:59: error: Cannot write file / mkspecs / modules- inst / qt_plugin_qsqlmysql.pri: Cannot create parent directory.
    I don't know what the problem might be, I already placed the include corresponding to mariadb (/ usr / include / mariadb) and the libmariadbclient.so library in the mysql.pro file.
    As I read in StackOverflow, they seem to be permission issues, but it is assumed that being installed Qt in / home / Qt should not generate problems with write permissions, what do you think the problem might be?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mvsri
      wrote on last edited by
      #2

      @CesarB794 Have you tried installing qmysql plugin,

      sudo apt-get install libqt5sql5-mysql
      

      and how did you installed QT?

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

        Hi and welcome to devnet,

        Can you show the modifications you made ?
        What sources are you using ?
        How did you get them ?

        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