Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Building PostgreSQL driver on Linux



  • Hello everyone.
    I'm trying to build Qt 5.15.2 with PSQL driver on an armhf board running Linux, but all I get is:
    ERROR: Feature 'sql-psql' was enabled, but the pre-condition 'libs.psql' failed.

    Configure was:

    ./configure -nomake examples -skip qtwebengine -skip qtwayland -opensource -confirm-license -release -no-gtk -no-opengl -sql-psql PSQL_LIBS="/lib/arm-linux-gnueabihf/libpq.a" -I "/usr/include/postgresql/" -L "/usr/include/postgresql/11/lib"
    

  • Lifetime Qt Champion

    @nicmorais Check the config.log file to see what exactly is missing.
    Most probably you did not install the PostgreSQL dev package.



  • @jsulm Thank you for your attention, buy I got it fixed by compiling Qt 6 instead of 5.12.5.


Log in to reply