Created
          December 1, 2021 10:07 
        
      - 
      
- 
        Save emha69/870a99ba7851616bc39b539ac9f533f0 to your computer and use it in GitHub Desktop. 
    Compiling Qt 5.15 MariaDB SQL plugin on Ubuntu
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Step 1: Install MariaDB3 C connector and development package | |
| Step 2: Install QtBase5 private development package | |
| Step 3: Download Qt sources | |
| Step 4: Run configure in QTDIR/Src/qtbase | |
| Step 5: Run qmake in QTDIR/Src/qtbase/src/plugins/sqldrivers | |
| Step 6. Run make | |
| Step 7. Run make install | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
Step 1: Install MariaDB3
apt-get install mariadb3 libmariadb-devStep 2: Install Qt private development package
apt-get install qtbase5-private-devStep 3: Download Qt Sources
Start maintenance tool and download the Qt sources
Step 4: Run configure
Step 5 & 6: Run QMake
Fist run the QMake for sqldrivers, IMPORTANT make sure you run the QMake from Qt and not Linux distribution!
STEP 6 & 7 Run make
It is wise to start with clean compile but not necessary
make cleanmakesudo make installThis will install the driver in plugins directory
QTDIR/gcc_64/plugins/sqldrivers/To check the plugin use QT_DEBUG_PLUGINS set in environmental variables of Debug configuration.