Ruslan Polupan
May 30, 2018, 2:01 p.m.

Installing the QIBASE driver (Firebird) Qt 5.11 Suse LEAP 42.3

Decided to update Qt. Each time this entails reinstalling the drivers for working with databases.

I decided to write down the sequence of actions.

I hope I save someone a couple of hours. :-)


Install Qt 5.11.

The Qt documentation says:

How to Build the QIBASE Plugin on Unix and macOS

The following assumes InterBase or Firebird is installed in /opt/interbase:

If you are using Firebird, the Firebird library has to be set explicitly:

cd $QTDIR/qtbase/src/plugins/sqldrivers
qmake -- IBASE_PREFIX=/opt/interbase IBASE_LIBS=-lfbclient
> make sub-bases

But everything is not so simple.

Learning SuSE, the Fierbird header files are in /usr/include/firebird.

In order for qmake to run, you need to add it to .bashrc

  1. PATH=$PATH:~/Qt5.11.0/5.11.0/gcc_64/bin
  2. export PATH

Relogin or open a new console.

Go to the folder with the drivers.

  1. cd ~/Qt5.11.0/5.11.0/Src/qtbase/src/plugins/sqldrivers

Now the difference from the documentation:

  1. qmake -- IBASE_INCDIR=/usr/include/firebird IBASE_LIBS=-lfbclient

If you do as indicated in the documentation, nothing happens :-)

We get the following:

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

For the Interbase driver, the configuration is ready.

Farther...

  1. make sub-ibase

When compiling, we get an error:

  1. g++: error: unrecognized command line option ‘-std=c++1z
  2. g++: error: unrecognized command line option ‘-Wdate-time

You can google….

Go to the ibase directory.

Open the Makefile in the editor.

Change -std=c++1z to -std=c++11 in two places.

And in the same lines we delete -Wdate-time.

We save the file.

Go to the directory above and repeat:

  1. make sub-ibase

Hooray! He got ready.

Now to install it...

  1. make sub-ibase-install_subtargets

Driver can be used.

Here are the dances with tambourines.

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