Ruslan Polupan
Dec. 5, 2018, 6:45 p.m.

SuSe Leap 15, Qt 5.11.3, installation, configuration, database drivers

Another reinstallation of the OS in connection with the replacement of iron.

Installed Suse Leap 15.

According to article we install development packages and Qt itself.

We make a simple project for verification. We are trying to collect. We are a little upset because such an error occurs.

  1. can't find -lGL error

It turns out there is no libGL library. It is provided by the Mesa-libGL-devel package and for some reason it is not included in the devel_basis package.

Installing...

  1. zypper in Mesa-libGL-devel

The project was assembled and the application started.


I install the QIBASE (Firebird) driver as described in this article.

We start the test of connected drivers.

  1. Доступные драйверы: ("QIBASE", "QSQLITE", "QMYSQL", "QMYSQL3", "QPSQL", "QPSQL7"

QIBASE is. We observe the presence of QMYSQL, which is strange. because when building QIBASE, the output was like this.

  1. Running configuration tests...
  2. Checking for DB2 (IBM)... no
  3. Checking for InterBase... yes
  4. Checking for MySQL... no
  5. Checking for OCI (Oracle)... no
  6. Checking for ODBC... no
  7. Checking for PostgreSQL... no
  8. Checking for SQLite (version 2)... no
  9. Checking for TDS (Sybase)... no
  10. Done running configuration tests.

We open the last project that worked with MySQL. Really problems.

  1. QSqlDatabase: QMYSQL driver not loaded
  2. QSqlDatabase: available drivers: QIBASE QSQLITE QMYSQL QMYSQL3 QPSQL QPSQL7

I think it's easier to assemble the driver according to the instructions.

Check if the libmariadb-devel package is installed.

launch

  1. rust@Leap15:~/Qt/5.11.3/Src/qtbase/src/plugins/sqldrivers> qmake -- MYSQL_PREFIX=/usr/lib64/mysql
  2. Info: creating stash file /home/rust/Qt/5.11.3/Src/qtbase/src/plugins/sqldrivers/.qmake.stash
  3.  
  4. Running configuration tests...
  5. Checking for DB2 (IBM)... no
  6. Checking for InterBase... no
  7. Checking for MySQL... yes
  8. Checking for OCI (Oracle)... no
  9. Checking for ODBC... no
  10. Checking for PostgreSQL... no
  11. Checking for SQLite (version 2)... no
  12. Checking for TDS (Sybase)... no
  13. Done running configuration tests.
  14.  
  15. Configure summary:
  16.  
  17. Qt Sql:
  18. DB2 (IBM) .............................. no
  19. InterBase .............................. no
  20. MySql .................................. yes
  21. OCI (Oracle) ........................... no
  22. ODBC ................................... no
  23. PostgreSQL ............................. no
  24. SQLite2 ................................ no
  25. SQLite ................................. yes
  26. Using system provided SQLite ......... no
  27. TDS (Sybase) ........................... no
  28.  
  29. Qt is now configured for building. Just run 'make'.
  30. Once everything is built, Qt is installed.
  31. You should NOT run 'make install'.
  32. Note that this build cannot be deployed to other machines or devices.
  33.  
  34. Prior to reconfiguration, make sure you remove any leftovers from
  35. the previous build.

collect

  1. make sub-mysql

install

  1. make sub-mysql-install_subtargets

We run the application and get:

  1. Access denied for user 'gluser'@'localhost' (using password: YES) QMYSQL: Невозможно соединиться

But this is no longer a problem in the drivers :-)

The article is more suitable as your own sclerosis.

I will be glad if someone else is useful.

By article asked0question(s)

1

Do you like it? Share on social networks!

Comments

Only authorized users can post comments.
Please, Log in or Sign up
  • Last comments
  • AK
    April 1, 2025, 11:41 a.m.
    Добрый день. В данный момент работаю над проектом, где необходимо выводить звук из программы в определенное аудиоустройство (колонки, наушники, виртуальный кабель и т.д). Пишу на Qt5.12.12 поско…
  • Evgenii Legotckoi
    March 9, 2025, 9:02 p.m.
    К сожалению, я этого подсказать не могу, поскольку у меня нет необходимости в обходе блокировок и т.д. Поэтому я и не задавался решением этой проблемы. Ну выглядит так, что вам действитель…
  • VP
    March 9, 2025, 4:14 p.m.
    Здравствуйте! Я устанавливал Qt6 из исходников а также Qt Creator по отдельности. Все компоненты, связанные с разработкой для Android, установлены. Кроме одного... Когда пытаюсь скомпилиров…
  • ИМ
    Nov. 22, 2024, 9:51 p.m.
    Добрый вечер Евгений! Я сделал себе авторизацию аналогичную вашей, все работает, кроме возврата к предидущей странице. Редеректит всегда на главную, хотя в логах сервера вижу запросы на правильн…
  • Evgenii Legotckoi
    Oct. 31, 2024, 11:37 p.m.
    Добрый день. Да, можно. Либо через такие же плагины, либо с постобработкой через python библиотеку Beautiful Soup